<!-- Home Design Inner Pages -->
<div class="ulockd-inner-home">
    <div class="container">
        <div class="row">
            <div class="inner-conraimer-details">
                <div class="col-md-12">
                    <h1 class="text-uppercase"><?php echo $this->session->userdata('site_lang') == 'bengali' ? $gallery->bn_title : $gallery->title; ?></h1>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Home Design Inner Pages -->
<div class="ulockd-inner-page">
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <div class="ulockd-icd-layer">
                    <ul class="list-inline ulockd-icd-sub-menu">
                        <li><a href="<?php echo site_url(); ?>"> <?php echo $this->lang->line('home'); ?> </a></li>
                        <li>></li>
                        <li><?php echo $this->lang->line('gallery'); ?></li>
                        <li>></li>
                        <li><?php echo $this->session->userdata('site_lang') == 'bengali' ? $gallery->bn_title : $gallery->title; ?></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- Inner Pages Main Section -->

<!-- Our Video Gallery -->
<section class="ulockd-fservice">
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-md-offset-3 text-center">
                <div class="ulockd-main-title">
                    <h2 class="mt-separator"><?php echo $this->session->userdata('site_lang') == 'bengali' ? $gallery->bn_title : $gallery->title; ?></h2>
                    <?php if ($this->session->userdata('site_lang') == 'bengali') { ?>
                        <p class="text-justify"><?php echo isset($gallery->bn_description) && !empty($gallery->bn_description) ? $gallery->bn_description : ''; ?></p>
                    <?php } else { ?>
                        <p class="text-justify"><?php echo isset($gallery->description) && !empty($gallery->description) ? $gallery->description : ''; ?></p>
                    <?php } ?>
                </div>
            </div>
        </div>

        <?php if (isset($videos) && !empty($videos)) { ?>
            <div class="row">
                <div id="grid" class="masonry-gallery grid-4 clearfix">
                    <?php foreach ($videos as $obj) {
                        $video = get_video_detail($obj->url);
                    ?>
                        <!-- Item -->
                        <div class="isotope-item">
                            <div class="gallery-thumb">
                                <?php if ($obj->image) { ?>
                                    <img style="height: 250px;" class="img-responsive img-whp" src="<?php echo UPLOAD_PATH; ?>gallery-image/<?php echo $obj->image; ?>" alt="<?php echo $this->session->userdata('site_lang') == 'bengali' ? $obj->bn_title : $obj->title; ?>" />
                                <?php } else { ?>
                                    <img style="height: 250px;" class="img-responsive img-whp" src="<?php echo isset($video['thumbnail']) && !empty($video['thumbnail']) ? $video['thumbnail'] : IMG_URL . 'gallery.jpg'; ?>" alt="gallery">
                                <?php } ?>
                                <div class="overlayer">
                                    <div class="lbox-caption">
                                        <div class="lbox-details">
                                            <?php if ($this->session->userdata('site_lang') == 'bengali') { ?>
                                                <h5><?php echo $obj->bn_title; ?></h5>
                                            <?php } else { ?>
                                                <h5><?php echo $obj->title; ?></h5>
                                            <?php } ?>
                                            <ul class="list-inline">
                                                <li>
                                                    <?php if ($obj->url) { ?>
                                                        <a class="mfp-iframe mfp-youtube" data-fancybox-group="<?php echo $this->session->userdata('site_lang') == 'bengali' ? $obj->bn_title : $obj->title; ?>" href="<?php echo isset($video['video']) && !empty($video['video']) ? $video['video'] : ''; ?>">
                                                            <span class="fa fa-play-circle"></span>
                                                        </a>
                                                    <?php } else { ?>
                                                        <a class="popup-img" href="<?php echo IMG_URL; ?>gallery.jpg" alt="gallery" title="Gallery"><span class="fa fa-plus-square"></span></a>
                                                    <?php } ?>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    <?php } ?>
                </div>
            </div>
        <?php } ?>
    </div>
</section>