/* ============ GALLERY PAGE ========== */

.gallery-single-custom {
    margin: 0 auto;
    padding: 0px 0px 80px;
}

.gallery-single-custom h1 {
    margin: 0 0 50px;
    text-align: left;
}

/* =========== GALLERY GRID =========== */

.gallery-conten-custom .et-gallery {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    height: auto !important;
    position: static !important;
    padding-top: 72px;
}

.gallery-conten-custom .et-gallery .et-item {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    overflow: hidden;
    border-radius: 18px;
    background: #f5eeeeb8;
    transition: transform .35s ease, box-shadow .35s ease;
    padding: 0;
}

.gallery-conten-custom .et-gallery .et-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.gallery-conten-custom .et-gallery .et-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.gallery-conten-custom .et-gallery .et-item:hover::after {
    opacity: 1;
}


.gallery-conten-custom .et-gallery img {
    display: block;
    width: 100%;
    height: 280px !important;
    object-fit: cover;
    cursor: pointer;
    transition: transform .5s ease;
}

.gallery-conten-custom .et-gallery .et-item:hover img {
    transform: scale(1.08);
}

/* ============= POPUP ============== */

#custom-gallery-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all .3s ease;
}

#custom-gallery-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.popup-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#popup-image {
    display: block;
    max-width: 85vw;
    max-height: 85vh;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .5);
    transform: scale(.95);
    transition: transform .3s ease;
}

#custom-gallery-popup.active #popup-image {
    transform: scale(1);
}

/* ======== CLOSE BUTTON ====== */

.popup-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}

.popup-close:hover {
    background: rgba(255, 255, 255, .3);
    transform: rotate(90deg);
}

/* ========= NAVIGATION ========= */
.popup-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    margin-bottom: auto !important;
    justify-content: center;
}

.popup-prev {
    left: 20px;
}

.popup-next {
    right: 20px;
}

.popup-counter {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 14px;
    z-index: 100000;
}

body.popup-open {
    overflow: hidden;
}

.custom-post-gallery-wrapper {
    padding: 0px 0 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.gallery-grid:after {
    content: "";
    display: block;
    clear: both;
}

.gallery-item {
    box-sizing: border-box;
}

.gallery-item-inner {
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 16px;
    overflow: hidden;
    transition: all .35s ease;
}

.gallery-item:hover .gallery-item-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .12);
}

.gallery-item-inner>a {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    max-height: 250px !important;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-inner>a:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    transition: .3s ease;
}

.gallery-item:hover .gallery-item-inner>a:after {
    opacity: 1;
}


.gallery-content {
    padding: 22px;
}

.gallery-item h3 {
    margin: 0 0 15px;
    font-size: 22px;
    line-height: 1.4;
    min-height: 62px;
}

.gallery-item h3 a {
    color: #222;
    text-decoration: none;
    transition: .3s;
}

.gallery-item h3 a:hover {
    color: #f26a21;
}

.gallery-view-more {
    display: inline-block;
    color: #f26a21;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

.gallery-view-more:after {
    content: " →";
    transition: .3s;
}

.gallery-item:hover .gallery-view-more:after {
    margin-left: 6px;
}
.single-gallery .page-content-wrap {
    padding-top: 250px;
}
/* ========= TABLET ====== */

@media (max-width: 1024px) {
    .gallery-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

  

    .gallery-item h3 {
        font-size: 20px;
    }

    .gallery-single-custom {
        padding: 0px 0 80px;
    }

    .gallery-conten-custom .et-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .gallery-conten-custom .et-gallery img {
        height: 240px;
    }

    #popup-image {
        max-width: 92vw;
        max-height: 80vh;
    }

    .popup-prev {
        left: 15px;
    }

    .popup-next {
        right: 15px;
    }
}

/* ======== MOBILE === */

@media (max-width: 767px) {
    
    .title-section .vc_row {

            padding-bottom: 60px !important;
  
        }

                .post-type-archive-gallery .title-section .vc_row{
                            padding-top: 200px !important;

                }
    .title-section>.vc_row.wpb_row.vc_row-fluid.underline {

    padding-top: 20px !important;
    
    }

    .gallery-single-custom h1 {
        margin-bottom: 30px;
    }

    .gallery-conten-custom .et-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-conten-custom .et-gallery img {
        height: 220px;
    }

    .popup-close {
        width: 42px;
        height: 42px;
        font-size: 22px;
        top: 15px;
        right: 15px;
    }

    .popup-nav {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .popup-prev {
        left: 10px;
    }

    .popup-next {
        right: 10px;
    }

    #popup-image {
        max-width: calc(100vw - 60px);
        max-height: 70vh;
        border-radius: 12px;
    }

    .popup-counter {
        bottom: 15px;
        font-size: 12px;
        padding: 6px 12px;
    }

    .custom-post-gallery-wrapper {
        padding: 0px 0px 60px 0px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        width: 100%;
        padding: 0px;
    }

    .gallery-item img {
        height: 220px;
    }

    .gallery-content {
        padding: 18px;
    }

    .gallery-item h3 {
        font-size: 18px;
        min-height: auto;
    }
}

@media (max-width: 480px) {

    .gallery-conten-custom .et-gallery img {
        height: 200px;
    }

    .popup-nav {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    #popup-image {
        max-width: calc(100vw - 50px);
        max-height: 65vh;
    }
}

.header .header-bar {
    display: block !important;
}
/* page name : document */
.single-gallery .grid-sizer {
    display: none !important;
}
.single-gallery section.title-section {
    display: none;
} 
.single-gallery .page-title {
    background-color: transparent;
    padding: 0;
    color: #606060;
    font-weight: 800;
    letter-spacing: 0px;
    text-transform: none;
    margin: 0;
}
.gallery-single-custom{
    max-width: calc(1200px + 48px)!important;
}

.custom-section {
    padding:0 0 80px;
}

.custom-section-list {
    margin-bottom: 24px !important;
}



.custom-section-list .vc_column-inner {
    padding: 0 !important;
}

.custom-section-list .wpb_column>.vc_column-inner>.wpb_wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    transition: all .3s ease;
}

.custom-section-list .wpb_column>.vc_column-inner>.wpb_wrapper:hover {
    transform: translateY(-3px);
    border-color: #fc8116;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

.custom-section-list .et-icon {
    margin: 0 !important;
    flex-shrink: 0;
}

.custom-section-list .et-icon span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff1f1;
    color: #fc8116;
    font-size: 28px;
}

.custom-section-list .wpb_text_column {
    margin-bottom: 0 !important;
    flex: 1;
}

.custom-section-list p {
    margin: 0;
}

.custom-section-list a {
    display: block;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: color .3s ease;
}

.custom-section-list a:hover {
    color: #fc8116;
}

.custom-section-list a::after {
    content: "Download PDF";
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}
.single-page-custom-heading .et-breadcrumbs>*:before {
    color: #ffcb05;
}
@media (max-width: 1024px) {
    .archive .title-section span.et-gap.et-clearfix {
            display: none;
        }
        .single-page-custom-heading {
            display: flex;
            flex-direction: column-reverse;
        }
        .single-page-custom-heading h2.page-title {
            margin-bottom: 0;
        }
            .single-gallery .page-title {
            width: 100%;
            display: block;
            clear: both;
        }
    
        .single-gallery .page-content-wrap {
            padding-top: 200px;
        }
}
@media (max-width: 767px) {

    .custom-section {
        padding: 50px 0;
    }

    .custom-section-list .wpb_column>.vc_column-inner>.wpb_wrapper {
        padding: 16px;
        gap: 14px;
    }

    .custom-section-list .et-icon span {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .custom-section-list a {
        font-size: 16px;
    }

    .custom-section-list a::after {
        font-size: 12px;
    }
    .single-gallery .page-title {
            font-size: 20px;
            line-height: normal;
    }

 .gallery-conten-custom .container {
            max-width: 100%;
            width: 100%;
        }

}