.ln-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 33px 22px;
  padding: 0 22px;
  margin-bottom: 120px;
}

.ln-sections div {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.ln-sections img {
  width: 100%;
  transition: transform 300ms;
  margin-bottom: -5px;
  pointer-events: none;
}

.ln-sections div:hover img {
  transform: scale(1.03);
}

#details-image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  transition: transform 300ms, opacity 300ms;
  max-width: calc(100% - 42px);
  width: 900px;
  border-radius: 40px;
  z-index: 2;
}

#details-image.change {
  opacity: 0;
  transform:translate(-50%,-50%)  scale(0.4) ;
}

.ln-sections .backdrop {
  position: fixed;
  inset: 0;
  background-color: #00000044;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.ln-sections:has(.active) .backdrop {
  opacity: 1;
  pointer-events: all;
}

@media screen and (max-width: 1000px) {
  .ln-sections:has(.active) .backdrop {
    opacity: 0;
    pointer-events: none !important;
  }
}

.target-bottom-image {
  display: none;
  position: relative;
  margin-bottom: -100% !important;
  top: -64vw;
  width: 110vw !important;
  height: 64vw;
  object-fit: cover;
  left: -5vw;
  transition: opacity 150ms, transform 150ms !important;
  opacity: 1;
}
.target-bottom-image.change {
  opacity: 0;
  transform: translateY(10px);
}

.timeline .inner {
  display: inline-flex;
  flex-wrap: nowrap;
  width: auto;
  gap: 24px;
  position: relative;
}
.timeline .inner:after {
  content: " ";
  width: 100%;
  position: absolute;
  top: 170px;
  border-top: solid 1px black;
}
.timeline .inner .space {
  width: calc(50vw - 570px);
  min-width: 24px;
}
.timeline .videoplayer {
  height: calc(100vh - 380px);
  min-height: 50vh;
  aspect-ratio: 16 / 9;
}
.timeline .videoplayer video {
  aspect-ratio: 16 / 9;
}
.timeline .item {
  position: relative;

}
.timeline .item h2 {
  position: absolute;
  top: 110px;
  font-size: 20px;
  text-align: center;
  width: 100%;
  font-weight: 400;
}
.timeline .item h2:after {
  content: " ";
  position: absolute;
  top: 40px;
  width: 9px;
  height: 9px;
  left: calc(50% - 4px);
  background-color: black;
  border-radius: 100px;
}

.timeline .item p {

  position: absolute;
  bottom: 110px;
  font-size: 20px;
  text-align: center;
  width: 100%;
  font-weight: 400;
}

@media screen and (max-width: 1000px) {
  .side-titles {
    margin-top: 12px !important;
    margin-bottom: 24px !important;
  }

  .timeline .videoplayer {
    margin-top: 160px;
    width: calc(100vw - 22px);
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0px;
  }

  .timeline .inner:after {
    top: 130px;
  }
  .timeline .item h2{
    top: 70px;
  }
  .timeline .item p {
    bottom: -60px;
    font-size: 16px;
  }
}