<?php
require_once "front_common/front_header.php";

if (isset($_GET['id'])) {
    $id = $_GET['id'];
    $galleries = $db->getSingleGallery($id);
    $galleryId = $galleries[0]['id'];
}

?>




    <div class="container">

        <h3 class="my-4 text-center text-lg-left"><?php echo $galleries[0]['title']; ?></h3>

        <div class="row text-center text-lg-left">

            <style>
                .img{
                    width: 800px;
                    height: 250px;
                }
            </style>

            <div class="col-lg-4 col-md-4 col-xs-6">
                <a href="#" class="d-block mb-4 h-100">
                    <img class="img-fluid img-thumbnail img" src="cms/assets/img/gallery/<?php echo $galleries[0]['image1']; ?>" alt="">
                </a>
            </div>

            <div class="col-lg-4 col-md-4 col-xs-6">
                <a href="#" class="d-block mb-4 h-100">
                    <img class="img-fluid img-thumbnail img" src="cms/assets/img/gallery/<?php echo $galleries[0]['image2']; ?>" alt="">
                </a>
            </div>

            <div class="col-lg-4 col-md-4 col-xs-6">
                <a href="#" class="d-block mb-4 h-100">
                    <img class="img-fluid img-thumbnail img" src="cms/assets/img/gallery/<?php echo $galleries[0]['image3']; ?>" alt="">
                </a>
            </div>

            <div class="col-lg-4 col-md-4 col-xs-6">
                <a href="#" class="d-block mb-4 h-100">
                    <img class="img-fluid img-thumbnail img" src="cms/assets/img/gallery/<?php echo $galleries[0]['image4']; ?>" alt="">
                </a>
            </div>

            <div class="col-lg-4 col-md-4 col-xs-6">
                <a href="#" class="d-block mb-4 h-100">
                    <img class="img-fluid img-thumbnail img" src="cms/assets/img/gallery/<?php echo $galleries[0]['image5']; ?>" alt="">
                </a>
            </div>

            <div class="col-lg-4 col-md-4 col-xs-6">
                <a href="#" class="d-block mb-4 h-100">
                    <img class="img-fluid img-thumbnail img" src="cms/assets/img/gallery/<?php echo $galleries[0]['image6']; ?>" alt="">
                </a>
            </div>

        </div>

    </div>

<?php
require_once "front_common/front_footer.php";
?>