.timeline-item-alt,
.timeline-year,
.timeline-years-nav {
  font-family: 'Titillium Web', sans-serif;
}

.timeline-container-alt {
  position: relative;
  margin: 4rem auto;
  padding: 0;
  max-width: 100%;
  z-index: 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #1d1d1d;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-block {
  position: relative;
  margin: 6rem 0;
}

.timeline-block.year-only:first-of-type {
  margin-top: 2rem;
}

.timeline-year-wrapper {
  text-align: center;
  margin: 2rem 0 3rem;
}

.timeline-year {
  font-size: 2.4rem;
  font-weight: 700;
  background: #fff;
  padding: 1rem 1.4rem;
  display: inline-block;
  margin: 0 auto;
  position: relative;
  z-index: 5;
  line-height: 1;
}

.timeline-item-alt {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 2rem auto;
  z-index: 3;
  display: block;
  text-align: center;
}

.timeline-item-alt.left .timeline-content {
  margin-right: 52%;
  margin-left: auto;
  text-align: right;
}

.timeline-item-alt.right .timeline-content {
  margin-left: 52%;
  margin-right: auto;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: #1d1d1d;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: none;
}

.timeline-content {
  position: relative;
  background: #1d1d1d;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.4;
  max-width: 48%;
  z-index: 3;
}

.timeline-content a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  font-weight: 400;
}

.timeline-content a:hover {
  text-decoration: underline;
}

.timeline-date {
  font-size: .75rem;
  color: #bbb;
  margin-bottom: .3rem;
  display: block;
}

.timeline-years-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem;
  margin: 2rem auto 3rem;
  font-size: .95rem;
  padding: .5rem 1rem;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.timeline-years-nav a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #666;
  text-decoration: none;
  font-weight: 600;
  padding: .3rem .6rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  transition: .2s;
}

.timeline-years-nav a:hover {
  background: #f0f0f0;
  color: #000;
}

.timeline-years-nav a.active {
  border-color: #000;
  color: #000;
}

.timeline-years-nav .cnt {
  display: inline-block;
  font-size: .8em;
  opacity: .75;
}

.timeline-years-nav a.reset {
  margin-left: auto;
}

@media (max-width: 900px) {
  .timeline-years-nav {
    padding: .5rem;
  }

  .timeline-line {
    left: 8px;
    transform: none;
  }

  .timeline-item-alt,
  .timeline-item-alt.right {
    left: 0;
    width: 100%;
    text-align: left;
    padding-left: 0;
  }

  .timeline-item-alt.left .timeline-content,
  .timeline-item-alt.right .timeline-content {
    margin: 0 0 0 1.8rem;
    text-align: left;
    max-width: 92%;
  }

  .timeline-dot {
    left: 8px;
  }
}

@media (max-width: 560px) {
  .timeline-year {
    font-size: 2rem;
    padding: .9rem 1.1rem;
  }

  .timeline-content {
    font-size: .95rem;
    padding: .9rem 1.1rem;
  }

  .timeline-date {
    font-size: .72rem;
  }
}
