/* ================= TITEL ================= */
body {
  background-color:#fff
}

/* ================= GRID ================= */
.periods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
  gap: 30px;
  max-width: 3000px;
  margin: 0 auto;
  padding: 0 20px;
  justify-items: center;
}

/* Blok per periode */
.period-block {
  cursor: pointer;
  text-align: center;
  width: 100%;
  max-height: 400px; /* Zorg dat de blokken niet breder worden dan de grid-kolom */
}

/* Thumbnail afbeelding */
.period-block img {
  width: 100%; /* Vul de breedte van de container */
  aspect-ratio: 1/1; /* Zorgt ervoor dat de afbeelding vierkant blijft */
  object-fit: cover; /* Zorgt ervoor dat de afbeelding niet vervormt */
  border: 1px solid #ccc;
  margin-bottom: 8px;
  display: block;
  border-radius: 4px;
}
/* Periode label */
.thumbnail-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Jaartallen uitklap */
.years {
  display: none;
  margin-top: 10px;
  text-align: center;
}
.years a {
  display: inline-block;
  margin: 3px 5px;
  padding: 5px 8px;
  text-decoration: none;
  background: #eee;
  color: #111;
  font-size: 0.9rem;
  border-radius: 4px;
}

/* Open status: tonen jaartallen */
.period-block.open .years {
  display: block;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .periods {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .period-block img {
    height: 180px; /* Aanpassing voor kleinere schermen */
  }

  main h2 {
    font-size: 44px;
    margin-top: 4px;
  }
}

/* Specifieke aanpassing voor zeer kleine schermen */
@media (max-width: 480px) {
  .period-block img {
    height: 160px; /* Nog kleinere hoogte voor zeer kleine schermen */
  }
  .period-block img {
  width: 100%; /* Vul de breedte van de container */
  aspect-ratio: 1/1; /* Zorgt ervoor dat de afbeelding vierkant blijft */
  object-fit: cover; /* Zorgt ervoor dat de afbeelding niet vervormt */
  border: 1px solid #ccc;
  margin-bottom: 8px;
  display: block;
  border-radius: 4px;
}
}