<?php if ('layout_one' == $settings['layout_type']) : ?>
    <section class="gallery-one gallery-one--page">
        <div class="container">
            <div class="row">
                <?php foreach ($settings['gallery_images'] as $image) :
                    $image_name = $image['image']['url'];
                    list($width, $height) = getimagesize($image_name);
                ?>
                    <div class="col-md-6 col-lg-<?php if ($width >= '750') : echo esc_attr("8");
                                                else : echo ("4");
                                                endif; ?>">
                        <div class="gallery-one__card">
                            <?php ostech_elementor_rendered_image($image, 'image'); ?>
                            <div class="gallery-one__card__hover">
                                <a href="<?php echo esc_url($image['image']['url']); ?>" class="img-popup">
                                    <div class="gallery-one__card__icon">
                                        <span class="gallery-one__card__icon__item"></span>
                                    </div>
                                </a>
                            </div><!-- /.gallery-one__card__hover -->
                        </div><!-- /.gallery-one__card -->
                    </div><!-- /.col-md-6 col-lg-4 -->
                <?php endforeach; ?>
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </section><!-- /.gallery-one -->
<?php endif; ?>