/* lightbox.css — hoort bij tools/lightbox.js.
 * Elke waarde hieronder is gemeten op een Elementor-lightbox in een venster van 1440×900:
 *   overlay      position: fixed, z-index 9999, rgba(0, 0, 0, .8), volledig venster
 *   foto         object-fit: contain, max 100%, hoogstens 760px hoog → 70px ruimte boven en onder
 *   sluitknop    30×30 op x=1395, y=13, kleur rgba(237, 237, 237, .9), font-size 20px
 *   blader-zones 216px breed, volledige hoogte, links op x=0 en rechts op x=1224
 * Meet het origineel van de klant en vervang deze waarden als ze afwijken.
 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, .8);
  padding: 70px 0;
}
.lightbox[hidden] { display: none; }

.lightbox__foto {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox button { margin: 0; padding: 0; border: 0; background: none; }

/* teller linksboven, zoals "1 / 8" op het origineel */
.lightbox__teller {
  position: absolute;
  top: 19px;
  left: 20px;
  color: rgba(237, 237, 237, .9);
  font-size: 15px;
  line-height: 23px;
}

.lightbox__sluit {
  position: absolute;
  top: 13px;
  right: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(237, 237, 237, .9);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.lightbox__sluit svg { width: 20px; height: 20px; fill: currentColor; }

.lightbox__pijl {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 216px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(237, 237, 237, .9);
  cursor: pointer;
}
.lightbox__pijl--vorige { left: 0; }
.lightbox__pijl--volgende { right: 0; }
.lightbox__pijl svg { width: 24px; height: 40px; fill: currentColor; }

@media (hover: hover) {
  .lightbox__sluit:hover, .lightbox__pijl:hover { color: #fff; }
}
.lightbox__sluit:focus-visible, .lightbox__pijl:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Op smalle schermen zouden blader-zones van 216px de hele foto bedekken. */
@media (max-width: 767px) {
  .lightbox { padding: 40px 0; }
  .lightbox__pijl { width: 64px; }
}
