<?php if ('layout_three' == $settings['layout_type']) : ?>
    <!-- Feature section Start -->
    <section class="project-three">
        <div class="container">
            <?php if (!empty($settings['layout_three_sec_sub_title'] || $settings['layout_three_sec_title'])) : ?>
                <div class="sec-title text-center wow fadeInUp" data-wow-duration='1500ms' data-wow-delay='000ms'>
                    <?php if (!empty($settings['layout_three_sec_sub_title'])) : ?>
                        <div class="d-flex align-items-center justify-content-center">
                            <?php ostech_elementor_rendered_image($settings, 'layout_three_title_shape', 'sec-title__img'); ?>
                            <?php
                            if (!empty($settings['layout_three_sec_sub_title'])) :
                                $this->add_inline_editing_attributes('layout_three_sec_sub_title', 'none');
                                ostech_elementor_rendered_content($this, 'layout_three_sec_sub_title', 'sec-title__tagline', $settings['section_sub_title_tag_layout_three']);
                            endif; ?>
                        </div>
                    <?php endif; ?>
                    <?php if (!empty($settings['layout_three_sec_title'])) :
                        $this->add_inline_editing_attributes('layout_three_sec_title', 'none');
                        ostech_elementor_rendered_content($this, 'layout_three_sec_title', 'sec-title__title', $settings['section_title_tag_layout_three']);
                    endif;
                    ?>
                </div>
            <?php endif; ?>
            <div class="row gutter-y-30">
                <?php foreach ($settings['portfolio_three_list'] as $index => $item) :  ?>
                    <div class="col-12">
                        <div class="project-three__item wow fadeInUp" data-wow-duration="1000ms" data-wow-delay="500ms">
                            <div class="project-three__item__bg" style="background-image: url(<?php echo esc_url($item['image']['url']) ?>);"></div>
                            <div class="project-three__item__content">
                                <span class="project-three__item__subtitle"><?php echo esc_html($item['tag_line']) ?> </span>
                                <<?php echo esc_attr($item['portfolio_title_tag_layout_three']); ?> class="project-three__item__title">
                                    <?php
                                    if (!empty($item['title'])) :
                                        ostech_basic_rendered_content($this, $item,  'title', '', 'a');
                                    endif;
                                    ?>
                                </<?php echo esc_attr($item['portfolio_title_tag_layout_three']); ?>>
                            </div>
                            <div class="project-three__item__link">
                                <p class="project-three__item__text"><?php echo wp_kses($item['date'], 'ostech_allowed_tags'); ?></p>
                                <a href="<?php echo esc_url($item['url']['url']); ?>" <?php esc_attr(!empty($item['url']['is_external']) ? "target=_blank" : ' '); ?> class="project-three__item__link__btn">
                                    <span class="project-three__item__link__btn__icon"></span>
                                </a>
                            </div>
                        </div>
                    </div>
                <?php endforeach; ?>
            </div>
        </div>
    </section>
    <!-- Feature section End -->
<?php endif; ?>