/* CSP-safe UI helpers: local slider + local lightbox. No font, colour, or theme changes. */
.swiper {
    position: relative;
    overflow: hidden;
}

.swiper-wrapper {
    position: relative;
}

.swiper.sc-slider-ready .swiper-slide {
    display: none;
}

.swiper.sc-slider-ready .swiper-slide.sc-active {
    display: block;
    animation: scSlideFade .45s ease-in-out;
}

@keyframes scSlideFade {
    from { opacity: .45; }
    to { opacity: 1; }
}

.swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 8px;
    pointer-events: auto;
}

.swiper-pagination-bullet {
    display: inline-block;
    border-radius: 999px;
    cursor: pointer;
}

.swiper-button-next,
.swiper-button-prev {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, .22);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(8px);
}

.inner-hero-slider .swiper-button-next,
.inner-hero-slider .swiper-button-prev {
    display: flex;
}

.swiper-button-next { right: 24px; }
.swiper-button-prev { left: 24px; }

.swiper-button-next::after,
.swiper-button-prev::after {
    color: currentColor;
    font-size: 2rem;
    line-height: 1;
}

.swiper-button-next::after { content: "›"; }
.swiper-button-prev::after { content: "‹"; }

.sc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .88);
}

.sc-lightbox.is-open {
    display: flex;
}

.sc-lightbox-inner {
    width: min(1100px, 100%);
    max-height: 92vh;
    position: relative;
    text-align: center;
}

.sc-lightbox-img {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, .04);
}

.sc-lightbox-title {
    color: #fff;
    margin-top: 12px;
    font-weight: 700;
}

.sc-lightbox-close,
.sc-lightbox-prev,
.sc-lightbox-next {
    position: absolute;
    z-index: 2;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    line-height: 1;
}

.sc-lightbox-close { right: 8px; top: 8px; }
.sc-lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.sc-lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }

@media (max-width: 767.98px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 38px;
        height: 38px;
        margin-top: -19px;
    }

    .swiper-button-next { right: 12px; }
    .swiper-button-prev { left: 12px; }

    .sc-lightbox {
        padding: 12px;
    }

    .sc-lightbox-img {
        max-height: 78vh;
        border-radius: 12px;
    }
}
