/* Explain: Styles for the photo gallery grid and lightbox. */
/* Galleria fotografica: griglia a colonne e lightbox per ingrandire le immagini. */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(22, 36, 27, 0.84);
    backdrop-filter: blur(6px);
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox-stage {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-stage img {
    width: auto;
    max-width: 100%;
    max-height: 86vh;
    border-radius: 1.75rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 1.15rem;
    transition: background 300ms ease;
}

.gallery-lightbox-close:hover {
    background: var(--surface-color);
}