:root {
    --bs-body-bg: #f4f6f9;
}

.picture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.picture-item {
    padding: 0;
    border: 3px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    background: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.picture-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.picture-item:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.25);
}

.picture-item--selected {
    border-color: var(--bs-success) !important;
    box-shadow: 0 0 0 3px rgba(var(--bs-success-rgb), 0.35);
}

/* Chat bubbles */
.chat-history {
    max-height: 500px;
}
.chat-bubble {
    max-width: 75%;
    padding: 0.65rem 1rem;
    border-radius: 1rem;
    font-size: 0.925rem;
    line-height: 1.5;
}

.chat-bubble--user {
    background-color: var(--bs-primary);
    color: #fff;
    border-bottom-right-radius: 0.2rem;
}

.chat-bubble--assistant {
    background-color: #fff;
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    border-bottom-left-radius: 0.2rem;
}
