/*
Theme Name: DCBM
Theme URI: https://wordpress.org/themes/twentyseventeen/
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Twenty Seventeen brings your site to life with header video and immersive featured images. With a focus on business sites, it features multiple sections on the front page as well as widgets, navigation and social menus, a logo, and more. Personalize its asymmetrical grid with a custom color scheme and showcase your multimedia content with post formats. Our default theme for 2017 works great in many languages, for any abilities, and on any device.
Version: 1.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentyseventeen
Tags: one-column, two-columns, right-sidebar, flexible-header, accessibility-ready, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
1.0 Normalize
2.0 Accessibility
3.0 Alignments
4.0 Clearings
5.0 Typography
6.0 Forms
7.0 Formatting
8.0 Lists
9.0 Tables
10.0 Links
11.0 Featured Image Hover
12.0 Navigation
13.0 Layout
   13.1 Header
   13.2 Front Page
   13.3 Regular Content
   13.4 Posts
   13.5 Pages
   13.6 Footer
14.0 Comments
15.0 Widgets
16.0 Media
   16.1 Galleries
17.0 Customizer
18.0 SVGs Fallbacks
19.0 Media Queries
20.0 Print
--------------------------------------------------------------*/

/*--------------------------------------------------------------
1.0 Normalize
Styles based on Normalize v5.0.0 @link https://github.com/necolas/normalize.css
--------------------------------------------------------------*/


.entry-content .gllr_image_row{
display: inline-flex !important;
gap: 20px !important;   /* 🔥 YAHI GAP HAI */
   /* width: 100%;*/

}

.entry-content  .gallery.gllr_grid{
    display: block !important; 
    
}

/* gallery css */
/* STEP 1: Row ignore karo */
.gllr_image_row {
    display: contents ;
}


/* STEP 2: Grid + GAP */
.gallery.gllr_grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px !important;   /* 🔥 YAHI GAP HAI */
}

/* STEP 3: Reset block */
.gllr_image_block {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

/* STEP 4: REMOVE fixed box */
.gllr_image_block p {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
}

/* STEP 5: IMPORTANT - remove border gap conflict */
.gllr_image_block img {
    /*width: auto !important;*/
    height: 220px !important;
   /* object-fit: cover;*/
    display: block;
    border: none !important;   /* 🔥 border hatao */
    border-radius: 10px;
}

@media (max-width: 1024px) {
    .gallery.gllr_grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery.gllr_grid {
        grid-template-columns: 1fr;
    }
}

.gallery.gllr_grid {
    padding: 10px;
}

.gllr_image_block {
    padding: 10px;
}




.imagex-box {
    width: 100%;
    aspect-ratio: 380 / 285; /* desktop ratio */
    overflow: hidden;
}

.imagex-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* image stretch नहीं होगी */
    display: block;
}

/* Tablet */
@media (max-width: 991px) {
    .imagex-box {
        aspect-ratio: 4 / 3;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .imagex-box {
        aspect-ratio: 1 / 1; /* square */
    }
}



.gallery_box{
    padding:15px;
    box-sizing:border-box;
    text-align:center;
}

.gallery_box ul{
    margin:0;
    padding:0;
    list-style:none;
}

.gallery_box li{
    list-style:none;
    text-align:center;
}

.gallery_detail_box{
    float:none;
}

.gallery_box img{
    width:100%;
    max-width:320px;
    height:220px;
    display:block;
    margin:0 auto;
    object-fit:cover;
}

.gllr_page_content p,
.gllr_image_block > p{
    margin:0;
    padding:0;
}

.gllr_page_content br{
    display:none;
}

.gllr_image_block a{
    display:block;
}
.gallery_detail_box{
    float: none !important;
    clear: both;
    text-align: center !important;
}
.gallery_box ul .gllr_detail_title, .gallery_box ul .gllr_detail_excerpt {
    text-align: initial;
    text-align: center !important;
}

.gallery_box ul  .gllr_detail_excerpt{
    display:none !important;
}

@media (max-width:768px){
    .gallery_box{
        width:50%;
    }
}

@media (max-width:480px){
    .gallery_box{
        width:100%;
    }
}





/* new css gallery 9.7.2026 */

/* ===============================
   DCBM Gallery Premium Design
================================ */

.gallery_box{
    
    padding:15px;
    width:350px;
}

.gallery_box ul{
    padding:0;
    margin:0;
    list-style:none;
}

.gallery_box li{
    position:relative;
    overflow:hidden;
    border-radius:22px;
    background:#fff;
    box-shadow:0 15px 40px rgba(0,0,0,.10);
    transition:.5s ease;
}

.gallery_box li:hover{
    transform:translateY(-12px);
    box-shadow:0 25px 60px rgba(0,0,0,.18);
}


/* IMAGE */

.gallery_box li > a{
    display:block;
    overflow:hidden;
    position:relative;
}


.gallery_box img{
    width:100% !important;
 
    object-fit:cover;
    border:none !important;
    transition:.6s ease;
    margin:0px !important;
}




/* Dark overlay */




/* CONTENT */

.gallery_detail_box{
    padding:22px;
    background:#fff;
	height:200px;
}


.gllr_detail_title{
    font-size:20px;
    font-weight:700;
    color:#062a52;
    margin-bottom:12px;
    line-height:1.3;
}


.gllr_detail_excerpt{
    color:#666;
    font-size:14px;
    line-height:1.7;
    min-height:45px;
}



/* BUTTON */

.gallery_detail_box a{
    display:inline-flex;
    margin-top:18px;
    padding:10px 22px;
    border-radius:50px;
    background:var(--cw-six);
    color:#fff !important;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
    transition:.3s;
}


.gallery_detail_box a:hover{
    background:var(--cw-third-dark);
    transform:translateX(5px);
    color:#000 !Important;
}



/* Floating number style */




/* Responsive */

@media(max-width:991px){

.gallery_box{
    width:50%;
}

}


@media(max-width:576px){

.gallery_box{
    width:100%;
}

.gallery_box img{
        max-width: 100%;
}
.dm h1{
 text-align:center;   
}

.entry-content .gllr_image_row{
    display:block !important;
}
}

/* new css gallery 9.7.2026 */