/* ------------------------------
   Foto-overzicht – basis variabelen
------------------------------ */
:root {
    --gapx: 10px;
    --gapy: 10px;
    --target-h: var(--overview-height);
}

/* Titel */
.gallery-title {
    text-align: center;
    padding:0px 0;
}

/* Gallery wrapper */
.gallery-wrap {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Elke rij */
.row {
    display: flex;
    gap: var(--gapx);
}

/* Afbeeldingen */
.row img {
    object-fit: cover;
    transition: opacity .25s;
}

.row img:hover {
    opacity: 0.8;
    cursor: pointer;
}

/* ------------------------------
   LIGHTBOX
------------------------------ */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 9999;
}

/* Verborgen toestand */
.lb-hidden {
    display: none !important;
}

/* Binnenkant */
.lb-inner img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 6px;
}

/* Knoppen */
#lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    opacity: 0.85;
    transition: opacity .2s;
}

#lightbox button:hover {
    opacity: 1;
}

/* Close button */
.lb-close {
    top: 20px;
    right: 30px;
    font-size: 60px;
}

/* Prev / Next */
.lb-prev {
    left: 20px;
}

.lb-next {
    right: 20px;
}

/* Verberg pijlen indien nodig */
.no-prev .lb-prev {
    display: none;
}
.no-next .lb-next {
    display: none;
}
