.image-slider {
    margin-inline: auto;
}

.image-slider-viewport {
    position: relative;
    overflow: hidden;
    min-height: 24rem;
    aspect-ratio: 16 / 7;
    background: transparent;
}

.image-slider-viewport {
    border-radius: 0;
}

.image-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s ease;
    will-change: transform;
}

.image-slide {
    position: relative;
    flex: 0 0 100%;
    min-height: 100%;
    overflow: hidden;
}

.image-slide img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover;
}

.image-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05) 58%);
    pointer-events: none;
}

.image-slide-copy {
    --slider-cta-color: #432ca1;
    position: absolute;
    right: clamp(5rem, 7vw, 6.5rem);
    bottom: clamp(1.25rem, 5vw, 4rem);
    z-index: 1;
    width: min(31rem, calc(100% - 2.5rem));
    padding: clamp(1.25rem, 3vw, 2rem);
    background: rgba(255, 255, 255, 0.94);
    color: #111111;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.18);
}

.image-slide-copy .eyebrow {
    margin: 0 0 0.625rem;
    color: #432ca1;
    font-size: 0.875rem;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.image-slide-copy h3 {
    margin: 0;
    color: #432ca1;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.12;
    font-weight: 600;
}

.image-slide-copy p:not(.eyebrow) {
    margin: 1rem 0 0;
    font-size: 1.0625rem;
    line-height: 1.55;
}

.image-slide-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1.375rem;
    color: #432ca1;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
}

.image-slide-link::before {
    content: "->";
    margin-right: 0.5rem;
}

.image-slide-link .link-text {
    display: inline-block;
    transition: transform 0.2s ease;
}

.image-slide-link:hover .link-text,
.image-slide-link:focus-visible .link-text {
    transform: translateX(0.25rem);
}

.image-slide-link:hover,
.image-slide-link:focus-visible {
    text-decoration: none;
}

.image-slide-link--button {
    min-height: 2.875rem;
    padding: 0 1.5rem;
    border-radius: 999rem;
    border: 2px solid var(--slider-cta-color);
    background: transparent;
    color: var(--slider-cta-color);
    font-size: 1.125rem;
    line-height: 1;
    font-weight: 600;
}

.image-slide-link--button::before {
    content: none;
}

.image-slide-link--button:hover,
.image-slide-link--button:focus-visible {
    background: transparent;
    color: var(--slider-cta-color);
    border-color: var(--slider-cta-color);
    box-shadow: none;
}

.image-slide-copy--panel-red,
.image-slider--copy-rust {
    --slider-cta-color: #ffffff;
    background: rgba(191, 50, 39, 0.9);
    color: #ffffff;
}

.image-slide-copy--panel-red .eyebrow,
.image-slide-copy--panel-red h3,
.image-slide-copy--panel-red p,
.image-slide-copy--panel-red .image-slide-link,
.image-slider--copy-rust .eyebrow,
.image-slider--copy-rust h3,
.image-slider--copy-rust p,
.image-slider--copy-rust .image-slide-link {
    color: #ffffff;
}

.image-slide-copy--panel-yellow,
.image-slider--copy-lime {
    background-color: rgba(221, 226, 74, 0.9);
}

.image-slide-copy--panel-indigo {
    --slider-cta-color: #ffffff;
    background: rgba(67, 44, 161, 0.88);
    color: #ffffff;
}

.image-slide-copy--panel-indigo .eyebrow,
.image-slide-copy--panel-indigo h3,
.image-slide-copy--panel-indigo p,
.image-slide-copy--panel-indigo .image-slide-link {
    color: #ffffff;
}

.image-slide-copy--panel-light-indigo {
    --slider-cta-color: #432ca1;
    background: rgba(242, 241, 249, 0.9);
    color: #111111;
}

.image-slide-copy--panel-light-indigo .eyebrow,
.image-slide-copy--panel-light-indigo h3,
.image-slide-copy--panel-light-indigo .image-slide-link {
    color: #432ca1;
}

.image-slider--full {
    width: auto;
    margin-left: 0;
    transform: none;
}

.image-slider--full .image-slider-viewport {
    width: calc(100vw + 0.25rem);
    margin-left: calc(50% - 50vw - 0.125rem);
    min-height: 26rem;
    max-height: 34rem;
    aspect-ratio: 16 / 6;
    border-radius: 0;
}

.image-slider--full .image-slide {
    min-height: 100%;
}

.image-slider--full .image-slide-copy-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: clamp(1.25rem, 5vw, 4rem);
}

.image-slider--full .image-slide-copy {
    position: static;
    margin-right: clamp(3.5rem, 5vw, 5rem);
}

.image-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #432ca1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 0.75rem 1.75rem rgba(0, 0, 0, 0.18);
}

.image-slider-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 0.75rem;
    height: 0.75rem;
    margin: auto;
    border-top: 0.1875rem solid currentColor;
    border-right: 0.1875rem solid currentColor;
}

.image-slider-arrow--prev {
    left: clamp(0.75rem, 2vw, 1.5rem);
}

.image-slider-arrow--prev::before {
    transform: rotate(-135deg);
}

.image-slider-arrow--next {
    right: clamp(0.75rem, 2vw, 1.5rem);
}

.image-slider-arrow--next::before {
    transform: rotate(45deg);
}

.image-slider-arrow:hover,
.image-slider-arrow:focus-visible {
    background: #432ca1;
    color: #ffffff;
}

.image-slider-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.image-slider-dot {
    position: relative;
    width: 2.5rem;
    height: 0.25rem;
    border: 0;
    border-radius: 999rem;
    background: rgba(67, 44, 161, 0.22);
    cursor: pointer;
    overflow: hidden;
}

.image-slider-dot::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    width: 0;
    height: 100%;
    background: #432ca1;
}

.image-slider[data-autoplay=true] .image-slider-dot.is-active::before {
    width: 100%;
    animation: imageSliderProgress var(--image-slider-interval, 5200ms) linear;
}

.image-slider:not([data-autoplay=true]) .image-slider-dot.is-active::before {
    width: 100%;
    background: #432ca1;
}

.image-slider.is-paused .image-slider-dot.is-active::before {
    animation-play-state: paused;
}

/* Optional balancing mode: easy rollback by removing `image-slider--balanced-copy` class in Fluid */
@media (min-width: 48rem) {
    .image-slider--balanced-copy:not(.image-slider--full) .image-slide-copy {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .image-slider--balanced-copy.image-slider--full .image-slide-copy-wrap {
        align-items: center;
        padding-bottom: 0;
    }

    .image-slider--balanced-copy.image-slider--full .image-slide-copy {
        max-height: calc(100% - 2rem);
        overflow: auto;
    }
}

@keyframes imageSliderProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 61.99875rem) {
    .image-slide,
    .image-slide img,
    .image-slider--full .image-slider-viewport {
        min-height: 24rem;
    }

    .image-slider--full .image-slide-copy-wrap {
        align-items: flex-end;
        padding-bottom: 2rem;
    }
}

@media (max-width: 47.99875rem) {
    .image-slider-viewport,
    .image-slider--full .image-slider-viewport {
        min-height: 27rem;
        aspect-ratio: auto;
    }

    .image-slide,
    .image-slide img {
        min-height: 27rem;
    }

    .image-slide::after {
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46));
    }

    .image-slide-copy,
    .image-slider--full .image-slide-copy {
        right: auto;
        left: 1rem;
        bottom: 1rem;
        width: calc(100% - 2rem);
        padding: 1.25rem;
    }

    .image-slider--full .image-slide-copy-wrap {
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        padding: 0 0 1rem;
    }

    .image-slider--full .image-slide-copy {
        margin: 0 1rem;
        width: calc(100% - 2rem);
        position: static;
        left: auto;
        bottom: auto;
    }

    .image-slider-dot {
        width: 1.875rem;
    }

    .image-slider-arrow {
        display: none;
    }
}
