#galleryContainer {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery-picture {
    width: 15rem;
    height: 10rem;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 0.2rem 0.5rem var(--shadow-medium);
    cursor: zoom-in;
}

.photo-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.extra-photo {
    display: none;
}

#galleryContainer.gallery-expanded .extra-photo {
    display: flex;
}

.toggle-gallery-btn {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 0.06rem solid var(--color-border);
    padding: 0.5rem 1.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 700;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.toggle-gallery-btn:hover {
    background: var(--color-border);
}

.show-gallery-controls {
    display: flex;
    gap: 0.5rem;
}

.show-gallery-control-form {
    flex: 1;
}

.show-gallery-control-btn {
    width: 100%;
    color: var(--color-white);
    border: none;
    padding: 0.3rem;
    border-radius: 0.3rem;
    cursor: pointer;
}

.show-gallery-control-btn-move {
    background: var(--color-text-secondary);
}

.show-gallery-control-btn-delete {
    background: var(--color-danger);
}

@media (max-width: 768px) {
    #galleryContainer {
        justify-content: center;
    }

    .gallery-picture {
        width: 21rem;
        height: 14rem;
        max-width: 90vw;
    }
}
