.wp-block-sunmaintain-hero-carousel.sunmaintain-v2-hero-carousel {
    --sunmaintain-v2-hero-desktop-ratio: 1920 / 540;
    --sunmaintain-v2-hero-mobile-ratio: 390 / 520;
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    transform: translateX(-50%);
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--sunmaintain-v2-hero-desktop-ratio);
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__slides {
    position: relative;
    height: 100%;
    width: 100%;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    opacity: 0;
    text-decoration: none;
    transition: opacity 260ms ease;
    pointer-events: none;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__picture {
    display: block;
    width: 100%;
    height: 100%;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: var(--sunmaintain-v2-hero-focal-point, 50% 50%);
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 2rem;
    background: #dff1fa;
    color: #052b66;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__controls {
    position: absolute;
    right: clamp(16px, 3vw, 48px);
    bottom: clamp(16px, 2.5vw, 32px);
    left: clamp(16px, 3vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    pointer-events: none;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: rgba(8, 61, 143, 0.72);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(5, 43, 102, 0.07);
    cursor: pointer;
    pointer-events: auto;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__arrow:hover,
.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0 auto;
    padding: 0.55rem 0.78rem;
    border: 1px solid rgba(8, 61, 143, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    box-shadow: 0 8px 18px rgba(5, 43, 102, 0.06);
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__dot {
    width: 0.66rem;
    height: 0.66rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(8, 61, 143, 0.16);
    cursor: pointer;
    pointer-events: auto;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__dot.is-active {
    background: rgba(8, 61, 143, 0.62);
}

@media (max-width: 781px) {
    .wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__stage {
        aspect-ratio: var(--sunmaintain-v2-hero-mobile-ratio);
        border-radius: 0;
    }

    .wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__controls {
        right: 0.65rem;
        bottom: 0.65rem;
        left: 0.65rem;
    }

    .wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__arrow {
        width: 2.45rem;
        height: 2.45rem;
        font-size: 1.25rem;
    }

    .wp-block-sunmaintain-hero-carousel .sunmaintain-v2-hero-carousel__dots {
        padding: 0.48rem 0.62rem;
    }
}
