<div class="gallery-sec">
    <div class="container">
        <div class="tt-bx">
            <div class="tt">Behind the Scenes: <span>Factory and Product Showcase</span></div>
            <p>Discover the story behind every product—the precision of machinery, the dedication of skilled hands, and the rhythm of innovation in motion. From raw materials to finished excellence, every detail reflects passion and expertise. Step into a world where quality isn’t just a goal—it’s the standard, crafted with care at every stage of the journey.</p>
        </div>
        <div class="row g-3 row-cols-1 row-cols-md-2 row-cols-lg-4 justify-content-center">
            <?php $gallery_award_sql = mysqli_query($GLOBALS['dbconn'], "select gallery_title, gallery_image,id,description,image_name, gallery_order from gallery_tbl order by gallery_order asc limit 0,12");
            while ($gallery_res = mysqli_fetch_assoc($gallery_award_sql)) {
                //$galImg = getImage($gallery_res[gallery_image], 500, 600, $gallery_res[image_name] . $gallery_res[id], "/uploaded-files/gallery/");
                //$galImg1 = getImage($gallery_res[gallery_image], 1200, 1600, $gallery_res[image_name] . $gallery_res[id], "/uploaded-files/gallery/"); ?>
                <div class="col">
                    <div class="gallery-bx wow fadeInUp">
                        <a href="<?= site_url; ?>/uploaded-files/gallery/<?php echo $gallery_res['gallery_image']; ?>" title="<?= $gallery_res['image_name']; ?> in <?=$ca_nam1;?>" data-fancybox="Gallery" class="img-bx">
                            <img loading="lazy" src="<?= site_url; ?>/uploaded-files/gallery/<?php echo $gallery_res['gallery_image']; ?>" alt="<?= $gallery_res['image_name']; ?> in <?=$ca_nam1;?>" title="<?= $gallery_res['image_name']; ?> in <?=$ca_nam1;?>">
                        </a>
                        <span class="link-wrap">
                            <svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24">
                                <path stroke="currentColor" stroke-linecap="round" stroke-width="2" d="m21 21-3.5-3.5M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z" />
                            </svg>
                        </span>
                    </div>
                </div>
            <?php } ?>
        </div>
        <div class="text-center mt-4">
            <a href="<?=site_url;?>/gallery.htm" class="main-btn" title="View More">View More <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-right" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8"></path></svg></a>
        </div>
    </div>
</div>