/* ── Gedeelde afbeelding-lightbox — kinderboekcreatie.nl ──
   Laad dit samen met /lightbox.js en geef elke klikbare afbeelding een
   data-zoom="<volledige-resolutie-url>"-attribuut. Zie /lightbox.js. */

[data-zoom] { cursor: zoom-in; }

.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(22,14,8,0.82);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: zoom-out;
}
.img-lightbox.is-open { display: flex; }
.img-lightbox img {
  width: auto;
  height: auto;
  max-width: min(1300px, 95vw);
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 64px rgba(0,0,0,0.5);
  background: #fff;
  cursor: default;
}
.img-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.img-lightbox-close:hover { background: rgba(255,255,255,0.3); }
