.vt-timeline {
  --vt-timeline-cream: #e5d5c4;
  --vt-timeline-brown: #bc9e7c;
  --vt-timeline-ink: #342720;
  --vt-timeline-paper: #fffdf9;
  max-width: 1160px;
  margin: 0 auto;
  color: var(--vt-timeline-ink);
}

.vt-timeline__navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 0 0 2.5rem;
}

.vt-timeline__navigation a {
  border: 1px solid color-mix(in srgb, var(--vt-timeline-brown), #fff 25%);
  border-radius: 99px;
  padding: 0.35rem 0.7rem;
  color: var(--vt-timeline-ink);
  background: var(--vt-timeline-paper);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.vt-timeline__navigation a:hover,
.vt-timeline__navigation a:focus-visible {
  border-color: var(--vt-timeline-brown);
  background: var(--vt-timeline-cream);
  color: var(--vt-timeline-ink);
}

.vt-timeline--navigation-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.6rem;
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.8rem);
}

.vt-timeline--navigation-right .vt-timeline__navigation {
  position: sticky;
  top: 1.25rem;
  grid-column: 2;
  grid-row: 1;
  align-items: stretch;
  flex-direction: column;
  flex-wrap: nowrap;
  margin: 0;
}

.vt-timeline--navigation-right .vt-timeline__navigation a {
  min-width: 0;
  text-align: center;
}

.vt-timeline--navigation-right .vt-timeline__items {
  grid-column: 1;
  grid-row: 1;
}

.vt-timeline__items {
  position: relative;
}

.vt-timeline__items::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--vt-timeline-cream);
  content: "";
  transform: translateX(-50%);
}

.vt-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.5rem minmax(0, 1fr);
  align-items: start;
  margin: 0 0 2rem;
  scroll-margin-top: 1.5rem;
}

.vt-timeline__marker {
  position: relative;
  z-index: 1;
  grid-column: 2;
  display: grid;
  place-items: center;
  min-height: 3.4rem;
}

.vt-timeline__marker time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.8rem;
  min-height: 3.8rem;
  border: 4px solid var(--vt-timeline-paper);
  border-radius: 50%;
  padding: 0.35rem;
  color: #fff;
  background: var(--vt-timeline-brown);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--vt-timeline-brown), #fff 30%);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.vt-timeline__card {
  grid-column: 1;
  border: 1px solid color-mix(in srgb, var(--vt-timeline-brown), #fff 45%);
  border-radius: 0.2rem;
  padding: clamp(1.25rem, 2.7vw, 2rem);
  background: var(--vt-timeline-paper);
  box-shadow: 0 0.6rem 1.5rem rgba(56, 38, 26, 0.08);
}

.vt-timeline__item:nth-child(even) .vt-timeline__card {
  grid-column: 3;
}

.vt-timeline__title {
  margin: 0;
  color: var(--vt-timeline-ink);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.18;
}

.vt-timeline__title a {
  color: inherit;
  text-decoration: none;
}

.vt-timeline__title a:hover,
.vt-timeline__title a:focus-visible {
  color: #8d6746;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.vt-timeline__tagline {
  margin: 0 0 0.55rem;
  color: #8d6746;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vt-timeline__content {
  margin-top: 1rem;
  color: #5a473b;
}

.vt-timeline__content > :last-child {
  margin-bottom: 0;
}

.vt-timeline__image {
  margin: -0.1rem -0.1rem 1.2rem;
}

.vt-timeline__image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .vt-timeline--navigation-right {
    display: block;
  }

  .vt-timeline--navigation-right .vt-timeline__navigation {
    position: static;
    align-items: initial;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 0 2.5rem;
  }

  .vt-timeline--navigation-right .vt-timeline__navigation a {
    min-width: auto;
  }
}

@media (max-width: 760px) {
  .vt-timeline__items::before {
    left: 1.7rem;
  }

  .vt-timeline__item,
  .vt-timeline__item:nth-child(even) {
    grid-template-columns: 3.4rem minmax(0, 1fr);
  }

  .vt-timeline__marker {
    grid-column: 1;
  }

  .vt-timeline__marker time {
    min-width: 3.25rem;
    min-height: 3.25rem;
    font-size: 0.72rem;
  }

  .vt-timeline__card,
  .vt-timeline__item:nth-child(even) .vt-timeline__card {
    grid-column: 2;
  }
}

@media (max-width: 460px) {
  .vt-timeline__navigation {
    justify-content: flex-start;
  }

  .vt-timeline__navigation a {
    padding: 0.3rem 0.58rem;
    font-size: 0.76rem;
  }

  .vt-timeline__item,
  .vt-timeline__item:nth-child(even) {
    grid-template-columns: 2.8rem minmax(0, 1fr);
  }

  .vt-timeline__items::before {
    left: 1.4rem;
  }

  .vt-timeline__marker time {
    min-width: 2.8rem;
    min-height: 2.8rem;
    border-width: 3px;
    font-size: 0.65rem;
  }
}
