.hec-media-carousel {
    --hec-center-width: 54%;
    --hec-center-half: 27%;
    --hec-side-width: 21%;
    --hec-side-half: 10.5%;
    --hec-gap: 22px;
    --hec-stage-ratio: 0.5625;
    position: relative;
    width: 100%;
    padding: 0 7.5%;
    box-sizing: border-box;
    overflow: hidden;
}

.hec-media-carousel__stage {
    position: relative;
    width: 100%;
    height: clamp(300px, calc((100vw - 15vw) * 0.54 * var(--hec-stage-ratio)), 680px);
}

.hec-media-carousel__item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--hec-side-width);
    height: 90%;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(.96);
    transition: left .52s cubic-bezier(.2,.8,.2,1),
                width .52s cubic-bezier(.2,.8,.2,1),
                height .52s cubic-bezier(.2,.8,.2,1),
                transform .52s cubic-bezier(.2,.8,.2,1),
                opacity .28s ease;
    z-index: 1;
    cursor: pointer;
}

.hec-media-carousel__item.is-active,
.hec-media-carousel__item.is-prev,
.hec-media-carousel__item.is-next {
    opacity: 1;
    visibility: visible;
}

.hec-media-carousel__item.is-active {
    left: 50%;
    width: var(--hec-center-width);
    height: 100%;
    transform: translate(-50%, -50%) scale(1);
    z-index: 3;
    cursor: default;
}

.hec-media-carousel__item.is-prev {
    left: calc(50% - var(--hec-center-half) - var(--hec-gap) - var(--hec-side-half));
    z-index: 2;
}

.hec-media-carousel__item.is-next {
    left: calc(50% + var(--hec-center-half) + var(--hec-gap) + var(--hec-side-half));
    z-index: 2;
}

.hec-media-carousel__media,
.hec-media-carousel__image,
.hec-media-carousel__video-launch,
.hec-media-carousel__video-launch > img,
.hec-media-carousel__media iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.hec-media-carousel__media {
    position: relative;
    overflow: hidden;
    background: #111;
}

.hec-media-carousel__image,
.hec-media-carousel__video-launch > img {
    object-fit: cover;
}

.hec-media-carousel__video-launch {
    position: relative;
    border: 0;
    padding: 0;
    margin: 0;
    background: #111;
    cursor: pointer;
}

.hec-media-carousel__media iframe {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    border: 0;
}

.hec-media-carousel__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 54px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    background: #ff0033;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
}

.hec-media-carousel__play::after {
    content: '';
    position: absolute;
    left: 31px;
    top: 15px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 19px solid #fff;
}

.hec-media-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 18px;
    line-height: 1;
    cursor: pointer;
    font-size: clamp(56px, 5vw, 92px);
    font-weight: 300;
    color: currentColor;
    opacity: .95;
    transition: transform .2s ease, opacity .2s ease;
}

.hec-media-carousel__arrow:hover,
.hec-media-carousel__arrow:focus-visible {
    opacity: 1;
}

.hec-media-carousel__arrow--prev {
    left: 0;
}

.hec-media-carousel__arrow--next {
    right: 0;
}

.hec-media-carousel__arrow--prev:hover {
    transform: translateY(-50%) translateX(-4px);
}

.hec-media-carousel__arrow--next:hover {
    transform: translateY(-50%) translateX(4px);
}

.hec-media-carousel__arrow:focus-visible,
.hec-media-carousel__video-launch:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 991px) {
    .hec-media-carousel {
        padding: 0 42px;
    }

    .hec-media-carousel__stage {
        height: clamp(280px, 56vw, 520px);
    }

    .hec-media-carousel__item.is-active {
        width: 72%;
    }

    .hec-media-carousel__item.is-prev,
    .hec-media-carousel__item.is-next {
        width: 20%;
        height: 84%;
    }

    .hec-media-carousel__item.is-prev {
        left: -1%;
    }

    .hec-media-carousel__item.is-next {
        left: 101%;
    }

    .hec-media-carousel__arrow {
        font-size: 58px;
        padding: 10px;
    }
}

@media (max-width: 767px) {
    .hec-media-carousel {
        padding: 0 34px;
    }

    .hec-media-carousel__stage {
        height: 58vw;
        min-height: 220px;
        max-height: 430px;
    }

    .hec-media-carousel__item.is-active {
        width: 100%;
        height: 100%;
    }

    .hec-media-carousel__item.is-prev,
    .hec-media-carousel__item.is-next {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .hec-media-carousel__arrow {
        font-size: 44px;
        padding: 4px;
    }

    .hec-media-carousel__play {
        width: 64px;
        height: 46px;
        border-radius: 12px;
    }

    .hec-media-carousel__play::after {
        left: 26px;
        top: 13px;
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 16px;
    }
}
