/* Basis layout – stabiel op desktop en mobiel */
* { box-sizing: border-box; }

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

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

nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

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

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

h2 {
  color: #2f6f6a;
}

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

.card {
  background: white;
  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;
  display: block;
}

.card p {
  padding: 0.7rem;
  font-weight: 600;
}

/* Foto-overzicht per jaar */
.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;
}

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

/* Lightbox – bewust simpel gehouden */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

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

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

#lightbox-caption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #eee;
}

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