/* ==========================================================================
   Reunie Familie Braspenning
   Zwarte achtergrond, grijze tekst, Verdana — bewust gehouden zoals het
   origineel. Fotogalerij en lightbox hergebruiken dezelfde beproefde
   opzet als de andere fotoreportages van de familie.
   ========================================================================== */
:root {
  --bg: #000000;
  --tekst: #999999;
  --tekst-licht: #cfcfcf;
  --wit: #ffffff;
  --lijn: #2a2a2a;
  --accent: #8781fb;
  --font: "Verdana", "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--tekst);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--tekst-licht); }
a:hover { color: var(--wit); }
a:focus-visible { outline: 1px solid var(--tekst-licht); outline-offset: 2px; }

.pagina {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------- Kop ---------- */
.kop {
  text-align: center;
  padding: 14px 16px 6px;
}

.kop__logo {
  max-width: 420px;
  width: 90%;
  height: auto;
}

/* ---------- Navigatie ---------- */
.hoofdmenu {
  border-top: 1px solid var(--lijn);
  border-bottom: 1px solid var(--lijn);
  padding: 4px 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--tekst-licht);
  font-size: 1.5rem;
  padding: 8px;
  margin: 0 auto;
  cursor: pointer;
}

.menu {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 8px 12px;
}

.menu li a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: bold;
  font-size: .92rem;
  border-radius: 4px;
}

.menu li a:hover,
.menu li a.actief {
  color: var(--wit);
  background: #151515;
}

@media (max-width: 700px) {
  .menu-toggle { display: block; }

  .menu {
    flex-direction: column;
    align-items: center;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height .25s ease;
  }

  .menu.open {
    max-height: 340px;
    padding: 8px 0;
  }
}

/* ---------- Inhoud ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 20px 50px;
}

.paginatitel {
  text-align: center;
  text-decoration: underline;
  font-size: 1.35rem;
  color: var(--tekst-licht);
  margin: 6px 0 22px;
}

.centraal { text-align: center; }

main p { margin: 0 0 16px; text-align: center; }

main .tekst-links p { text-align: left; }

.knop-klein {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: bold;
}

.knop-klein:hover { opacity: .85; }

.lijst-links {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 420px;
  text-align: left;
}

.lijst-links li { margin-bottom: 10px; }

.lijst-links a { text-decoration: none; }
.lijst-links a:hover { text-decoration: underline; }

.foto-midden {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
  border-radius: 2px;
}

/* ---------- Categorie-tegels (foto.php) ---------- */
.categorie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .categorie-grid { grid-template-columns: repeat(3, 1fr); }
}

.categorie-tegel {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--lijn);
  transition: transform .12s ease, border-color .15s ease;
}

.categorie-tegel:hover {
  transform: translateY(-2px);
  border-color: #444;
}

.categorie-tegel__foto {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #151515;
}

.categorie-tegel__tekst {
  padding: 10px 12px 14px;
  text-align: center;
}

.categorie-tegel__titel {
  color: var(--tekst-licht);
  font-weight: bold;
  font-size: .95rem;
}

.categorie-tegel__aantal {
  display: block;
  font-size: .78rem;
  color: var(--tekst);
  margin-top: 2px;
}

/* ---------- Fotogalerij + lightbox (categorie.php) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  padding: .5rem 0 2.5rem;
}

@media (min-width: 480px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: .65rem; } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(5, 1fr); } }

.gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
  background: #151515;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.06);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox.is-open { display: flex; }

.lightbox__figure {
  max-width: 96vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 96vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  background: #111;
}

.lightbox__counter {
  color: rgba(255,255,255,.7);
  font-size: .82rem;
  margin-top: .75rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255, 255, 255, .22); }

.lightbox__close { top: 1rem; right: 1rem; width: 42px; height: 42px; font-size: 1.3rem; }

.lightbox__prev, .lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}

.lightbox__prev { left: .6rem; }
.lightbox__next { right: .6rem; }

@media (max-width: 640px) {
  .lightbox__prev, .lightbox__next { width: 40px; height: 40px; font-size: 1.25rem; }
}

/* ---------- Landingspagina (index.php) ---------- */
.landing {
  margin: 0;
  padding: 0;
  background-color: #db9a26;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: var(--font);
  padding-bottom: 90px;
}

.landing__container { text-align: center; padding: 20px; }

.landing__container img {
  max-width: 1200px;
  width: 100%;
  height: auto;
  border: 5px solid #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.landing__footer {
  background-color: #f1f1f1;
  padding: 20px;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.landing__knop {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-family: var(--font);
}

.landing__knop:hover { opacity: .88; color: #fff; }

/* ---------- Voettekst ---------- */
.voettekst {
  text-align: center;
  padding: 18px;
  font-size: .75rem;
  color: #555;
}

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