/* 1. Main Wrapper & Spacing */
.fi-scroll-narrative-wrapper {
    position: relative;
    width: 100%;
    /* No overflow:hidden here, or sticky won't work */
}

/* 2. The Sticky Display Layer */
.fi-scroll-narrative-fixed {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Fill the screen */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* 3. The Inner Content Flexbox */
.fi-narrative-inner {
    display: flex;
    width: 100%;
    max-width: 1440px; /* Optional: Constrain content width */
    height: 100%;
    margin: 0 auto;
}

/* Handle Image Position setting from PHP data attribute */
[data-image-position="left"] .fi-narrative-inner {
    flex-direction: row-reverse;
}

/* 4. Columns */
.fi-narrative-text-column,
.fi-narrative-image-column {
    flex: 1;
    width: 50%;
    height: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 5. Typography & Transitions */
.fi-narrative-heading {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.fi-narrative-body {
    font-size: 1.2rem;
    line-height: 1.6;
    transition: transform 0.6s ease 0.1s, opacity 0.6s ease 0.1s;
}

.fi-narrative-img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* 6. Navigation Arrows */
.fi-narrative-nav {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.fi-nav-btn {
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fi-nav-btn:hover {
    background: rgba(0,0,0,0.8);
    color: #fff;
}

/* 7. The Trigger Spacers (The Engine) */
.fi-scroll-triggers {
    position: relative;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through to arrows if needed */
}

.fi-scroll-step {
    height: 100vh; /* Each step is one full screen scroll */
}
