.animated-media-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 80px 0 70px;
}


/* =========================
   CONTENT
   ========================= */

.animated-media-carousel__content {
    position: relative;
    z-index: 5;

    max-width: 760px;

    margin: 0 auto;
    padding: 0 24px 48px;

    text-align: center;
}


.animated-media-carousel__eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    font-size: 14px;
    line-height: 1.2;

    font-weight: 500;
}


.animated-media-carousel__heading {
    margin: 0;

    font-size: clamp(40px, 5vw, 72px);
    line-height: 0.98;

    letter-spacing: -0.045em;
}


.animated-media-carousel__subheading {
    max-width: 640px;

    margin: 20px auto 0;

    font-size: 16px;
    line-height: 1.5;
}


.animated-media-carousel__subheading p:last-child {
    margin-bottom: 0;
}


/* =========================
   CAROUSEL
   ========================= */

.animated-media-carousel__viewport {
    position: relative;

    width: 100%;
    height: 355px;

    overflow: visible;

    cursor: grab;

    user-select: none;
    touch-action: pan-y;

    perspective-origin: 50% 50%;
}


.animated-media-carousel__viewport.is-dragging {
    cursor: grabbing;
}


.animated-media-carousel__stage {
    position: absolute;

    inset: 0;

    transform-style: preserve-3d;
}


/* =========================
   CARD
   ========================= */

.animated-media-carousel__card {
    --card-width: 152px;
    --card-height: 211px;

    position: absolute;

    top: 50px;
    left: 50%;

    width: var(--card-width);
    height: var(--card-height);

    margin-left: calc(var(--card-width) / -2);

    overflow: hidden;
	isolation: isolate;
    border-radius: 18px;

    background: #111;

    transform-style: preserve-3d;

    backface-visibility: hidden;

    will-change:
        transform,
        opacity;

    text-decoration: none;

    -webkit-user-drag: none;
}


.animated-media-carousel__card .animated-media-carousel__media {
    position: absolute;
    inset: 0;

    z-index: 1;

    display: block;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: cover;
    object-position: center;

    margin: 0;
    padding: 0;

    border-radius: inherit;
	
    transform: translateZ(0);
    backface-visibility: hidden;
    
    pointer-events: none;
}

/* =========================
   EDGE GRADIENT
   ========================= */

.animated-media-carousel__edge-overlay {
    position: absolute;
    inset: 0;

    z-index: 20;

    display: block;
    width: 100%;
    height: 100%;

    border-radius: inherit;
    pointer-events: none;

    opacity: 0;

    transform: translateZ(2px);
    backface-visibility: hidden;

    transition: opacity 0.18s linear;
}


/* =========================
   CTA
   ========================= */

.animated-media-carousel__cta {
    position: relative;
    z-index: 5;
    margin-top: 30px;
    text-align: center;
}

.animated-media-carousel__cta .header-main-cta {
    display: inline-block;
    margin-right: 0;
}


.animated-media-carousel__eyebrow {
    display: block;
    margin-bottom: 12px;

    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: 0.08em;

    color: #ffffff;
}


.animated-media-carousel__subheading {
    max-width: 700px;

    margin: 20px auto 0;

    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;

    color: #ffffff;
}


.animated-media-carousel__subheading p {
    margin: 0;
}


.animated-media-carousel__cta {
    margin-top: 0px;

    text-align: center;
}


.animated-media-carousel__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 12px 26px;

    border: 2px solid #ffffff;
    border-radius: 30px;

    font-size: 16px;
    line-height: 1;
    font-weight: 600;

    color: #ffffff;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.animated-media-carousel__cta .header-main-cta {
    font-size: 18px !important;
    color: #fff !important;
    
}

.animated-media-carousel__button:hover {
    background: #ffffff;
    color: #101519;

    transform: translateY(-1px);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 767px) {

    .animated-media-carousel {
        padding-top: 55px;
        padding-bottom: 50px;
    }


    .animated-media-carousel__content {
        padding-right: 20px;
        padding-bottom: 35px;
        padding-left: 20px;
    }


    .animated-media-carousel__heading {
        font-size: clamp(36px, 11vw, 50px);
    }


    .animated-media-carousel__subheading {
        font-size: 14px;
    }


    .animated-media-carousel__viewport {
        height: 315px;
    }


    .animated-media-carousel__card {
        top: 50px;

        border-radius: 15px;
    }
    
     .animated-media-carousel__eyebrow {
        font-size: 12px;
    }


    .animated-media-carousel__subheading {
        font-size: 16px;

        margin-top: 16px;
    }


    .animated-media-carousel__cta {
        margin-top: 24px;
    }


    .animated-media-carousel__button {
        min-height: 44px;

        padding: 11px 22px;

        font-size: 15px;
    }

}