.timeline-block {
    --timeline-line-color: rgba(0, 0, 0, 0.18);
    --timeline-progress: 0%;
    --timeline-text-color: currentColor;
    position: relative;
}


.timeline-block__inner {
    min-height: 1px;
}

.timeline-block__carousel {
    overflow: hidden;
    position: relative;
}

.timeline-block__carousel:not([data-base-theme-swiper-ready="1"]) .timeline-block__slides {
    display: flex;
    overflow: hidden;
}

.timeline-block__carousel:not([data-base-theme-swiper-ready="1"]) .timeline-block__slide {
    flex: 0 0 100%;
}

.timeline-block__item {
    align-items: center;
    display: grid;
    gap: clamp(2.5rem, 7vw, 6.5rem);
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    min-height: 1px;
}

.timeline-block__content {
    max-width: 42rem;
    min-width: 0;
}

.timeline-block__year {
    margin-bottom: 0 !important;
}

.timeline-block__heading {
    max-width: 20ch;
}

.timeline-block__text {
    max-width: 49rem;
}

.timeline-block__text > :first-child {
    margin-top: 0;
}

.timeline-block__text > :last-child {
    margin-bottom: 0;
}

.timeline-block__next,
.timeline-block__previous {
    appearance: none;
    cursor: pointer;
    margin-top: 1.5rem;
}

.timeline-block .timeline-block__previous::after {
    order: -1;
    transform: rotate(180deg);
}

.timeline-block .timeline-block__previous:focus-visible::after {
    transform: translateX(-4px) rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
    .timeline-block .timeline-block__previous:hover::after {
        transform: translateX(-4px) rotate(180deg);
    }
}

.timeline-block__media {
    aspect-ratio: 1 / 1;
    border-radius: 0.375rem;
    display: block;
    justify-self: end;
    margin: 0;
    max-width: 38rem;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.timeline-block__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.timeline-block__carousel[data-base-theme-swiper-ready="1"] .swiper-slide-active .timeline-block__content {
    animation: timeline-content-enter 600ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.timeline-block__carousel[data-base-theme-swiper-ready="1"] .swiper-slide-active .timeline-block__media {
    animation: timeline-media-enter 700ms 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes timeline-content-enter {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes timeline-media-enter {
    from {
        opacity: 0;
        transform: translateY(0.75rem) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.timeline-block__nav {
    margin-top: clamp(2.75rem, 5.5vw, 4.5rem);
    position: relative;
}

.timeline-block__nav-track {
    background: var(--timeline-line-color);
    display: block;
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: calc(0.3125rem - 1.5px);
}

.timeline-block__nav-progress {
    background: currentColor;
    display: block;
    height: 100%;
    transition: width 500ms ease;
    width: var(--timeline-progress);
}

.timeline-block__nav-list {
    display: grid;
    grid-template-columns: repeat(var(--timeline-count), minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.timeline-block__nav-item {
    display: flex;
    justify-content: center;
    min-width: 0;
    text-align: center;
}

.timeline-block__nav-button {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: rgba(0, 0, 0, 0.42);
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    font-family: var(--font-headings-family, serif);
    font-size: clamp(0.9375rem, 1.15vw, 1.125rem);
    font-weight: var(--font-headings-weight, 700);
    gap: 0.75rem;
    letter-spacing: 0;
    line-height: 1.1;
    min-width: 2.75rem;
    padding: 0;
    position: relative;
    z-index: 1;
}

.timeline-block__nav-button:is(.is-active, .is-complete) {
    color: currentColor;
}

.timeline-block__nav-button:hover,
.timeline-block__nav-button:focus-visible {
    color: currentColor;
}

.timeline-block__nav-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 0.35rem;
}

.timeline-block__nav-dot {
    background: #949494;
    border-radius: 999px;
    box-shadow: 0 0 0 0.5rem var(--timeline-background-color);
    display: block;
    height: 0.625rem;
    width: 0.625rem;
}

.timeline-block__nav-button:is(.is-active, .is-complete, :hover, :focus-visible) .timeline-block__nav-dot {
    background: currentColor;
}

.timeline-block__nav-label {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .timeline-block__nav-progress {
        transition-duration: 0.01ms;
    }

    .timeline-block__carousel[data-base-theme-swiper-ready="1"] .swiper-slide-active .timeline-block__content,
    .timeline-block__carousel[data-base-theme-swiper-ready="1"] .swiper-slide-active .timeline-block__media {
        animation: none;
    }
}

@media (max-width: 781px) {
    .timeline-block__item {
        align-items: start;
        gap: 2rem;
        grid-template-columns: 1fr;
    }

    .timeline-block__content {
        max-width: none;
    }

    .timeline-block__media {
        max-width: 34rem;
        width: 100%;
    }

    .timeline-block__nav {
        margin-top: 2.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .timeline-block__nav-track {
        min-width: calc(var(--timeline-count) * 5.75rem);
    }

    .timeline-block__nav-list {
        grid-template-columns: repeat(var(--timeline-count), minmax(5.75rem, 1fr));
        min-width: calc(var(--timeline-count) * 5.75rem);
    }
}

@media (max-width: 480px) {
    .timeline-block__heading {
        max-width: none;
    }

    .timeline-block__nav-button {
        font-size: 0.9375rem;
    }
}
