/* 2Lives home slider — vanilla replacement for Slider Revolution.
   Reproduces the original look: full-width auto-height slides, fade transition,
   ken-burns zoom (100% -> 120%), layer entrances (slide-in / fade), uranus-style
   arrows (shown on hover, keyboard focus, and mobile). */

.s2ls {
    position: relative;
    background: #56036d;
}

.s2ls-stage {
    position: relative;
    /* Matches original Slider Revolution "fullwidth" responsive ratio
       (gridwidth: [1400, 1024, 778, 480], gridheight: [530, 768, 420, 340]) */
    width: 100%;
    aspect-ratio: 1400 / 530;
}

@media (max-width: 1240px) {
    .s2ls-stage {
        aspect-ratio: 1024 / 768;
    }
}

@media (max-width: 778px) {
    .s2ls-stage {
        aspect-ratio: 778 / 420;
    }
}

@media (max-width: 480px) {
    .s2ls-stage {
        aspect-ratio: 480 / 340;
    }
}

.s2ls-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s linear;
    overflow: hidden;          /* clips the ken-burns zoom */
    pointer-events: none;
    z-index: 1;
}

.s2ls-slide.is-active {
    opacity: 1;
}

/* text layers sit above the slides and may overflow the frame at the bottom,
   exactly like the original did with the product badge circle */
.s2ls-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.4s linear;
    pointer-events: none;
    z-index: 5;
}

.s2ls-layer.is-active {
    opacity: 1;
    pointer-events: auto;
}

.s2ls-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.s2ls-slide.is-active .s2ls-bg {
    animation: s2ls-kb var(--kb, 25000ms) linear forwards;
}

@keyframes s2ls-kb {
    from { transform: scale(1); }
    to   { transform: scale(1.2); }
}

.s2ls-pos {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.s2ls-pos .s2ls-anim {
    opacity: 0;
    display: inline-block;
    box-sizing: border-box;
}

.s2ls-btn {
    border-radius: 30px;
    border: 0;
    font-family: Poppins, Arial, Helvetica, sans-serif !important;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    line-height: 13px;
    font-size: 14px;
}

.s2ls-btn:hover {
    color: #fff;
}

.s2ls-arr {
    display: inline-block;
    font-family: FontAwesome;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

.s2ls-arr:before {
    content: "\f105";
}

/* Layer entrances use the timing set for each caption. */
.s2ls-layer.is-active .s2ls-anim-fade {
    animation: s2ls-in-fade var(--s, 1s) cubic-bezier(0.215, 0.61, 0.355, 1) var(--d, 0s) both;
}

.s2ls-layer.is-active .s2ls-anim-left {
    animation: s2ls-in-left var(--s, 1s) cubic-bezier(0.215, 0.61, 0.355, 1) var(--d, 0s) both;
}

.s2ls-layer.is-active .s2ls-anim-right {
    animation: s2ls-in-right var(--s, 1s) cubic-bezier(0.215, 0.61, 0.355, 1) var(--d, 0s) both;
}

.s2ls-layer.is-active .s2ls-anim-up {
    animation: s2ls-in-up var(--s, 1s) cubic-bezier(0.215, 0.61, 0.355, 1) var(--d, 0s) both;
}

@keyframes s2ls-in-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes s2ls-in-left {
    from { opacity: 0; transform: translateX(-80px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes s2ls-in-right {
    from { opacity: 0; transform: translateX(80px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes s2ls-in-up {
    from { opacity: 0; transform: translateY(80px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* arrows — rev "uranus" behaviour: invisible until the slider is hovered */
.s2ls-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 34px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.s2ls-arrow i {
    font-family: FontAwesome;
    font-style: normal;
}

.s2ls:hover .s2ls-arrow,
.s2ls:focus-within .s2ls-arrow {
    opacity: 1;
}

.s2ls-arrow:hover {
    background: rgba(0, 0, 0, 0.25);
}

.s2ls-prev {
    left: 12px;
}

.s2ls-next {
    right: 12px;
}

.s2ls-pause {
    position: absolute;
    z-index: 20;
    bottom: 12px;
    right: 12px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    color: white;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.s2ls-paused .s2ls-bg {
    animation-play-state: paused;
}

@media (max-width: 767px) {
    .s2ls-layer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 12px;
        padding: 55px 30px 48px;
    }

    .s2ls-layer .s2ls-pos {
        position: static;
        transform: none;
        max-width: 100%;
        white-space: normal;
    }

    .s2ls-layer .s2ls-pos:first-child {
        font-size: clamp(28px, 8vw, 44px);
        line-height: 1.12;
    }

    .s2ls-layer .s2ls-pos:nth-child(3) {
        order: -1;
        font-size: clamp(16px, 5vw, 26px);
        line-height: 1.2;
    }

    .s2ls-arrow {
        top: auto;
        bottom: 8px;
        transform: none;
        opacity: 1;
    }

    .s2ls-pause {
        bottom: 8px;
        right: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .s2ls *,
    .s2ls *::before,
    .s2ls *::after {
        animation: none !important;
        transition: none !important;
    }

    .s2ls-layer.is-active .s2ls-anim {
        opacity: 1;
    }

    .s2ls-pause {
        display: none;
    }
}
