<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Gallery || Sai Protection Group</title>
    <meta name="title" content="Sai Protection Group | Professional Security Guard Services in India">
    <meta name="description" content="Sai Protection Group offers professional security guard services including industrial, corporate, residential, film set and event security. Trusted protection with trained and reliable security personnel across India.">
    <meta name="keywords" content="Sai Protection Group, security guard services, event security, industrial security, residential security, corporate security, film set security, private security agency, professional security guards, trained security personnel, safety and protection, 24x7 security services, security solutions India, security company Pune, armed security, unarmed security, commando security services">

    <!-- Open Graph / Facebook -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://saiprotectiongroup.in/">
    <meta property="og:title" content="Sai Protection Group | Professional Security Guard Services in India">
    <meta property="og:description" content="Trusted security guard services for corporate, residential, industrial, events and film sets. Sai Protection Group ensures safety with trained and reliable personnel.">
    <meta property="og:image" content="https://saiprotectiongroup.in/images/2.jpeg">

    <!-- Twitter -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:url" content="https://saiprotectiongroup.in/">
    <meta name="twitter:title" content="Sai Protection Group | Professional Security Guard Services in India">
    <meta name="twitter:description" content="Reliable and professional security guard services for industries, corporates, residential societies, film sets and events across India.">
    <meta name="twitter:image" content="https://saiprotectiongroup.in/images/2.jpeg">

    <!-- Additional SEO Tags -->
    <meta name="robots" content="index, follow">
    <meta name="author" content="Sai Protection Group">
    <!-- favicon -->
    <link rel="icon" href="sglogo.png" sizes="20x20" type="image/png" />
    <!-- animate -->
    <link rel="stylesheet" href="assets/css/animate.css" />
    <!-- bootstrap -->
    <link rel="stylesheet" href="assets/css/bootstrap.min.css" />
    <!-- magnific popup -->
    <link rel="stylesheet" href="assets/css/magnific-popup.css" />
    <!-- owl carousel -->
    <link rel="stylesheet" href="assets/css/owl.carousel.min.css" />
    <!-- Nice Select -->
    <link rel="stylesheet" href="assets/css/nice-select.css">
    <!-- Slick Slider -->
    <link rel="stylesheet" href="assets/css/slick.css">
    <!-- fontawesome -->
    <link rel="stylesheet" href="assets/css/font-awesome.min.css" />
    <!-- iconmoon -->
    <link rel="stylesheet" href="assets/css/icomoon.css">
    <!-- Main Stylesheet -->
    <link rel="stylesheet" href="assets/css/style.css" />
    <!-- Responsive -->
    <link rel="stylesheet" href="assets/css/responsive.css" />

    <link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.css'>
    <meta name="google-site-verification" content="S-DIIrPbNhW02Np2wGU6Mr3WriflOuYagNn2w8_E888" />
    <!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JGG73GQJ68"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-JGG73GQJ68');
</script>
    
</head>

<style>
.main .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
    justify-content: center;
    align-items: center;
}

.main .card {
    color: #252a32;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.24);
}

.main .card-image {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 70%;
    background: #ffffff;
}

.main .card-image img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media only screen and (max-width: 600px) {
    .main .container {
        display: grid;
        grid-template-columns: 1fr;
        grid-gap: 1rem;
    }
}
</style>

<body>
    <div class="body-overlay" id="body-overlay"></div>

    <?php
include "header1.php";
?>

    <!-- breadcrumb area  -->
    <div class="breadcrumb-area margin-bottom-120">
        <div class="container custom-container">
            <div class="breadcrumb-inner">
                <h2 class="br-inner-title">GALLERY</h2>
                <ul class="breadcrumb-menu">
                    <li><img class="bullet-04" src="./assets/img/section-img/breadcrumb/home.svg" alt=""><a
                            href="#">home</a></li>
                    <li><img class="bullet-03" src="./assets/img/shapes/bullet.png" alt=""><a href="#">Gallery</a></li>
                </ul>
            </div>
        </div>
    </div>
    <!-- breadcrumb area end -->

    <main class="main margin-bottom-60">
        <div class="container">
<?php
include "db.php";

$query = "SELECT * FROM gallery ORDER BY id DESC";
$result = mysqli_query($conn, $query);

while ($row = mysqli_fetch_assoc($result)) {
    ?>
    <div class="card">
        <div class="card-image">
            <a class="popup-btn image-popup-vertical-fit" 
               href="images/<?php echo htmlspecialchars($row['image']); ?>"
               data-fancybox="gallery" 
               data-caption="Uploaded on <?php echo date('F j, Y', strtotime($row['uploaded_at'])); ?>">
               
                <img src="images/<?php echo htmlspecialchars($row['image']); ?>" 
                     alt="Gallery Image">
            </a>
        </div>
    </div>
    <?php
}
?>

        </div>
    </main>

    <!-- <div class="gallary-area margin-bottom-120">
        <div class="container">
            <div class="theme-heading-title team-page text-center">
                <h3 class="title">See our gellery </h3>
                <p>Integer dis ads se purus sollicitudin dapibus et vivamus pharetra sit integer dictum in dise natoque
                    an mus quis in. Facilisis inceptos nec, potenti nostra aenean lacinia varius semper ant nullam nulla
                    primis placerat facilisis.</p>
            </div>
        </div>
        <div class="gallery-item-wrap row">
            <div class="item gallery-single-item-1 col-lg-4">
                <div class="thumb" style="background-image: url('images/2.jpeg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/2.jpeg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-2 col-lg-4">
                <div class="thumb" style="background-image: url('images/1.jpeg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/1.jpeg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-3 col-lg-4">
                <div class="thumb" style="background-image: url('images/4.jpeg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/4.jpeg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-4 col-lg-4">
                <div class="thumb" style="background-image: url('images/4.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/4.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-5 col-lg-4">
                <div class="thumb" style="background-image: url('images/5.jpeg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/5.jpeg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-6 office col-lg-4">
                <div class="thumb" style="background-image: url('images/5.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/5.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-7 col-lg-4">
                <div class="thumb" style="background-image: url('images/6.jpeg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/6.jpeg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8 col-lg-4">
                <div class="thumb" style="background-image: url('images/7.jpeg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/7.jpeg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8 col-lg-4">
                <div class="thumb" style="background-image: url('images/8.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/8.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/9.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/9.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/10.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/10.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/11.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/11.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/12.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/12.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/13.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/13.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/15.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/15.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/16.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/16.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/event.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/event.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/Facility.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/Facility.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/gunmen.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/gunmen.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/new.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/new.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/new1.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/new1.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/pr.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/pr.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
            <div class="item gallery-single-item-8">
                <div class="thumb" style="background-image: url('images/w_choose.jpg');">
                </div>
                <a class="popup-btn image-popup-vertical-fit" href="images/w_choose.jpg">
                    <i class="icomoon-plus-sign"></i>
                </a>
            </div>
        </div>
    </div> -->

    <script>
    $('[data-fancybox="gallery"]').fancybox({
        buttons: [
            "slideShow",
            "thumbs",
            "zoom",
            "fullScreen",
            "share",
            "close"
        ],
        loop: false,
        protect: true
    });
    </script>

    <!-- footer area start -->
    <?php
    include "footer.php"
    ?>
    <!-- footer area end -->
    <!-- back to top area start -->
    <div class="back-to-top">
        <span class="back-top"><i class="fa fa-angle-up"></i></span>
    </div>
    <!-- back to top area end -->
    <script src="assets/js/jquery-3.6.0.min.js"></script>
    <!-- bootstrap -->
    <script src="assets/js/bootstrap.min.js"></script>
    <!-- magnific popup -->
    <script src="assets/js/jquery.magnific-popup.js"></script>
    <!-- wow -->
    <script src="assets/js/wow.min.js"></script>
    <!-- owl carousel -->
    <script src="assets/js/owl.carousel.min.js"></script>
    <!-- Nice Select -->
    <script src="assets/js/jquery.nice-select.js"></script>
    <!-- Slick Slider -->
    <script src="assets/js/slick.min.js"></script>
    <!-- isotop -->
    <script src="assets/js/isotope.pkgd.min.js"></script>
    <!-- isotop image load -->
    <script src="assets/js/imagesloaded.pkgd.min.js"></script>
    <!-- isotop image load -->
    <script src="assets/js/jQuery.Progressbar.js"></script>
    <!-- countdown -->
    <script src="assets/js/jquery.countdown.min.js"></script>
    <!-- main js -->
    <script src="assets/js/main.js"></script>

    <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js'></script>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js'></script>

</body>

</html>