.hero-feature.has-home-slider {
    overflow: hidden;
}

.home-slider-track {
    position: absolute;
    inset: 0;
}

.home-slider-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 450ms ease, visibility 450ms ease;
}

.home-slider-slide.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.home-slider-slide-link {
    position: absolute;
    inset: 0;
    display: block;
    color: inherit;
}

.home-slider-copy {
    position: absolute;
    z-index: 2;
    top: 7.6%;
    right: 5%;
    left: 5%;
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 2px #6f450088;
}

.home-slider-copy.text-x-left {
    text-align: left;
}

.home-slider-copy.text-x-center {
    text-align: center;
}

.home-slider-copy.text-x-right {
    text-align: right;
}

.home-slider-copy.text-y-center {
    top: 50%;
    transform: translateY(-50%);
}

.home-slider-copy.text-y-bottom {
    top: auto;
    bottom: 7.6%;
}

.home-slider-heading {
    color: #fff;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.2;
}

.home-slider-heading > :first-child,
.home-slider-slogan > :first-child {
    margin-top: 0;
}

.home-slider-heading > :last-child,
.home-slider-slogan > :last-child {
    margin-bottom: 0;
}

.home-slider-slogan {
    margin-top: 8px;
    color: #fff;
    font-size: 15px;
    line-height: 1.45;
}

.hero-feature.has-home-slider .home-slider-slide img {
    position: absolute;
    z-index: 0;
    top: clamp(0px, var(--slider-desktop-y, 180px), max(0px, calc(100% - min(var(--slider-desktop-height, 285px), 100%))));
    left: clamp(0px, var(--slider-desktop-x, 70px), max(0px, calc(100% - min(var(--slider-desktop-width, 510px), 100%))));
    right: auto;
    bottom: auto;
    transform: none;
    width: min(var(--slider-desktop-width, 510px), 100%);
    height: min(var(--slider-desktop-height, 285px), 100%);
    object-fit: contain;
}

.home-slider-controls {
    z-index: 3;
}

.home-slider-controls button {
    display: inline-grid;
    place-items: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #7b4a0080;
    color: #fff;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.home-slider-controls button:hover,
.home-slider-controls button:focus-visible {
    background: #704400;
}

.home-slider-controls button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .home-slider-copy {
        top: 6.4%;
        right: 4%;
        left: 4%;
    }

    .home-slider-copy.text-y-bottom {
        top: auto;
        bottom: 6.4%;
    }

    .home-slider-heading {
        font-size: 15px;
    }

    .home-slider-slogan {
        margin-top: 4px;
        font-size: 11px;
    }

    .hero-feature.has-home-slider .home-slider-slide img {
        top: clamp(0px, var(--slider-mobile-y, 57px), max(0px, calc(100% - min(var(--slider-mobile-height, 190px), 100%))));
        left: 50%;
        transform: translateX(-50%);
        width: min(var(--slider-mobile-width, 390px), 100%);
        height: min(var(--slider-mobile-height, 190px), 100%);
    }

    .home-slider-controls button {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-slider-slide {
        transition: none;
    }
}
