.fotogrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-widget);
  margin: 0;
}
.fotogrid__knop {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
}
.fotogrid__knop img {
  width: 100%;
  height: 244px;   /* gemeten op het origineel */
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--transitie);
}
@media (min-width: 1025px) {
  .fotogrid__knop:hover img,
  .fotogrid__knop:focus-visible img { transform: scale(1.04); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.92);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.lightbox__beeld {
  max-width: min(90vw, 1200px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__sluit,
.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transitie);
}
.lightbox__sluit { position: absolute; top: 16px; right: 16px; font-size: 34px; line-height: 1; }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__sluit:hover, .lightbox__nav:hover,
.lightbox__sluit:focus-visible, .lightbox__nav:focus-visible { opacity: 1; }

@media (max-width: 1024px) { .fotogrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .fotogrid { grid-template-columns: 1fr; gap: 10px; }   /* mobiel, gemeten */
  .fotogrid__knop img { height: 237px; }   /* mobiel, gemeten */
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__nav--vorige { left: 20%; }
  .lightbox__nav--volgende { right: 20%; }
}
@media (prefers-reduced-motion: reduce) {
  .fotogrid__knop img { transition: none; }
}
