/**
 * NW Scroll Story
 * Debugged version - focus on visible DX both desktop and mobile
 */

/* ========================= */
/* BASE */
/* ========================= */

.nwss-scene {
    position: relative;
    width: 100%;
}

.nwss-hero-story {
    position: relative;
    width: 100%;
    min-height: 240vh;
    overflow: clip;
}

.nwss-hero-pinwrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    z-index: 2;
}

/* ========================= */
/* SX */
/* ========================= */

.nwss-hero-story .nwss-hero-content {
    position: relative;
    z-index: 3;
    opacity: 1 !important;
    transform: none !important;
    flex: 0 0 50%;
}

.nwss-hero-story .nwss-hero-brand {
    opacity: 0;
    will-change: transform, opacity;
}

/* ========================= */
/* DX */
/* ========================= */

.nwss-hero-story .nwss-hero-media {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 100vh;
    overflow: hidden;
    flex: 0 0 50%;
}

.nwss-hero-story .nwss-hero-image {
    display: block;
    opacity: 0;
    width: 70%;
    max-width: 70%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-origin: center center;
}

/* ========================= */
/* 📱 MOBILE */
/* ========================= */

@media (max-width: 767px) {
    .nwss-hero-story {
        min-height: 320vh;
        overflow: visible;
    }

    .nwss-hero-pinwrap {
        min-height: 140svh;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        overflow: hidden;
        padding-top: 6vh;
        padding-bottom: 0;
    }

    .nwss-hero-story .nwss-hero-content {
        width: 100%;
        flex: 0 0 auto;
        text-align: center;
        margin-bottom: 12px;
        z-index: 3;
    }

    .nwss-hero-story .nwss-hero-media {
        width: 100%;
        flex: 1 1 auto;
        min-height: 60svh;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        overflow: hidden;
        z-index: 2;
    }

    .nwss-hero-story .nwss-hero-image {
        width: 78%;
        max-width: 78%;
        max-height: 62svh;
        object-fit: contain;
    }
}

/* DEBUG */
/*
.nwss-hero-pinwrap { outline: 2px solid rgba(0,255,255,.35); }
.nwss-hero-media   { outline: 2px solid rgba(255,0,0,.35); }
.nwss-hero-image   { outline: 2px solid lime; }
*/