
/* ===== Ontdekkers brand-styling voor Gallery & Lightbox (accent update) ===== */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
  margin: 0 auto 2rem;
  max-width: var(--container-max);
  padding: 0;
  list-style: none;
}
.gallery li { grid-column: span 3; }
.gallery a {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eee;
}
.gallery img {
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform .25s ease;
}
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75); /* iets lichter */
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox.is-open { display: flex; }
.lightbox__viewport {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  background: #000;
}

/* Controls met sterke accentkleur */
.lightbox__btn,
.lightbox__close {
  position: absolute;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0;
  box-shadow: var(--shadow);
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.lightbox__btn:hover,
.lightbox__close:hover {
  background: var(--green-dark);
  box-shadow: 0 0 8px rgba(0,0,0,.4), 0 0 0 3px rgba(255,255,255,.25);
}
.lightbox__btn:focus-visible,
.lightbox__close:focus-visible {
  outline: none;
  background: var(--green-dark);
  box-shadow: 0 0 0 3px var(--focus), 0 0 8px rgba(0,0,0,.35);
  transform: translateY(-1px);
}

.lightbox__btn { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }

.lightbox__close { top: 10px; right: 10px; width: 42px; height: 42px; }

.lightbox__btn::before,
.lightbox__close::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  background-position: center;
}
.lightbox__prev::before { background-image: url("../images/icons/chevron-left.svg"); }
.lightbox__next::before { background-image: url("../images/icons/chevron-right.svg"); }
.lightbox__close::before { background-image: url("../images/icons/x.svg"); }

.lightbox__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,0));
  padding: .75rem 1rem;
  font-size: .95rem;
}

/* Responsive */
@media (max-width: 900px) { .gallery li { grid-column: span 4; } }
@media (max-width: 600px) { .gallery li { grid-column: span 6; } }

@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none !important; }
}

.lightbox__viewport {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  width: auto;
  background: transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: visible;
}

.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: transparent; /* zwart verwijderd */
  margin: 0 auto;
}

