<?php $this->load->view('top');?>

 <div class="clearfix"></div>

    <section class="banner_category" style="background-image: url('<?=theme_url();?>img/inner-banner.jpg');">
        <div class="container">
            <div class="banner_subtitle">100% Ayurvedic</div>
            <h1 class="banner_title">Photo Gallery</h1>
        </div>
    </section>
    <div class="clearfix"></div>

    <div class="page_breadcrumbs">
        <div class="container">
            <ul>
                <li><a href="index.php">Home</a></li>
                <li>Photo Gallery</li>
            </ul>
        </div>
    </div>
    <div class="clearfix"></div>
    <section class="product_category ptb-30">
        <div class="container">
            <div class="product_right">
                <div class="row">
                    <h2 class="gallery_title">Photo Gallery</h2>
                    <div class="clearfix"></div> 
                 <?php if(is_array($photogallery) && !empty($photogallery)){   
                    
                    foreach($photogallery as $gallery) { 
                    
                    ?>          
                    
                    <div class="col-xxl-4 col-xl-4 col-lg-4 col-md-6 col-sm-6 col-12">
                        <div class="portfolio_block">
                            <a href="<?php echo get_image_with_name($gallery['gallery_name'], 'gallery', $gallery['gallery_image'], '800', '400', 'R'); ?>" data-fancybox="gallery">
                                <div class="image-box">
                                    <figure class="image">
                                        <img src="<?php echo get_image_with_name($gallery['gallery_name'], 'gallery', $gallery['gallery_image'], '450', '350', 'R'); ?>" alt="<?php echo $gallery['gallery_name']; ?>">
                                    </figure>
                                    <div class="overlay">
                                        <span><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z"/><path d="M10.344 11.742c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1 6.538 6.538 0 0 1-1.398 1.4z"/> <path fill-rule="evenodd" d="M6.5 3a.5.5 0 0 1 .5.5V6h2.5a.5.5 0 0 1 0 1H7v2.5a.5.5 0 0 1-1 0V7H3.5a.5.5 0 0 1 0-1H6V3.5a.5.5 0 0 1 .5-.5z"/></svg></span>
                                    </div>
                                </div>
                                <h3><?php echo $gallery['gallery_name']; ?></h3>
                            </a>
                        </div>
                    </div>
                    
                    <?php } } ?>
                   
                </div>
            </div>
        </div>
    </section>

<?php $this->load->view('bottom'); ?>