.linija-wrapper {
  padding: 0 2.5vw;
  position: relative;
}
.linija-wrapper:before {
  content: "";
  height: 3px;
  background: #000;
  position: absolute;
  top: calc(50% - 5px);
  left: 0;
  right: 0;
  z-index: 1;
}
.linija-wrapper ::-webkit-scrollbar:vertical {
  display: none;
  width: 0;
}
.linija-wrapper ::-webkit-scrollbar {
  height: 12px;
}
.linija-wrapper ::-webkit-scrollbar-thumb:horizontal {
  background: #ee583f;
  border-radius: 12px;
  border: none;
  -webkit-transition: background 0.35s ease-in-out;
  transition: background 0.35s ease-in-out;
}
.linija-wrapper ::-webkit-scrollbar-thumb:horizontal:hover {
  background: #d03d28;
}
.linija-wrapper ::-webkit-scrollbar-track:horizontal {
  background: #ECDDC9;
  border-radius: 12px;
}
.linija-wrapper .scroll-container {
  overflow: scroll;
}

.linija {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 370px 0;
  min-width: 700px;
}
.linija__event-block {
  position: relative;
}
.linija__event-block .linija__date {
  position: absolute;
}
.linija__event-block .linija__date h2 {
  font-family: "SeituBold", sans-serif;
  font-size: var(--wp--preset--font-size--font-24);
  white-space: nowrap;
  color: #B3B3B3;
}
.linija__event-block:nth-child(3) .linija__date {
  top: -35px !important;
  margin-left: -100px;
}
.linija__event-block:nth-child(odd) .linija__date {
  top: -80px;
}
.linija__event-block:nth-child(even) .linija__date {
  bottom: -120px;
}
.linija__events {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.linija .event {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 130px;
}
.linija .event .dot-wrapper .img {
  width: 50px;
  height: 40px;
}
.linija .event .dot-wrapper .img img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}
.linija .event .dot-wrapper .dot {
  display: block;
  width: 19px;
  height: 19px;
  background: #000;
  border: 3px solid #000;
  border-radius: 50%;
  position: absolute;
  top: 56px;
  left: calc(50% - 9px);
  z-index: 5;
}
.linija .event .info-columns {
  display: none;
  width: 422px;
  flex-wrap: wrap;
  flex-direction: row;
  background: #e0d0b9;
  padding: 10px;
  position: absolute;
  z-index: 15;
}
.linija .event .info-columns.open {
  display: flex;
}
.linija .event .info-columns .image {
  width: 150px;
  max-height: 180px;
}

.linija .event .info-columns .image img {
  max-height: 100%;
  object-fit: contain;
}
.linija .event .info-columns .content {
  width: 250px;
  padding-left: 20px;
}
.linija .event .info-columns p {
  font-family: "SeituLight", sans-serif;
  font-size: 1.5rem;
  line-height: 1.25;
  color: #000;
}
.linija .event:nth-child(even) {
  position: relative;
}
.linija .event:nth-child(even) .info-columns {
  top: 230px;
  transform: translateX(-186px);
}
.linija .event:nth-child(even) .info-columns:before {
  display: block;
  content: "";
  width: 1px;
  height: 150px;
  background: #000;
  position: absolute;
  left: 50%;
  top: -150px;
}
.linija .event:nth-child(odd) {
  justify-content: flex-end;
}
.linija .event:nth-child(odd) .info-columns {
  top: 0;
  transform: translate(-185px, calc(-100% - 100px));
}
.linija .event:nth-child(odd) .info-columns:before {
  display: block;
  content: "";
  width: 1px;
  height: 150px;
  background: #000;
  position: absolute;
  left: 50%;
  bottom: -150px;
}
.linija .event:hover, .linija .event.active {
  cursor: pointer;
}
.linija .event:hover .dot-wrapper .dot, .linija .event.active .dot-wrapper .dot {
  background: #e0d0b9;
  border-color: #EE583F;
}
.linija .event.style-1 .dot-wrapper .dot {
  background: #B3B3B3;
  border-color: #B3B3B3;
  pointer-events: none;
}
.linija .event.style-1:hover .dot-wrapper .dot, .linija .event.style-1.active .dot-wrapper .dot {
  cursor: not-allowed;
  background: #B3B3B3;
  border-color: #B3B3B3;
  pointer-events: none;
}

.timeline .event {
  margin-bottom: 3rem;
  padding: var(--spacer-xs);
  color: #000;
  background: #E0D0BA;
  border: 1px solid #FFBA00;
}
.timeline .event:last-child {
  margin-bottom: 0;
}
.timeline .event > *:last-child {
  margin-bottom: 0;
}
.timeline__event-block {
  padding-bottom: 5rem;
  position: relative;
}
.timeline__event-block:last-child {
  padding-bottom: 0;
}
.timeline__event-block:before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 1px solid #E0D0BA;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  transition: background 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline__event-block:after {
  content: "";
  display: block;
  width: 1px;
  height: 100%;
  background: #E0D0BA;
  position: absolute;
  top: 0;
  left: 12px;
  z-index: 1;
}
.timeline__event-block h2 {
  font-size: var(--wp--preset--font-size--font-24);
  font-weight: 200;
  transition: all 0.525s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline__event-block.active h2 {
  font-weight: 500;
  color: #9EAEF9;
}
.timeline__event-block.active:before {
  background: #E0D0BA;
}
.timeline__event-block .divider {
  display: block;
  width: 1px;
  background: #000;
  position: absolute;
  top: 0;
  z-index: 2;
}
@media (max-width: 599px) {
  .timeline__event-block {
    padding-left: 45px;
  }
  .timeline__event-block .divider {
    left: 12px;
  }
}
@media (min-width: 600px) {
  .timeline__event-block:before {
    left: calc(50% - 12px);
  }
  .timeline__event-block:after {
    left: 50%;
  }
  .timeline__event-block .divider {
    left: 50%;
  }
}
@media (min-width: 782px) {
  .timeline__event-block:before {
    top: 0;
    left: 258px;
  }
  .timeline__event-block:after {
    left: 270px;
  }
  .timeline__event-block .divider {
    left: 270px;
  }
}
@media (min-width: 600px) {
  .timeline__event-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8rem;
  }
  .timeline__event-block > div {
    flex: 1;
  }
}
@media (min-width: 782px) {
  .timeline__event-block {
    gap: 8rem;
  }
  .timeline__event-block > div {
    flex: unset;
  }
  .timeline__event-block > div.timeline__date {
    width: 250px;
  }
  .timeline__event-block > div.timeline__events {
    width: calc(100% - 330px);
  }
}