/* V4 "Growing Up" timeline - layers on top of v1.css (poster theme). */

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding-left: 8px;
}

/* the stem running down the timeline */
.timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    180deg,
    var(--berry-soft) 0 14px,
    transparent 14px 24px
  );
}

.tl-stage {
  position: relative;
  padding: 6px 0 34px 74px;
}

.tl-marker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.tl-dot {
  position: absolute;
  left: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--berry-soft);
  box-shadow: 0 4px 12px rgba(214, 69, 112, 0.2);
  font-size: 22px;
}

.tl-heading h3 {
  font-family: var(--font-script);
  font-size: clamp(26px, 4.5vw, 36px);
  color: var(--berry);
  margin: 0;
  text-shadow: 1px 1px 0 #fff;
}

.tl-heading p {
  margin: 0;
  font-family: var(--font-serif);
  color: #8a5f6d;
  font-size: 16px;
}

.tl-photos {
  columns: 3 200px;
  column-gap: 12px;
}

.tl-photos a {
  display: block;
  margin-bottom: 12px;
  border-radius: 14px;
  overflow: hidden;
  break-inside: avoid;
  border: 4px solid #fff;
  box-shadow: 0 4px 14px rgba(214, 69, 112, 0.16);
  transition: transform 0.2s ease;
}

.tl-photos a:hover { transform: rotate(-1deg) scale(1.02); }

.tl-photos img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--paper-deep);
}

@media (max-width: 820px) {
  .timeline::before { left: 21px; }
  .tl-stage { padding-left: 56px; }
  .tl-dot { width: 40px; height: 40px; font-size: 17px; }
  .tl-photos { columns: 2 130px; column-gap: 10px; }
  .tl-photos a { margin-bottom: 10px; }
}
