<?php if ('layout_three' == $settings['layout_type']) : ?>
    <section class="instagram-one instagram-one--home-four">
        <div class="container">
            <div class="instagram-one__carousel ostech-owl__carousel owl-carousel owl-theme" data-owl-options='<?php echo esc_attr(ostech_get_owl_options($settings)); ?>'>
                <?php foreach ($settings['layout_three_instagram_images'] as $index => $item) :  ?>
                    <div class="item">
                        <a href="<?php echo esc_url($item['url']['url']); ?>" <?php esc_attr(!empty($item['url']['is_external']) ? "target=_blank" : ' '); ?>>
                            <?php ostech_elementor_rendered_image($item, 'image'); ?>
                        </a>
                    </div><!-- /.item -->
                <?php endforeach; ?>
            </div><!-- /.slider -->
        </div><!-- /.container -->
    </section><!-- /.instagram -->

<?php endif; ?>