.home-hero-slider {
    position: relative;
    max-width: 1920px;
    margin-inline: auto;
    background: #f7f0ea;
}

.home-hero-slider [data-hero-slide][hidden] {
    display: none !important;
}

.home-hero-slider .rh-hero-copy .hero-modern {
    font-style: normal;
    font-weight: 400;
    color: #674d66;
}

.home-hero-slider .rh-hero-copy .button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
    padding: 9px 18px;
}

.rh-reassurance-slide > a {
    display: block;
}

.rh-reassurance-slide img {
    display: block;
    width: 100%;
    height: auto;
    background: #faefd8;
}

.rh-mobile-hero-link {
    display: none;
}

.hero-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 8px;
    background: #fff;
    border-top: 1px solid #674d6622;
}

.hero-slider-controls button {
    display: grid;
    place-items: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #674d66;
    font-size: 26px;
    line-height: 1;
}

.hero-slider-controls button:hover {
    background: #eee3eb;
    color: #4e364d;
}

.hero-slider-controls [data-hero-dot] span {
    width: 9px;
    height: 9px;
    border-radius: 99px;
    border: 1px solid #674d66;
}

.hero-slider-controls [aria-pressed="true"] span {
    width: 24px;
    background: #674d66;
}

@media (prefers-reduced-motion: no-preference) {
    .home-hero-slider [data-hero-slide]:not([hidden]) {
        animation: hero-slide-enter 280ms ease-out;
    }
}

@keyframes hero-slide-enter {
    from { opacity: 0.72; }
    to { opacity: 1; }
}

@media (max-width: 800px) {
    .reference-home .home-hero-slider .rh-hero,
    .reference-home .home-hero-slider .rh-hero > picture {
        display: block;
    }

    .reference-home .home-hero-slider .rh-hero > picture > img {
        aspect-ratio: auto 1040 / 800;
        object-fit: contain;
    }

    .reference-home .home-hero-slider .rh-hero > :is(video, .video-toggle),
    .home-hero-slider .rh-hero-copy :is(br, .button) {
        display: none;
    }

    .reference-home .home-hero-slider .rh-hero-copy {
        position: absolute;
        inset: 12% 12px auto;
        transform: translateY(-50%);
        max-width: none;
        padding: 0;
        background: transparent;
        text-align: center;
        pointer-events: none;
    }

    .reference-home .home-hero-slider .rh-hero-copy h1 {
        font-family: 'Cormorant Garamond', serif !important;
        margin: 0 0 3px;
        font-size: clamp(20px, 5.4vw, 43px);
        line-height: 1.1;
    }

    .reference-home .home-hero-slider .rh-hero-copy p {
        font-family: 'Cormorant Garamond', serif !important;
        margin: 0;
        font-size: clamp(12px, 3vw, 19px);
        line-height: 1.3;
    }

    .rh-mobile-hero-link {
        display: block;
        position: absolute;
        inset: 0;
    }

    .reference-home .rh-mobile-hero-link:focus-visible {
        outline-offset: -4px;
    }
}
