/* =================================================================
   Hero Slideshow - peek carousel (inactive slides visible both sides)
   ================================================================= */

.hss-wrapper {
    --hss-slide-w: 74%;   /* active slide width % - overridden by PHP inline style */
    --hss-gap: 20px;
    position: relative;
    width: 100%;
    font-family: inherit;
}

/* --- Outer clip ------------------------------------------------- */
.hss-carousel-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Allow swiper to overflow so adjacent slides are visible */
.hss-carousel-wrap .kitify-carousel,
.hss-carousel-wrap .kitify-carousel-inner,
.hss-carousel-wrap .swiper-container {
    overflow: visible !important;
}

/* Each slide: width driven by --hss-slide-w variable */
/* JS sets this as inline width on each .hss-slide BEFORE Swiper init */
.hss-carousel-wrap .swiper-slide.hss-slide {
    width: var(--hss-slide-w);   /* fallback when JS hasn't run yet */
    flex-shrink: 0;
}

/* --- Slide ------------------------------------------------------ */
.hss-slide {
    position: relative;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
}

/* Gradient overlay */
.hss-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, var(--hss-overlay, 0.5)) 0%,
        rgba(0, 0, 0, 0.08) 55%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Dim inactive slides */
.hss-slide:not(.swiper-slide-active)::after {
    background: rgba(0, 0, 0, 0.45);
}

/* Image - !important overrides WordPress/Elementor global img { height: auto } */
.hss-img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hss-slide.swiper-slide-active .hss-img {
    transform: scale(1.03);
}

/* --- Slide body: content overlay -------------------------------- */
.hss-slide-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    padding: 32px 36px;
    gap: 24px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease 0.15s;
}

.hss-slide.swiper-slide-active .hss-slide-body {
    opacity: 1;
    pointer-events: auto;
}

/* --- Title ------------------------------------------------------ */
.hss-slide-text { flex: 1; min-width: 0; }

.hss-title {
    margin: 0;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* --- Button ----------------------------------------------------- */
.hss-slide-actions { flex-shrink: 0; align-self: flex-end; }

.hss-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 24px;
    background: rgba(255,255,255,0.92);
    color: #111111;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    border-radius: 99px;
    text-decoration: none;
    box-shadow: 0 2px 20px rgba(0,0,0,0.25);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.22s ease;
}

.hss-btn:hover {
    background: #ffffff;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    text-decoration: none;
}

/* --- Navigation - positioning only; visual style from Kitify Carousel settings */
.hss-nav {
    position: absolute;
    bottom: 28px;
    z-index: 5;
}

/* Initial fallback - JS overrides these with exact pixel values */
.hss-nav--prev { left:  20px; }
.hss-nav--next { right: 20px; }

/* --- Dots ------------------------------------------------------- */
.hss-dots.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex !important;
    gap: 6px;
    align-items: center;
}

.hss-dots .swiper-pagination-bullet {
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.45);
    border-radius: 99px;
    opacity: 1;
    margin: 0 !important;
    transition: width 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.hss-dots .swiper-pagination-bullet-active {
    width: 22px;
    background: #ffffff;
}

/* --- Mobile ----------------------------------------------------- */
@media (max-width: 767px) {
    .hss-wrapper { --hss-slide-w: 82%; --hss-gap: 12px; }

    .hss-slide { height: 340px !important; }

    .hss-title { font-size: 1.25rem; }

    .hss-slide-body {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 18px;
    }

    .hss-slide-actions { align-self: flex-start; }
}
