.timeline-section {
  min-height: 720px;
  padding-bottom: 100px;
  background:
    radial-gradient(circle at 10% 10%, rgba(160, 151, 123, 0.12), transparent 26%),
    #efe9de;
  overflow: hidden;
}

.timeline-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none;
  user-select: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.timeline-viewport::-webkit-scrollbar {
  display: none;
}

.timeline-viewport.is-dragging {
  cursor: grabbing;
}

.timeline-track {
  width: max-content;
  min-width: 100%;
  padding: 40px max(36px, calc((100vw - 1500px) / 2 + 36px)) 64px;
  display: flex;
  align-items: stretch;
  gap: calc(38px * var(--timeline-scale));
  transform-origin: left center;
}

.timeline-chapter {
  position: relative;
  width: calc(360px * var(--timeline-scale));
  flex: 0 0 auto;
  padding-top: 56px;
}

.timeline-chapter::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  right: calc(-38px * var(--timeline-scale));
  height: 1px;
  background: rgba(31,34,31,0.2);
}

.timeline-chapter__node {
  position: absolute;
  top: 20px;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #efe9de;
  border: 2px solid #2f3a32;
}

.timeline-chapter__year {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: calc(3.2rem * var(--timeline-scale));
  line-height: 1;
}

.timeline-chapter__title {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.timeline-chapter__description {
  min-height: 72px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-chapter__photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.timeline-photo {
  aspect-ratio: 4 / 3;

  border-radius: 14px;
  overflow: hidden;

  position: relative;

  background: #c9c1b3;
}

.timeline-photo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition:
    transform 450ms ease,
    filter 300ms ease;
}

.timeline-photo span {
  position: absolute;
  inset: auto 0 0;

  padding:
    34px 12px 10px;

  background:
    linear-gradient(
      to top,
      rgba(9, 9, 8, 0.72),
      transparent
    );

  color:
    rgba(255, 255, 255, 0.92);

  font-size: 0.7rem;

  opacity: 0;

  transform: translateY(5px);

  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.timeline-photo:hover img {
  transform: scale(1.035);
  filter: brightness(0.7);
}

.timeline-photo:hover span {
  opacity: 1;
  transform: translateY(0);
}
