/* ── Year switcher ── */
.year-switcher {
  display: flex;
  gap: 0.5em;
  margin-bottom: 1.5em;
}

.year-pill {
  padding: 0.3em 1em;
  border-radius: 999px;
  border: 2px solid #6B1D49;
  color: #6B1D49;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  transition: background 0.2s, color 0.2s;
}

.year-pill:hover {
  background: #6B1D49;
  color: white;
}

.year-pill.active {
  background: #6B1D49;
  color: white;
}

/* ── Timeline container ── */
.timeline {
  position: relative;
  max-width: 48em;
  margin: 0 auto;
  padding: 0.5em 0 2em 0;
}

/* vertical bar */
.timeline::before {
  content: '';
  position: absolute;
  left: 0.55em;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #6B1D49;
}

/* ── Each month ── */
.timeline article {
  position: relative;
  padding: 0 0 2.5em 2.75em;
}

/* dot marker per month */
.timeline article::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: #6B1D49;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #6B1D49;
}

/* ── Month heading ── */
.timeline__month {
  display: block;
  font-size: 1.5em;
  font-weight: 700;
  color: #6B1D49;
  margin-bottom: 0.75em;
}

/* ── Individual event card ── */
.timeline__event {
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .09);
  border-radius: 0.6em;
  padding: 1em 1.1em;
  margin-bottom: 0.85em;
}

.timeline__event:last-child {
  margin-bottom: 0;
}

.timeline__event h3 {
  margin: 0 0 0.3em;
  font-size: 1.05em;
}

.timeline__event p {
  margin: 0 0 0.75em;
  font-size: 0.95em;
  color: rgba(0, 0, 0, .7);
}

.timeline__event p:last-child {
  margin-bottom: 0;
}

/* ── Photo grid inside an event ── */
.timeline__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9em, 1fr));
  gap: 0.4em;
  margin-top: 0.75em;
}

.timeline__gallery a {
  display: block;
  overflow: hidden;
  border-radius: 0.35em;
}

.timeline__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.35em;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease-in-out, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.timeline__gallery a:hover img {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .20);
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .timeline::before {
    left: 0.4em;
  }

  .timeline article {
    padding-left: 2em;
  }

  .timeline article::before {
    width: 0.9em;
    height: 0.9em;
  }

  .timeline__gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}
