<section data-scroll-section class="pSection rse-<?php echo $section['style']; ?> rse-<?php echo $section['acf_fc_layout']; ?>">
    <div class="pSection_target rse-gallery--<?php echo $cptrse; ?>"></div>
    <div <?php echo $section['anchor'] == 'true' ? 'is-anchor': ''; ?> data-scroll data-scroll-call="detectSection" data-ui="<?php echo ($section['style'] == 'light') ? 'dark' : 'light' ; ?>" data-scroll-repeat data-scroll-offset="90%, 10%">
        <div data-scroll data-scroll-sticky data-scroll-target=".rse-gallery--<?php echo $cptrse; ?>">
            <div class="rse-gallery_content">
                <div class="container">
                    <h2><?php echo $section['text']; ?></h2>
                </div>
            </div>
        </div>
        <div class="rse-gallery_covers hide-xs">
            <?php $cpt = 1; foreach ($section['images'] as $item): ?>
                <div class="imageRender rse-gallery_cover rse-gallery_cover--<?php echo $cpt; ?>"
                    data-scroll data-scroll-speed="<?php echo rand(5, 10); ?>" data-scroll-delay="<?php echo rand(0, 20)/10; ?>" data-scroll-target=".rse-gallery--<?php echo $cptrse; ?>">
                    <img src="<?php echo getImageUrl($item, 'lazy'); ?>"
                        <?php echo getImageSrcSetSizes($item); ?>
                        alt="" class="__vhidden">
                </div>
            <?php $cpt++; endforeach; ?>
        </div>
        <?php if ($section['images']): ?>
            <div class="container">
                <div class="rse-gallery_carousel show-xs">
                    <div class="swiper-container rse-gallery_carousel_swiper"> 
                        <div class="swiper-wrapper">
                            <?php $cptCarousel = 1; foreach ($section['images'] as $item): ?>
                                <div class="swiper-slide">
                                    <div class="rse-gallery_carousel_swiper_slide">
                                        <div class="imageRender">
                                            <img src="<?php echo getImageUrl($item, 'lazy'); ?>"
                                                    <?php echo getImageSrcSetSizes($item); ?>
                                                    alt="" class="__vhidden">
                                        </div>
                                    </div>
                                </div>
                            <?php $cptCarousel++; endforeach; ?>
                        </div>
                    </div>
                </div>
            </div>
        <?php endif; ?>
    </div>
</section>