/* ===============================
   Basis reset & layout
   =============================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #333;
}

img, video { display: block; max-width: 100%; }

main {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

h1, h2, h3 { margin: 0 0 0.75rem 0; }
h2, h3 { color: #2f6f6a; }

/* Links standaard iets netter */
a { color: inherit; }

/* ===============================
   Header met logo links
   =============================== */

.site-header {
  background: linear-gradient(135deg, #2f6f6a, #4fa3a5);
  color: #fff;
  padding: 1rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 130px;
  width: auto;
}

.title-nav {
  flex: 1;
  text-align: center;
}

.title-nav h1 {
  font-size: 1.4rem;
  margin: 0;
}

/* Menu */
nav {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.25);
}

nav a:hover {
  background: rgba(255,255,255,0.33);
}

/* Mobiel: logo boven/links blijft, titel/nav stapelen netjes */
@media (max-width: 700px) {
  .header-inner {
    align-items: flex-start;
  }
  .title-nav {
    text-align: left;
  }
}

/* ===============================
   ACTUEEL pagina
   =============================== */

.actueel {
  max-width: 900px;
  margin: 0 auto;
}

/* 2 foto’s: mobiel onder elkaar, desktop naast elkaar */
.actueel-fotos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 700px) {
  .actueel-fotos {
    grid-template-columns: 1fr 1fr;
  }
}

/* figure met vaste verhouding en caption */
.actueel-foto {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ddd;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* Afbeelding zelf */
.actueel-foto img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* Caption onder de foto */
.actueel-foto figcaption {
  background: #fff;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: #333;
}

/* Info-box */
.actueel-info {
  background: #fff;
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.actueel-info .intro {
  font-weight: 600;
  margin-bottom: 1rem;
}

.details {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.details li {
  margin-bottom: 0.45rem;
}

/* Google map */
.actueel-map {
  margin-top: 1.5rem;
}

.actueel-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 16px;
  background: #eee;
}

/* Deelnemers */
.deelnemers {
  margin-top: 1.5rem;
  background: #fff;
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.deelnemers-lijst {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 700px) {
  .deelnemers-lijst {
    grid-template-columns: 1fr 1fr;
  }
}

.deelnemers-lijst li {
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: #f4f6f8;
}

/* ===============================
   Overzicht Foto’s (kaartjes)
   =============================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card p {
  padding: 0.75rem;
  font-weight: 700;
}

/* ===============================
   Foto’s per jaar (reunie.php)
   =============================== */

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.photo {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.photo img,
.photo video {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* ===============================
   Lightbox + pijlen
   =============================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 1rem;
}

.lightbox-content {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100vw;
  max-height: 85vh;
  object-fit: contain;
}

/* Caption in lightbox */
#lightbox-caption {
  margin-top: 0.7rem;
  font-size: 0.95rem;
  color: #eee;
  text-align: center;
}

/* Pijlen */
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  line-height: 1;
  color: #fff;
  background: rgba(0,0,0,0.35);
  border: none;
  border-radius: 14px;
  padding: 0.2rem 0.8rem;
  cursor: pointer;
  user-select: none;
}

.lb-prev { left: 0.6rem; }
.lb-next { right: 0.6rem; }

.lb-prev:hover,
.lb-next:hover {
  background: rgba(0,0,0,0.55);
}

/* Op mobiel verbergen (swipe is primaire bediening) */
@media (max-width: 700px) {
  .lb-prev, .lb-next { display: none; }
}

/* ===============================
   Footer
   =============================== */

footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  color: #777;
}

/* Aanmelden (Google Form) */
.aanmelden {
  margin-top: 1.5rem;
  background: #fff;
  padding: 1.2rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #2f6f6a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.btn:hover {
  filter: brightness(1.05);
}

.aanmelden-form {
  margin-top: 1rem;
}

.aanmelden-form iframe {
  width: 100%;
  height: 900px; /* Google Forms zijn lang */
  border: 0;
  border-radius: 16px;
  background: #f4f6f8;
}

/* Mobiel: iets minder hoog, zodat je niet eindeloos hoeft te scrollen */
@media (max-width: 700px) {
  .aanmelden-form iframe {
    height: 1100px;
  }
}

/* Familiegeschiedenis: volledige foto's tonen (geen afsnijden), gecentreerd */
.fotos-volledig{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 700px){
  .fotos-volledig{
    grid-template-columns: 1fr 1fr;  /* naast elkaar op desktop */
  }
}

.fotos-volledig figure{
  margin: 0;
  background: #fff;
  border-radius: 16px;
  padding: 0.8rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);

  display: flex;
  flex-direction: column;
  align-items: center; /* centreert de foto */
}

/* Dit is de kern: toon volledige foto, nooit afsnijden */
.fotos-volledig img{
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 420px;           /* stel dit hoger/lager naar wens */
  object-fit: contain !important;
}

.fotos-volledig figcaption{
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.9rem;
}
