/* Afbeeldingen met "_zoom" in de bestandsnaam: klik om te vergroten. Zie js/zoom.js */

img.hnd-zoomable { cursor: zoom-in; }
img.hnd-zoomable:focus-visible { outline: 2px solid #2f6690; outline-offset: 3px; }

#hnd-zoom-lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  display: none;
  overflow: auto;
  padding: 56px 20px 64px;
  background: rgba(17, 22, 29, 0.85);
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
}

#hnd-zoom-lightbox.hnd-zoom-open { display: flex; }

#hnd-zoom-lightbox img {
  flex: none;
  margin: auto;
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
}

#hnd-zoom-lightbox.hnd-zoom-actual img { max-width: none; cursor: zoom-out; }
#hnd-zoom-lightbox.hnd-zoom-fits img { cursor: default; }

#hnd-zoom-lightbox .hnd-zoom-close {
  position: fixed;
  top: 14px;
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

#hnd-zoom-lightbox .hnd-zoom-close:hover { background: rgba(255, 255, 255, 0.24); }
#hnd-zoom-lightbox .hnd-zoom-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

#hnd-zoom-lightbox .hnd-zoom-hint {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.85);
  font: 12px/1.3 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}

@media print {
  #hnd-zoom-lightbox { display: none !important; }
}
