/* Beelden blijven gewone links; de dialoog voegt vergroting en navigatie toe. */
.foto-lightbox-link { display: block; height: 100%; width: 100%; cursor: zoom-in; }
.foto-lightbox-link picture { display: block; height: 100%; }
.foto-lightbox-link:focus-visible { outline: 3px solid var(--kleur-accent); outline-offset: 4px; }
[data-lightbox-ready] { cursor: zoom-in; }
.slider__caption { pointer-events: none; }
.foto-vergroten { position: absolute; z-index: 2; right: max(var(--rand), calc((100vw - var(--container)) / 2 + var(--rand))); bottom: 16px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, .65); border-radius: 30px; background: rgba(20, 16, 12, .65); color: #fff; font: inherit; font-size: .75rem; cursor: zoom-in; }
html.lightbox-open { overflow: hidden; }
.foto-lightbox, .foto-lightbox * { box-sizing: border-box; }
.foto-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 70px 80px 24px; border: 0; background: #171513; color: #fff; overflow: hidden; }
.foto-lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 20px; }
.foto-lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.foto-lightbox [hidden] { display: none !important; }
.foto-lightbox__vlak { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; }
.foto-lightbox__beeld { display: block; width: 100%; height: 100%; object-fit: contain; }
.foto-lightbox__beeld.is-laden { opacity: 0; }
.foto-lightbox__melding { position: absolute; left: 0; right: 0; text-align: center; padding: 24px; }
.foto-lightbox__sluit, .foto-lightbox__vorige, .foto-lightbox__volgende { position: absolute; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #68625d; border-radius: 50%; color: #fff; background: #24211e; font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.foto-lightbox__sluit { top: 16px; right: 20px; font-size: 2rem; }
.foto-lightbox__vorige { top: calc(50% - 23px); left: 16px; }
.foto-lightbox__volgende { top: calc(50% - 23px); right: 16px; }
.foto-lightbox__voet { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 12px 28px; font-size: .88rem; line-height: 1.5; }
.foto-lightbox__teller { font-variant-numeric: tabular-nums; white-space: nowrap; color: #d5cfc9; }
.foto-lightbox__bijschrift { text-align: center; margin: 0; overflow-wrap: anywhere; max-height: 15vh; overflow: auto; }
.foto-lightbox__origineel { color: #d5cfc9; text-underline-offset: 4px; }
.foto-lightbox :is(button, a):focus-visible { outline: 3px solid #f1b18e; outline-offset: 4px; }
.foto-lightbox button:hover { background: #49423c; }
@media (max-width: 767px) {
    .foto-lightbox { padding: 70px 12px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .foto-lightbox__vlak { margin-bottom: 52px; }
    .foto-lightbox__vorige, .foto-lightbox__volgende { top: auto; bottom: 130px; }
    .foto-lightbox__voet { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
    .foto-lightbox__bijschrift { text-align: right; max-height: 10vh; }
    .foto-lightbox__origineel { grid-column: 1 / -1; justify-self: center; }
    .foto-vergroten { bottom: 8px; padding: 6px 10px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) { .foto-lightbox * { scroll-behavior: auto; } }
