.indaweb-timeline{
  position: relative;
  width: 100%;
  --line-y: 64px;
  --gap: 130px;
  --green: #67c2b1;
  --track-pad-top: 20px;
  --line-local: calc(var(--line-y) - var(--track-pad-top));
}

.indaweb-timeline__track{
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: var(--track-pad-top) 20px 20px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: none;
  user-select: none;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 20px;
  background: linear-gradient(#1f2a5a 0 0) no-repeat;
  background-size: 100% 4px;
  background-position: left var(--line-y);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.indaweb-timeline__track.is-dragging{
  cursor: none;
}

.indaweb-timeline__track::-webkit-scrollbar{
  width: 0;
  height: 0;
  display: none;
}

.indaweb-timeline__item{
  flex: 0 0 calc((100% - (var(--gap) * 4)) / 5);
  min-width: 180px;
  position: relative;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding-bottom: 560px;
}

.indaweb-timeline__top{
  position: relative;
  height: 230px;
}

.indaweb-timeline__dot{
  position: absolute;
  top: calc(var(--line-local) - 12px);
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #67c2b1;
  transform: translateX(-50%);
  z-index: 2;
}

.indaweb-timeline__stem{
  position: absolute;
  left: 50%;
  top: calc(var(--line-local) + 12px);
  width: 2px;
  background: #1f2a5a;
  transform: translateX(-50%);
  transform-origin: top center;
  transition: height 0.35s ease;
}

.indaweb-timeline__year{
  position: absolute;
  margin: 0;
  font-size: clamp(28px, 3.5vw, 58px);
  line-height: 1;
  color: #0f2f57;
  font-weight: 800;
  left: 50%;
  transform: translateX(-50%);
  transition: left 0.35s ease, top 0.35s ease, transform 0.35s ease;
  text-align: center;
}

.indaweb-timeline__item.is-low .indaweb-timeline__stem{
  height: 40px;
}

.indaweb-timeline__item.is-low .indaweb-timeline__year{
  top: calc(var(--line-local) + 58px);
}

.indaweb-timeline__item.is-lower .indaweb-timeline__stem{
  height: 80px;
}

.indaweb-timeline__item.is-lower .indaweb-timeline__year{
  top: calc(var(--line-local) + 98px);
}

.indaweb-timeline__item.is-active .indaweb-timeline__stem{
  height: 200px;
}

.indaweb-timeline__item.is-active .indaweb-timeline__year{
  left: calc(50% + 28px);
  transform: translateX(0);
  text-align: left;
  top: calc(var(--line-local) + 12px + 200px - 0.95em);
}

.indaweb-timeline__card{
  display: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.indaweb-timeline__item.is-active{
  z-index: 2;
}

.indaweb-timeline__item.is-active .indaweb-timeline__card{
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 120px minmax(240px, 1fr);
  align-items: start;
  position: absolute;
  left: 50%;
  top: calc(var(--line-local) + 12px + 200px + 80px);
  width: min(980px, 96vw);
  opacity: 1;
  transform: translate(-50%, 0);
}

.indaweb-timeline__media{
  grid-column: 1;
  width: min(100%, 320px);
  justify-self: end;
}

.indaweb-timeline__img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.indaweb-timeline__content{
  grid-column: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.indaweb-timeline__text{
  color: #6a6a6a;
  font-size: 20px;
  line-height: 1.25;
  text-align: left;
}

.indaweb-timeline__text p{
  margin: 0;
}

.indaweb-timeline__nav{
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-9999px, -9999px);
  display: flex;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.indaweb-timeline.is-cursor-active .indaweb-timeline__nav{
  opacity: 1;
}

.indaweb-timeline__btn{
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  position: relative;
  padding: 0;
}

.indaweb-timeline__btn:before{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transform: translate(-50%, -50%) rotate(225deg);
}

.indaweb-timeline__btn[data-indaweb-timeline-next]:before{
  transform: translate(-50%, -50%) rotate(45deg);
}

@media (max-width: 1024px){
  .indaweb-timeline{
    --gap: 36px;
    --track-pad-top: 18px;
  }

  .indaweb-timeline__track{
    padding: var(--track-pad-top) 16px 16px;
    cursor: grab;
  }

  .indaweb-timeline__track.is-dragging{
    cursor: grabbing;
  }

  .indaweb-timeline__item{
    flex-basis: min(68vw, 520px);
    min-width: 320px;
    padding-bottom: 0;
  }

  .indaweb-timeline__top{
    height: 220px;
  }

  .indaweb-timeline__item.is-active .indaweb-timeline__card{
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
    margin-top: 80px;
    display: grid;
    grid-template-columns: minmax(180px, 280px) 32px 1fr;
    align-items: start;
  }

  .indaweb-timeline__media{
    width: 100%;
    max-width: 280px;
  }

  .indaweb-timeline__text{
    font-size: 19px;
  }

  .indaweb-timeline__nav{
    display: none;
  }
}

@media (max-width: 767px){
  .indaweb-timeline{
    --gap: 18px;
    --track-pad-top: 16px;
  }

  .indaweb-timeline__track{
    padding: var(--track-pad-top) 12px 14px;
  }

  .indaweb-timeline__item{
    flex-basis: 86vw;
    min-width: 260px;
  }

  .indaweb-timeline__top{
    height: 210px;
  }

  .indaweb-timeline__item.is-active .indaweb-timeline__stem{
    height: 140px;
  }

  .indaweb-timeline__item.is-active .indaweb-timeline__year{
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    top: calc(var(--line-local) + 12px + 140px + 8px);
  }

  .indaweb-timeline__item.is-active .indaweb-timeline__card{
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .indaweb-timeline__media{
    max-width: 100%;
  }

  .indaweb-timeline__text{
    font-size: 18px;
  }
}
