.block_sticky-cards {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* --sticky-cards-* come from the block's colour pickers (render.php) */
    background: var(--sticky-cards-bg, var(--neutral-20, #E8E6E3));
}

.block_sticky-cards .sticky-features__heading {
    color: var(--sticky-cards-heading, inherit);
    font-family: var(--font-display), sans-serif;
    font-size: clamp(40px, 1.25vw + 35.9375px, 70px);
    line-height: 110%;
    letter-spacing: -3%;
    font-weight: 400;
}


.block_sticky-cards .rich-text {
    color: var(--sticky-cards-text, inherit);
}



/* Full width, so the image can reach the left edge of the screen */
.block_sticky-cards .container {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0px;
}


.block_sticky-cards .container .sticky-features__wrap {
    width: 100%;
    position: relative;
    z-index: 10;
    overflow: visible;
}


.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll {
    width: 100%;
    height: 100vh;
    padding-top: 80px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0px;
}
@media (min-width: 700px) {
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll {
        padding-top: 0;
        align-items: stretch;
    }
}



.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
}
/* Image on the left, text on the right, text centred on the height */
@media (min-width: 700px) {
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container {
        --text-width: 320px;
        --gap: 40px;
        height: 100%;
        flex-direction: row;
        align-items: center;
        gap: var(--gap);
    }
}
@media (min-width: 1020px) {
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container {
        --text-width: 400px;
        --gap: 114px;
    }
}
@media (min-width: 1530px) {
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container {
        --text-width: 500px;
    }
}



.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col {
    width: 100%;
    flex: 1 1 0%;
}
@media (min-width: 700px) {
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col {
        flex: unset;
    }
}


.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col.is--img {
    position: relative;
    overflow: hidden;
}
/* Image column fills the full screen height */
@media (min-width: 700px) {
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col.is--img {
        width: calc(100% - var(--text-width) - var(--gap));
        height: 100%;
    }
}


@media (min-width: 700px) {
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col.is--text {
        width: var(--text-width);
        padding-right: 14rem;
        box-sizing: content-box;
    }
}


/* Reverse (ACF toggle): image on the right, text on the left */
@media (min-width: 700px) {
    .block_sticky-cards.reverse .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container {
        flex-direction: row-reverse;
    }

    .block_sticky-cards.reverse .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col.is--text {
        padding-right: 0;
        padding-left: 40px;
    }
}



/* Every slide's text sits in the same cell; the script swaps which one shows */
.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__text-collection .sticky-features__text-list {
    display: grid;
}

.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__text-collection .sticky-features__text-list .static-text-wrapper {
    grid-area: 1 / 1;
    display: grid;
    gap: var(--spacing-m);
}

@media (min-width: 700px) {
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__text-collection .sticky-features__text-list .static-text-wrapper:not(:first-child) {
        visibility: hidden;
    }
}



.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection {
    width: 100%;
    height: 300px;
}
@media (min-width: 700px) {
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection {
        height: 100%;
    }
}


.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection .sticky-features__img-list {
    width: 100%;
    height: 100%;
    position: relative;
}


.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection .sticky-features__img-list .sticky-features__img-item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0%;
    right: 0%;
    bottom: 0%;
    left: 0%;
}


.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection .sticky-features__img-list .sticky-features__img-item picture {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection .sticky-features__img-list .sticky-features__img-item picture img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}



/* Scroll progress line, centred at the bottom of the image.
   --sticky-cards-progress comes from the block's colour picker (render.php);
   the track is the same colour at 40%. The script scales the thumb. */
.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection {
    position: relative;
}

.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection .sticky-features__progress {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translate3d(-50%, 0, 0);
    width: min(378px, 60%);
    height: 1px;
    background-color: color-mix(in srgb, var(--sticky-cards-progress, var(--color-neutral-50)) 40%, transparent);
    z-index: 20;
    pointer-events: none;
}
@media (min-width: 1020px) {
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection .sticky-features__progress {
        bottom: 64px;
    }
}

.block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection .sticky-features__progress .thumb {
    position: absolute;
    bottom: 0%;
    left: 0px;
    width: 100%;
    height: 4px;
    background-color: var(--sticky-cards-progress, var(--color-neutral-50));
    transform: scaleX(0);
    transform-origin: left center;
}



/* ─── Mobile: plain stacked list ─────────────────────────────────────────
   No pin, no animation (the script only runs from 700px). The column and
   list wrappers dissolve with display: contents, so every slide's text and
   image become siblings, and --i (set per slide in render.php) orders them
   heading + text, image, heading + text, image... */
@media (max-width: 699.98px) {
    .block_sticky-cards {
        padding: 64px 20px;
    }

    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll {
        height: auto;
        padding-top: 0;
    }

    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container {
        align-items: stretch;
    }

    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col,
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection,
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection .sticky-features__img-list,
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__text-collection,
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__text-collection .sticky-features__text-list {
        display: contents;
    }

    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__text-collection .sticky-features__text-list .static-text-wrapper {
        order: calc(var(--i) * 2);
    }

    /* Space between one slide's image and the next slide's heading */
    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__text-collection .sticky-features__text-list .static-text-wrapper:not(:first-child) {
        margin-top: 40px;
    }

    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection .sticky-features__img-list .sticky-features__img-item {
        order: calc(var(--i) * 2 + 1);
        position: relative;
        inset: auto;
        height: auto;
        aspect-ratio: 4 / 5;
        overflow: hidden;
    }

    .block_sticky-cards .container .sticky-features__wrap .sticky-features__scroll .sticky-features__container .sticky-feaures__col .sticky-features__img-collection .sticky-features__progress {
        display: none;
    }
}
