.section-page-timeline-feature {
  overflow-x: hidden;
  .timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: timeline-counter;

    display: flex;
    flex-direction: column;

    .block-page-timeline-feature {
      counter-increment: timeline-counter;
    }

    .block-page-timeline-feature:last-child .timeline-item .timeline-side .timeline-icon {
      top: 100%;
      transform: translate(-50%, -100%);
    }

    .block-page-timeline-feature:first-child .timeline-item .timeline-side .timeline-icon {
      top: -10px;
      transform: translateX(-50%);
    }

    .timeline-item {
      display: grid;
      grid-template-columns: auto 1fr;

      .timeline-side {
        position: relative;
        width: 100%;
        height: 100%;
        padding-right: 8rem;

        @media (max-width: 1000px) {
          padding-left: 1rem;
          padding-right: 4rem;
        }

        .timeline-line {
          display: block;
          width: 3px;
          height: 100%;
          background-color: rgb(var(--foreground-color));
          position: absolute;
          left: calc(1.5px);
          transform: translateX(-50%);

          @media (max-width: 1000px) {
            left: calc(1rem + 1.5px);
          }
        }

        .timeline-icon {
          position: absolute;
          left: calc(1.5px);
          transform-origin: center;
          width: 30px;
          height: 30px;
          background-color: rgb(var(--background-color));
          border-radius: 50%;
          border: 2px solid rgb(var(--foreground-color));
          outline: 4px solid rgb(var(--background-color));
          display: flex;
          align-items: center;
          justify-content: center;
          top: 50%;
          transform: translate(-50%, -50%);

          @media (max-width: 1000px) {
            left: calc(1rem + 1.5px);
          }
        }

        .timeline-number {
          font-size: 16px;
          font-weight: bold;
          color: rgb(var(--foreground-color));
          line-height: 1;

          &::before {
            content: counter(timeline-counter);
          }
        }
      }

      .timeline-content {
        padding-top: 2rem;
      }

      &:first-child .timeline-content {
        padding-top: 0;
      }

      .timeline-title {
        font-size: var(--text-xl);
        margin-bottom: 1rem;
        color: rgb(var(--foreground-color));
      }

      .timeline-description {
        font-size: var(--text-xs);
        margin-bottom: 1rem;
        color: rgb(var(--foreground-color));

        p {
          margin: 0;
        }
      }

      .timeline-image-wrapper {
        width: 100%;
        height: 400px;
        overflow: hidden;
        display: block;
        margin: 0;
        position: relative;
        border: 3px solid rgb(var(--foreground-color));

        @media (max-width: 500px) {
          height: 300px;
        }
      }

      .block-page-media {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;

        img, video, svg {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
    }
  }
}