/* Premium Luxury Story Scroll */

.hz-lss-wrapper {
    position: relative;
    width: 100%;
    display: block;
    align-self: flex-start;
    flex: 0 0 auto;
    /* Height is dynamically set inline based on number of stories */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --hz-lss-speed: 0.8s;
}

.hz-lss-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Mobile View (Hidden on Desktop) */
.hz-lss-mobile-stack {
    display: none;
    width: 100%;
    flex-direction: column;
}

.hz-lss-mobile-card {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 60px 30px;
    background: #000;
}

.hz-lss-mobile-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.hz-lss-mobile-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
}

/* Desktop View (Hidden on Mobile) */
.hz-lss-desktop-view {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Background Layers */
.hz-lss-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hz-lss-bg-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity var(--hz-lss-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94), transform calc(var(--hz-lss-speed) * 2) cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.hz-lss-bg-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hz-lss-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.1) 60%);
    z-index: 3;
}

/* Foreground Text Layer */
.hz-lss-text-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
}

.hz-lss-text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    text-align: center;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--hz-lss-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hz-lss-text-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 5;
}

.hz-lss-text-item.exiting {
    opacity: 0;
    pointer-events: none;
}

.hz-lss-content-inner {
    max-width: 900px;
    transition: all var(--hz-lss-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base states before active */
.hz-lss-anim-fade-up .hz-lss-text-item .hz-lss-content-inner {
    transform: translateY(40px);
    filter: blur(10px);
}

.hz-lss-anim-fade-down .hz-lss-text-item .hz-lss-content-inner {
    transform: translateY(-40px);
    filter: blur(10px);
}

.hz-lss-anim-zoom-in .hz-lss-text-item .hz-lss-content-inner {
    transform: scale(0.9);
    filter: blur(10px);
}

.hz-lss-anim-slide-left .hz-lss-text-item .hz-lss-content-inner {
    transform: translateX(60px);
    filter: blur(10px);
}

/* Active States */
.hz-lss-text-item.active .hz-lss-content-inner {
    transform: translate(0, 0) scale(1) !important;
    filter: blur(0) !important;
}

/* Exiting states */
.hz-lss-anim-fade-up .hz-lss-text-item.exiting .hz-lss-content-inner {
    transform: translateY(-40px);
    filter: blur(10px);
}

.hz-lss-anim-fade-down .hz-lss-text-item.exiting .hz-lss-content-inner {
    transform: translateY(40px);
    filter: blur(10px);
}

.hz-lss-anim-zoom-in .hz-lss-text-item.exiting .hz-lss-content-inner {
    transform: scale(1.1);
    filter: blur(10px);
}

.hz-lss-anim-slide-left .hz-lss-text-item.exiting .hz-lss-content-inner {
    transform: translateX(-60px);
    filter: blur(10px);
}

/* Typography Shared */
.hz-lss-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 25px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.hz-lss-heading {
    font-size: 72px;
    font-weight: 300;
    margin: 0 0 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff;
}

.hz-lss-desc {
    font-size: 16px;
    font-weight: 300;
    margin: 0 auto 40px;
    line-height: 1.8;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

/* Button */
.hz-lss-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hz-lss-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hz-lss-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.hz-lss-btn:hover svg {
    transform: translateX(5px);
}

/* Progress Indicators */
.hz-lss-progress {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hz-lss-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.5s ease;
    cursor: pointer;
}

.hz-lss-dot.active {
    background: #fff;
    transform: scale(1.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .hz-lss-heading {
        font-size: 52px;
    }
}

@media (max-width: 767px) {
    .hz-lss-heading {
        font-size: 42px;
    }

    .hz-lss-desc {
        font-size: 14px;
    }
}

/* Force Elementor containers to allow position: sticky on Mobile */
body[data-elementor-device-mode="mobile"] .elementor-section,
body[data-elementor-device-mode="mobile"] .elementor-container,
body[data-elementor-device-mode="mobile"] .e-con,
body[data-elementor-device-mode="mobile"] .elementor-widget-wrap,
.elementor-device-mobile .elementor-section,
.elementor-device-mobile .elementor-container,
.elementor-device-mobile .e-con,
.elementor-device-mobile .elementor-widget-wrap {
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
}