.sphsc-slider,
.sphsc-slider * {
    box-sizing: border-box;
}

.sphsc-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    line-height: 0;
    isolation: isolate;
}

.sphsc-stage {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

/*
 * IMPORTANT:
 * The ACTIVE slide remains in normal document flow.
 * Its real responsive image height therefore becomes the exact section height.
 * Inactive slides are layered absolutely and cannot create extra black space.
 */
.sphsc-slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    line-height: 0;
    transition-property: opacity, visibility;
    transition-timing-function: ease;
}

.sphsc-slide.is-active {
    position: relative;
    inset: auto;
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sphsc-picture,
.sphsc-banner-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
}

/* The banner itself must remain the primary interactive layer. */
.sphsc-banner-link {
    position: relative;
    z-index: 3;
    pointer-events: auto !important;
    cursor: pointer;
    text-decoration: none !important;
    touch-action: pan-y;
}

.sphsc-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
    vertical-align: top !important;
}

.sphsc-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    color: #fff;
    background: rgba(10,24,51,.48);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    cursor: pointer;
    transform: translateY(-50%);
    line-height: 1;
    transition: background .2s ease, transform .2s ease;
}

.sphsc-arrow:hover,
.sphsc-arrow:focus-visible {
    background: rgba(10,24,51,.78);
}

.sphsc-prev { left: 16px; }
.sphsc-next { right: 16px; }

.sphsc-arrow svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sphsc-dots {
    position: absolute;
    left: 50%;
    bottom: 15px;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 7px 10px;
    border-radius: 30px;
    background: rgba(0,0,0,.16);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transform: translateX(-50%);
    line-height: 1;
}

.sphsc-dot {
    display: block;
    width: 9px;
    height: 9px;
    min-width: 9px;
    min-height: 9px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.7);
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.sphsc-dot.is-active {
    width: 28px;
    background: #eab83d;
}

.sphsc-empty {
    padding: 18px;
    border: 1px dashed #b8c0cc;
    background: #fff;
    color: #333;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .sphsc-slider,
    .sphsc-stage,
    .sphsc-slide,
    .sphsc-picture,
    .sphsc-banner-link,
    .sphsc-image {
        width: 100% !important;
        max-width: 100% !important;
    }

    .sphsc-arrow {
        width: 38px;
        height: 38px;
    }

    .sphsc-prev { left: 9px; }
    .sphsc-next { right: 9px; }

    .sphsc-arrow svg {
        width: 18px;
        height: 18px;
    }

    .sphsc-dots {
        bottom: 10px;
        gap: 6px;
        padding: 6px 8px;
    }

    .sphsc-dot {
        width: 7px;
        min-width: 7px;
        height: 7px;
        min-height: 7px;
    }

    .sphsc-dot.is-active {
        width: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sphsc-slide,
    .sphsc-dot,
    .sphsc-arrow {
        transition: none !important;
    }
}
