<div class="container fullwidth equal-height-cols">
    <div class="row">
        <?php if ($item->video_link): ?>
            <div class="col-md-6">
                <iframe width="100%" height="100%" src="<?php echo str_replace('watch?v=', 'embed/', $item->video_link); ?>" frameborder="0" allowfullscreen></iframe>
            </div>
        <?php else: ?>
            <div class="col-md-6" data-background="<?php echo base_url() ?>/cdn/sessions/<?php echo $item->image ?>"></div>
        <?php endif ?>

        <div class="col-md-6 bg-dark text-light p100 pt140 pb140">
            <h1 class="title"><?php echo $item->title ?></h1>
            <p><i class="fa fa-folder-open-o"></i> <?php echo $item->category ?></p>
            <p class="separator-left"></p>
            <p>
                <?php echo $item->description ?>
            </p>
        </div>
    </div>
</div>
<div class="container text-center">
    <h3 class="title mt90">Session Gallery</h3>
    <p class="separator mb60"></p>
    <?php if (json_decode($item->gallery)): ?>
        <div class="grid gallery mt20 mb90" data-gutter="5" data-columns="4">
            <?php foreach (json_decode($item->gallery) as $img): ?>
                <div class="grid-item">
                    <a href="<?php echo base_url() ?>/cdn/sessions/<?php echo $img ?>" data-background="<?php echo base_url() ?>/cdn/sessions/<?php echo $img ?>" data-rel="lightcase:gal" title="<?php echo $item->title ?>"></a>
                </div>
            <?php endforeach ?>
        </div>	
    <?php else: ?>
        <div class="grid gallery mt20 mb90">
            <h5 class="text-center">
                There is no Session Images.
            </h5>
        </div>
    <?php endif ?>
    <?php if (config('disqus_username')): ?>
        <div class="mt20 mb90">
            <h3 class="text-center">
                Leave a comment
            </h3>
            <div id="disqus_thread"></div>
            <script>
                (function () {
                    var d = document, s = d.createElement('script');
                    s.src = 'https://<?php echo config('disqus_username') ?>.disqus.com/embed.js';
                    s.setAttribute('data-timestamp', +new Date());
                    (d.head || d.body).appendChild(s);
                })();
            </script>
        </div>
    <?php endif ?>
</div>