.vtl-timeline {
    --vtl-active: #AD4B2D;
    --vtl-inactive: #919191;
    --vtl-bg: #F2F1E7;
    --vtl-text: #262626;
    --vtl-progress: 0px;
    position: relative;
    width: 100%;
    padding: 36px 0 80px;
    background: var(--vtl-bg);
    color: var(--vtl-text);
}

.vtl-timeline *,
.vtl-timeline *::before,
.vtl-timeline *::after {
    box-sizing: border-box;
}

.vtl-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 64px;
}

.vtl-filter {
    appearance: none;
    min-width: 74px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--vtl-inactive);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color .28s ease, transform .28s ease;
}

.vtl-filter:hover,
.vtl-filter:focus-visible {
    transform: translateY(-2px);
}

.vtl-filter.is-active {
    background: var(--vtl-active);
}

.vtl-heading {
    margin: 0 0 72px;
    color: var(--vtl-active);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.vtl-track {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.vtl-line-base,
.vtl-line-progress {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 50%;
    width: 3px;
    transform: translateX(-50%);
    pointer-events: none;
}

.vtl-line-base {
    bottom: 0;
    background: repeating-linear-gradient(
        to bottom,
        var(--vtl-inactive) 0 8px,
        transparent 8px 16px
    );
}

.vtl-line-progress {
    height: var(--vtl-progress);
    max-height: 100%;
    background: var(--vtl-active);
    transition: height .12s linear;
}

.vtl-event {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr);
    align-items: center;
    min-height: 480px;
    margin: 0 0 100px;
    opacity: 0;
    transform: translateY(38px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1);
}

.vtl-event:last-child {
    margin-bottom: 0;
}

.vtl-event.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.vtl-event[hidden] {
    display: none !important;
}

.vtl-event.is-left .vtl-media {
    grid-column: 1;
    grid-row: 1;
}

.vtl-event.is-left .vtl-marker {
    grid-column: 2;
    grid-row: 1;
}

.vtl-event.is-left .vtl-copy {
    grid-column: 3;
    grid-row: 1;
}

.vtl-event.is-right .vtl-copy {
    grid-column: 1;
    grid-row: 1;
}

.vtl-event.is-right .vtl-marker {
    grid-column: 2;
    grid-row: 1;
}

.vtl-event.is-right .vtl-media {
    grid-column: 3;
    grid-row: 1;
}

.vtl-media {
    position: relative;
    min-height: 470px;
    overflow: hidden;
    border-radius: 38px;
    background: #d4d0c6;
}

.vtl-event-image,
.vtl-image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.22,1,.36,1);
}

.vtl-image-placeholder {
    background: linear-gradient(135deg, rgba(181,75,42,.2), rgba(150,150,150,.22));
}

.vtl-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 44%, rgba(112,37,18,.84) 100%);
}

.vtl-media:hover .vtl-event-image {
    transform: scale(1.045);
}

.vtl-card-title {
    position: absolute;
    z-index: 2;
    right: 38px;
    bottom: 36px;
    left: 38px;
    color: #fff;
    font-size: clamp(20px, 2.1vw, 27px);
    font-weight: 600;
    line-height: 1.2;
}

.vtl-marker {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vtl-marker-visual {
    position: relative;
    display: block;
    width: 72px;
    height: 72px;
    transform: scale(.88);
    transition: transform .55s cubic-bezier(.22,1,.36,1);
}

.vtl-marker-visual::after {
    content: "";
    position: absolute;
    inset: 5px;
    border: 2px solid transparent;
    border-radius: 50%;
    pointer-events: none;
}

.vtl-marker-icon {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity .42s ease, transform .55s cubic-bezier(.22,1,.36,1);
}

.vtl-marker-icon-inactive {
    opacity: 1;
    transform: scale(1);
}

.vtl-marker-icon-active {
    opacity: 0;
    transform: scale(.78);
}

.vtl-marker.is-active .vtl-marker-visual {
    transform: scale(1);
}

.vtl-marker.is-active .vtl-marker-icon-inactive {
    opacity: 0;
    transform: scale(1.08);
}

.vtl-marker.is-active .vtl-marker-icon-active {
    opacity: 1;
    transform: scale(1);
}

.vtl-marker.is-active .vtl-marker-visual::after {
    animation: vtl-marker-pulse .8s ease-out 1;
}

@keyframes vtl-marker-pulse {
    0% {
        border-color: rgba(173,75,45,.42);
        transform: scale(.82);
        opacity: 1;
    }
    100% {
        border-color: rgba(173,75,45,0);
        transform: scale(1.42);
        opacity: 0;
    }
}

.vtl-copy {
    padding: 30px 0;
}

.vtl-event.is-left .vtl-copy {
    padding-left: 0;
}

.vtl-event.is-right .vtl-copy {
    padding-right: 0;
}

.vtl-date {
    margin-bottom: 10px;
    color: var(--vtl-active);
    font-size: 14px;
    line-height: 1.4;
}

.vtl-copy h3 {
    margin: 0 0 24px;
    color: var(--vtl-active);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(36px, 4.2vw, 54px);
    font-weight: 600;
    line-height: 1.06;
}

.vtl-description,
.vtl-description p {
    color: var(--vtl-text);
    font-size: 16px;
    line-height: 1.58;
}

.vtl-description p {
    margin: 0 0 22px;
}

.vtl-description p:last-child {
    margin-bottom: 0;
}

.vtl-empty {
    padding: 20px;
    border-left: 4px solid #b54b2a;
    background: #f6f7f7;
}

@media (max-width: 1024px) {
    .vtl-event {
        grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
        min-height: 410px;
        margin-bottom: 80px;
    }

    .vtl-media {
        min-height: 390px;
        border-radius: 30px;
    }

    .vtl-marker-visual {
        width: 62px;
        height: 62px;
    }
}

@media (max-width: 767px) {
    .vtl-timeline {
        padding: 28px 0 60px;
    }

    .vtl-filters {
        justify-content: flex-start;
        width: calc(100% - 30px);
        margin-bottom: 44px;
    }

    .vtl-filter {
        min-width: 64px;
        padding: 10px 16px;
    }

    .vtl-heading {
        width: calc(100% - 30px);
        margin: 0 auto 50px;
        text-align: left;
    }

    .vtl-track {
        width: calc(100% - 30px);
    }

    .vtl-line-base,
    .vtl-line-progress {
        left: 27px;
        transform: none;
    }

    .vtl-event,
    .vtl-event.is-left,
    .vtl-event.is-right {
        grid-template-columns: 55px minmax(0, 1fr);
        min-height: 0;
        margin-bottom: 78px;
    }

    .vtl-event.is-left .vtl-marker,
    .vtl-event.is-right .vtl-marker {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        margin-top: 22px;
    }

    .vtl-event.is-left .vtl-media,
    .vtl-event.is-right .vtl-media {
        grid-column: 2;
        grid-row: 1;
    }

    .vtl-event.is-left .vtl-copy,
    .vtl-event.is-right .vtl-copy {
        grid-column: 2;
        grid-row: 2;
        padding: 28px 0 0;
    }

    .vtl-media {
        min-height: 315px;
        border-radius: 25px;
    }

    .vtl-card-title {
        right: 24px;
        bottom: 24px;
        left: 24px;
    }

    .vtl-marker-visual {
        width: 48px;
        height: 48px;
    }

    .vtl-copy h3 {
        font-size: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vtl-event,
    .vtl-event-image,
    .vtl-filter,
    .vtl-marker-visual,
    .vtl-marker-icon,
    .vtl-line-progress {
        transition: none;
        animation: none !important;
    }
}
