/* =====================================================================
   ViaVenturis — lightbox (zie assets/js/lightbox.js)
   ===================================================================== */
body.lb-open { overflow: hidden; }

.lb {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(28, 22, 18, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6) var(--space-3);
    touch-action: pan-y;
}
.lb[hidden] { display: none; }

.lb__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lb__img { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; object-fit: contain; box-shadow: var(--shadow-md); }
.lb__caption {
    color: var(--color-bone);
    font-style: italic;
    text-align: center;
    max-width: 70ch;
    padding-top: var(--space-3);
}

.lb__btn {
    position: absolute;
    background: transparent;
    border: 0;
    color: var(--color-bone);
    font-size: 2.5rem;
    line-height: 1;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
}
.lb__btn:hover, .lb__btn:focus-visible { color: var(--color-ochre); }
.lb__btn:focus-visible { outline: 2px solid var(--color-ochre); }
.lb__btn[hidden] { display: none; }
.lb__close { top: var(--space-2); right: var(--space-2); }
.lb__prev  { left: var(--space-1); top: 50%; transform: translateY(-50%); }
.lb__next  { right: var(--space-1); top: 50%; transform: translateY(-50%); }
.lb__counter {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    margin: 0;
    color: var(--color-sand);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}
@media (max-width: 699px) {
    .lb__prev, .lb__next { top: auto; bottom: var(--space-2); transform: none; }
}
