<?php include_once('include/head.php'); ?>

<body>

	<div class="main-page-wrapper">

<?php include_once('include/header.php'); ?>

	<!-- page-title-area start -->
				<div class="page-title-area text-center pt-100 pb-100 pt-lg-130 pb-lg-110"
					data-background="assets/img/bg/main-bg.png">
					<div class="container">
						<h2 class="page-title mb-15">Our Gallery</h2>
						<!--<ul class="breadcrumb">-->
						<!--	<li><a href="index-2.html">Home</a></li>-->
						<!--	<li><a href="about-us.html">About US</a></li>-->
						<!--</ul>-->
					</div>
				</div>
				<!-- page-title-area end -->

	<!-- ht-service-section start -->
   <!-- ht-service-section start -->
			<section class="ht-service-section position-relative servicepics">
				<div class="ht-service-wrapper-bg">
					<div class="container">
						<div class="row text-center">
						    <?php
						    $gallery = mysqli_query($conn, "SELECT * FROM `tbl_photo`");
						    while($rom = mysqli_fetch_array($gallery))
						    {
						        $photo = $rom['photo'];
						    ?>
							<div class="col-md-4 mb-2">
								<div class="card-image">
									<a href="<?php path(); ?>/admin/assets/images/gallery/<?php echo $photo; ?>" data-fancybox="gallery">
										<img src="<?php path(); ?>/admin/assets/images/gallery/<?php echo $photo; ?>" alt="Image Gallery" class="w-100 h-100">
									</a>
								</div>
							</div>
							<?php
						    }
						    ?>
								
							<script>
								// Fancybox Configuration
								$('[data-fancybox="gallery"]').fancybox({
									buttons: [
										"slideShow",
										"thumbs",
										"zoom",
										"fullScreen",
										"share",
										"close"
									],
									loop: false,
									protect: true
								});
							</script>
						</div>

					</div>
				</div>
			</section>
			<!-- ht-service-section end -->

<?php include_once('include/footer.php'); ?>

</body>

</html>