.wh24-history {
    --wh24-history-text: #614d42;
    --wh24-history-accent: #fcd103;
    --wh24-history-gap: 16px;
    --wh24-history-line-top: 35px;
    position: relative;
    width: 100%;
    color: var(--wh24-history-text);
}

.wh24-history::before {
    position: absolute;
    top: var(--wh24-history-line-top);
    right: 40px;
    left: 40px;
    height: 4px;
    background: var(--wh24-history-accent);
    content: "";
}

.wh24-history__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 10px 28px;
    cursor: grab;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-behavior: auto;
    scroll-snap-type: none;
    touch-action: pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

.wh24-history__viewport.is-animating,
.wh24-history__viewport.is-dragging {
    scroll-behavior: auto;
}

.wh24-history__viewport.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.wh24-history__viewport::-webkit-scrollbar {
    display: none;
}

.wh24-history__viewport:focus-visible {
    outline: 3px solid #004b93;
    outline-offset: 5px;
}

.wh24-history__track {
    display: flex;
    align-items: flex-start;
    gap: var(--wh24-history-gap);
    min-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wh24-history__item {
    position: relative;
    flex: 0 0 calc((100% - (3 * var(--wh24-history-gap))) / 4);
    min-width: 0;
    padding-top: 86px;
    scroll-snap-align: start;
}

.wh24-history__marker {
    position: absolute;
    top: 12px;
    left: 50%;
    display: grid;
    box-sizing: border-box;
    width: 50px;
    height: 50px;
    border: 4px solid var(--wh24-history-accent);
    border-radius: 50%;
    background: #fff;
    transform: translateX(-50%);
    place-items: center;
}

.wh24-history__marker .far {
    display: block;
    color: var(--wh24-history-accent);
    width: 24px;
    height: 24px;
}

.wh24-history__marker .fa-clock::before,
.wh24-history__control .fa-chevron-left::before,
.wh24-history__control .fa-chevron-right::before {
    content: none !important;
}

.wh24-history__marker svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.wh24-history__card {
    overflow: hidden;
    min-height: 230px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px -2px rgb(97 77 66 / 30%);
}

.wh24-history__media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    margin: 10px 10px 0;
    background: #fff;
}

.wh24-history__image {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
}

.wh24-history__content {
    padding: 14px 10px 18px;
}

.wh24-history__event-title {
    margin: 0 0 10px;
    color: var(--wh24-history-text);
    font: 800 clamp(30px, 2.5vw, 36px)/1.25 Centaur, Georgia, serif;
}

.wh24-history__description {
    color: var(--wh24-history-text);
    font: 400 19px/1.4 Barlow, sans-serif;
}

.wh24-history__description p {
    margin: 0;
}

.wh24-history__description p + p {
    margin-top: 10px;
}

.wh24-history__description em {
    font-size: 0.84em;
    text-decoration: underline;
}

.wh24-history__control {
    position: absolute;
    top: 11px;
    z-index: 2;
    display: grid;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wh24-history-accent);
    cursor: pointer;
    place-items: center;
}

.wh24-history__control .fas {
    display: block;
    color: inherit;
    width: 24px;
    height: 34px;
}

.wh24-history__control svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
    stroke-width: 64;
}

.wh24-history__control--previous {
    left: -1px;
}

.wh24-history__control--next {
    right: -1px;
}

.wh24-history__control:hover,
.wh24-history__control:focus-visible {
    color: var(--wh24-history-accent);
}

.wh24-history__control:focus-visible {
    outline: 3px solid #004b93;
    outline-offset: 2px;
}

.wh24-history__control:active {
    transform: translateY(1px);
}

.wh24-history__control:disabled {
    color: #d7d1cd;
    cursor: default;
    opacity: 0.55;
}

.wh24-history__status {
    position: absolute !important;
    overflow: hidden;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .wh24-history__item {
        flex-basis: calc((100% - var(--wh24-history-gap)) / 2);
    }
}

@media (max-width: 767px) {
    .wh24-history__viewport {
        padding-right: 34px;
        padding-left: 34px;
    }

    .wh24-history__item {
        flex-basis: 100%;
        padding-top: 78px;
    }

    .wh24-history {
        --wh24-history-line-top: 31px;
    }

    .wh24-history__marker {
        top: 10px;
        width: 44px;
        height: 44px;
    }

    .wh24-history__control {
        top: 9px;
        width: 44px;
        height: 44px;
    }

    .wh24-history__control--previous {
        left: 0;
    }

    .wh24-history__control--next {
        right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wh24-history__viewport {
        scroll-behavior: auto;
    }
}
