html, body {
    overflow-x: inherit !important;
}

.sequence-wrapper {
    position: relative;
    height: 250vh; /* Достатъчно височина за всички кадри */
}

.next-section {
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.header {
    padding: 2rem;
    text-align: center;
}

.image-sequence-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    /* display: flex;
    align-items: center;
    justify-content: center; */
    background: #000;
    overflow: hidden;
}

.image-sequence-container img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    object-position: center bottom;
    bottom: 0;
    left: 0;
    will-change: transform;
    transform-origin: center center;
}

/* Подреждаме слоевете отзад напред */
#main-bg   { z-index: 1; }
#trees     { z-index: 2; }
#camp      { z-index: 3; }
#grass     { z-index: 4; }
#close-fg  { z-index: 5; } 

.scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    z-index: 1000;
}

.texts {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 35px;
    color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
    width: min(92vw,1000px);
    pointer-events: none;
}

.text2,
.text3 {
    opacity: 1;
}

/* Scroll-hide split lines (masked line reveal) */
.scroll-hide-text {
    text-align: center;
}
.scroll-hide-text .line-w {
    position: relative;
    overflow: hidden;
    display: block;
}
.scroll-hide-text .line {
    display: block;
    will-change: transform;
}