.btc-timeline {
  --btc-row-top-h: 240px;
  --btc-row-bottom-h: 240px;
  --btc-middle-h: 60px;
  --btc-line-color: #bfbfbf;
  --btc-inner-w: 64%;
  --btc-font-color: #3f3f3f;
  --btc-items-per-view: 6;
  --btc-total-items: 1;
  --btc-line-offset: 15px;

  position: relative;
  width: 100%;
  background: #fff;
  padding: 14px 0 20px;
}

.btc-timeline-viewport {
  touch-action: pan-y;
}

.btc-timeline-sliders {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.btc-timeline * {
  box-sizing: border-box;
  font-family: Work Sans !important;
}

.btc-timeline-stage {
  position: relative;
  width: 100%;
}

.btc-timeline-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.btc-timeline-middle {
  position: absolute;
  left: 0;
  top: calc(var(--btc-row-top-h) + (var(--btc-middle-h) / 2));
  width: 100%;
  height: var(--btc-middle-h);
  transform: translateY(-50%);
  z-index: 20;
  pointer-events: none;
}

.btc-timeline-line {
  position: absolute;
  left: 0;
  top: 50%;
  width: calc((var(--btc-total-items, 1) / var(--btc-items-per-view, 6)) * 100%);
  height: 1px;
  background: var(--btc-line-color);
  transform: translateY(-50%);
  z-index: 1;
}

.btc-timeline-nav-group {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 34px;
  height: 34px;
  padding: 0 5px;
  border-radius: 50%;
  background: #1f1f1f;
  z-index: 12;
  pointer-events: auto;
}

.btc-timeline-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  margin: 0;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  font-size: 10px;
}

.btc-timeline-nav[disabled] {
  opacity: .45;
  cursor: default;
}

.btc-timeline-sliders {
  position: relative;
  display: grid;
  grid-template-rows: var(--btc-row-top-h) var(--btc-middle-h) var(--btc-row-bottom-h);
  row-gap: 0;
  width: 100%;
  transition: transform .35s ease;
  will-change: transform;
  z-index: 2;
}

.btc-timeline-middle-spacer {
  grid-row: 2;
  height: var(--btc-middle-h);
}

.btc-timeline-track {
  display: grid;
  grid-template-columns: repeat(var(--btc-total-items, 1), minmax(0, 1fr));
  width: calc((var(--btc-total-items, 1) / var(--btc-items-per-view, 6)) * 100%);
  align-items: stretch;
}

.btc-timeline-track-top {
  grid-row: 1;
}

.btc-timeline-track-bottom {
  grid-row: 3;
}

.btc-timeline-slot {
  position: relative;
}

.btc-timeline-slot::before,
.btc-timeline-slot::after {
  content: "";
  position: absolute;
  width: 1px;
  background: var(--btc-line-color);
}

.btc-timeline-slot::before {
  left: 0;
}

.btc-timeline-slot::after {
  right: 0;
}

.btc-timeline-track-top .btc-timeline-slot {
  display: flex;
  align-items: flex-end;
  min-height: var(--btc-row-top-h);
  height: var(--btc-row-top-h);
}

.btc-timeline-track-bottom .btc-timeline-slot {
  display: flex;
  align-items: flex-start;
  min-height: var(--btc-row-bottom-h);
  height: var(--btc-row-bottom-h);
}

.btc-timeline-track-top .btc-timeline-slot::before,
.btc-timeline-track-top .btc-timeline-slot::after {
  top: 10px;
  bottom: calc(-1 * ((var(--btc-middle-h) / 2) - var(--btc-line-offset)));
}

.btc-timeline-track-bottom .btc-timeline-slot::before,
.btc-timeline-track-bottom .btc-timeline-slot::after {
  top: calc(-1 * ((var(--btc-middle-h) / 2) - var(--btc-line-offset)));
  bottom: 10px;
}

.btc-timeline-slot-inner {
  width: var(--btc-inner-w);
  margin: 0 auto;
}

.btc-timeline-track-top .btc-timeline-slot-inner {
  margin: auto auto 0;
  padding-bottom: 8px;
}

.btc-timeline-track-bottom .btc-timeline-slot-inner {
  margin: 0 auto auto;
  padding-top: 8px;
}

.btc-tl-event {
  color: var(--btc-font-color);
  font-family: Work Sans, sans-serif;
}

.btc-tl-image {
  width: 100%;
  margin: 0 0 12px;
}

.btc-timeline-track-bottom .btc-tl-image {
  margin: 12px 0 0;
}

.btc-tl-image img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.btc-tl-year {
  font-size: 18px;
  line-height: 1.1;
  margin: 0 0 8px;
  color: #333;
}

.btc-tl-text,
.btc-tl-text p {
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  color: #666;
}

.btc-timeline-slot.is-empty .btc-timeline-slot-inner {
  min-height: 100%;
}

@media (max-width: 1100px) {
  .btc-timeline {
    --btc-inner-w: 72%;
    --btc-items-per-view: 4;
  }
}

@media (max-width: 767px) {
  .btc-timeline {
    --btc-middle-h: 54px;
    --btc-inner-w: 80%;
    --btc-items-per-view: 2;
  }

  .btc-tl-year {
    font-size: 17px;
  }
}