
<div class="container-fluid bg_gray">
<div class="container py-5">
    <div class="row g-custom space-top">
        <?php foreach($galleryDetails as $key => $content) { ?>
        <div class="col-lg-4 col-md-4 col-sm-12 mb-4">
            <a href="<?= $this->Url->image($content->image_path) ?>" data-lightbox="photos">
                <div class="gal-box">
                    <div class="imgBox">
                        <div class="gal-aspect-div">
                            <div class="mb-3 d-flex justify-content-center align-items-center shadow">
                                <img src="<?= $this->Url->image($content->image_path) ?>" 
                                onclick="openModal();currentSlide(1)" class="img-fluid ">
                            </div>
                        </div>
                    </div>
                </div>
            </a>
        </div>
        <?php } ?>
    </div>
</div>
</div>