/* Algemeen */
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #f6f8fb;
  margin: 0;
  color: #222;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  background: linear-gradient(135deg,#8f94fb,#4e54c8);
  color: #fff;
  padding: 28px 20px;
  text-align: center;
}
header h1 {
  margin: 0;
  font-size: 28px;
}
header p {
  margin-top: 6px;
  opacity: 0.95;
}
header a {
  color: #fff;
  text-decoration: underline;
}

/* Container */
.container {
  max-width: 1300px;
  margin: 28px auto;
  padding: 0 16px;
}

/* Albums overzicht grid */
.albums, .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(240px,1fr));
  gap: 22px;
}

/* Album / card styling */
.card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(15,15,30,0.06);
  transition: transform 0.18s;
}
.card:hover {
  transform: translateY(-6px);
}

/* Cover image en overlay */
.card img.thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #e9eef8;
  transition: transform 0.2s;
}
.card:hover img.thumb {
  transform: scale(1.03);
}

.card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  opacity: 0;
  padding: 8px 10px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.25s;
}
.card:hover .overlay {
  opacity: 1;
}

.card .title {
  padding: 12px 14px;
  font-weight: 700;
  text-align: center;
}
.no-cover {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  background: linear-gradient(90deg,#eef2ff,#f9fbff);
}

/* Album galerij */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 16px;
}
.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery img:hover {
  transform: scale(1.04);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.lightbox.show {
  display: flex;
  opacity: 1;
}
.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  transition: opacity 0.3s ease-in-out;
}

/* Lightbox knoppen */
.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}
.lightbox .close { top: 20px; right: 35px; }
.lightbox .prev { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox .next { top: 50%; right: 20px; transform: translateY(-50%); }

/* Caption en counter */
.caption {
  color: #ccc;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}
.counter {
  color: #ccc;
  text-align: center;
  margin-top: 18px; /* meer ruimte naar boven */
  font-size: 14px; /* iets groter voor zichtbaarheid */
}

/* Responsive */
@media (max-width: 520px) {
  header {
    padding: 28px 12px;
  }
  header h1 {
    font-size: 24px;
  }
  .card .title {
    font-size: 0.95rem;
  }
}
