.wp-block-sunmaintain-hero-carousel.sunmaintain-hero-carousel {
    --sunmaintain-hero-desktop-ratio: 1920 / 540;
    --sunmaintain-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-hero-carousel__stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--sunmaintain-hero-desktop-ratio);
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

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

.wp-block-sunmaintain-hero-carousel .sunmaintain-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-hero-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

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

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 2rem;
    background: #dff1fa;
    color: #052b66;
    font-family: var(--sm-font-body, "Cormorant", Georgia, serif);
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__controls {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__arrow {
    position: absolute;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(8, 61, 143, 0.54);
    font-size: 1.55rem;
    font-weight: 400;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(5, 43, 102, 0.04);
    cursor: pointer;
    pointer-events: auto;
    transform: translateY(-50%);
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__arrow.is-prev {
    left: clamp(16px, 3vw, 48px);
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__arrow.is-next {
    right: clamp(16px, 3vw, 48px);
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__arrow:hover,
.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.44);
    color: rgba(8, 61, 143, 0.68);
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__dots {
    position: absolute;
    bottom: clamp(14px, 2.4vw, 28px);
    left: 50%;
    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.05);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 18px rgba(5, 43, 102, 0.035);
    transform: translateX(-50%);
    pointer-events: auto;
}

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

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

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

    .wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__controls {
        inset: 0;
    }

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

    .wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__arrow.is-prev {
        left: 0.75rem;
    }

    .wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__arrow.is-next {
        right: 0.75rem;
    }

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

/* ── Slide text overlay ─────────────────────────────────────────────────── */

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 clamp(24px, 6vw, 96px);
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.08) 55%, transparent 100%);
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__overlay-inner {
    max-width: 560px;
    pointer-events: auto;
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__title {
    margin: 0 0 0.35em;
    color: #fff;
    font-family: var(--sm-font-heading, "Cinzel", Georgia, serif);
    font-size: clamp(1.6rem, 3.4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__subtitle {
    margin: 0 0 1.1em;
    color: rgba(255, 255, 255, 0.92);
    font-family: var(--sm-font-body, "Cormorant", Georgia, serif);
    font-size: clamp(0.9rem, 1.4vw, 1.15rem);
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__button {
    display: inline-block;
    padding: 0.7em 2em;
    border: 2px solid #fff;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-family: var(--sm-font-body, "Cormorant", Georgia, serif);
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
    backdrop-filter: blur(4px);
}

.wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__button:hover {
    background: #fff;
    color: #052b66;
}

@media (max-width: 781px) {
    .wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__overlay {
        align-items: flex-end;
        padding: 0 clamp(16px, 5vw, 32px) clamp(56px, 12vw, 72px);
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    }

    .wp-block-sunmaintain-hero-carousel .sunmaintain-hero-carousel__overlay-inner {
        max-width: 100%;
        text-align: center;
    }
}
