/*
Theme Name: Divi Child
Template: Divi
Version: 1.0
*/

/* =========================
   Gallery Archive
========================= */

.post-type-archive-gallery .main-content{
    padding:60px 0;
}

.gallery-section{
    max-width:1460px;
    margin:0 auto;
    padding:0 20px;
    display: flex;
    gap:40px;
    align-items:flex-start;
}

/* =========================
   Sidebar Filter
========================= */

.gallery-filter{
    width:280px;
    flex-shrink:0;
}

.gallery-categories{
    list-style:none;
    margin:0;
    padding:25px;
    background:#f4f4f4;
    border-left:4px solid #576c87;
}

.gallery-categories li{
    margin-bottom:10px;
}

.gallery-filter-btn{
    background:none;
    border:none;
    width:100%;
    text-align:left;
    font-size:15px;
    font-weight:700;
    text-transform:uppercase;
    color:#333;
    cursor:pointer;
    padding:8px 0;
    transition:all .3s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active{
    color:#576c87;
}

/* =========================
   Content Area
========================= */

.gallery-content{
    flex:1;
    width: 100%;
}

/* =========================
   Gallery Grid
========================= */

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
}

/* =========================
   Gallery Card
========================= */

.gallery-card{
    background:#efefef;
    overflow:hidden;
    transition:all .3s ease;
}

.gallery-card:hover{
    transform:translateY(-5px);
}

.gallery-card a{
    display:block;
    text-decoration:none;
}

.gallery-image{
    overflow:hidden;
}

.gallery-image img{
    width:100%;
    height:280px;
    object-fit:cover;
    display:block;
    transition:transform .4s ease;
}

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

.gallery-info{
    padding:25px;
    text-align:center;
}

.gallery-info h3{
    font-size:17px;
    line-height:1.5;
    margin:0 0 20px;
    color:#1c2f4a;
    text-transform:uppercase;
    font-weight:700;
    height: 40px;
}

.gallery-btn{
    display:inline-block;
    padding:8px 35px;
     border: 2px solid #5F738A !important;
    background: #fff ;
    color: #5F738A ;
    font-size:14px;
    font-weight:600;
    text-transform:uppercase;
    transition:all .3s ease;
	border-radius: 6px ;
}

.gallery-card:hover .gallery-btn{
     background: #5F738A ;
    color: #ffffff ;
}


/* =========================
   Loader
========================= */

#gallery-loader{
    display:none;
    text-align:center;
    padding:60px 0;
}

.loading + #gallery-loader{
    display:block;
}

.gallery-spinner{
    width:50px;
    height:50px;
    border:4px solid #e5e5e5;
    border-top:4px solid #f7a600;
    border-radius:50%;
    animation:spin .8s linear infinite;
    margin:0 auto;
}

@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

/* =========================
   Large Tablet
========================= */

@media (max-width:1024px){

    .gallery-section{
        flex-direction:column;
    }

    .gallery-filter{
        width:100%;
    }

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

/* =========================
   Mobile
========================= */

@media (max-width:767px){

    .gallery-section{
        padding:0 15px;
    }

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

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

    .gallery-info{
        padding:20px;
    }

    .gallery-info h3{
        font-size:16px;
    }

    .gallery-categories{
        display:flex;
        flex-wrap:wrap;
        gap:10px;
        border-left:none;
    }

    .gallery-categories li{
        margin:0;
    }

    .gallery-categories {
    
    border-left: 4px solid #f7a600!important;
}

    .gallery-btn{
        width:100%;
        text-align:center;
    }
}

@media (max-width:767px){
.post-type-archive-gallery .main-content {
    margin-top: 90px;
}
}
#gallery-loader{
    display:none;
    text-align:center;
    padding:50px 0;
}

.gallery-spinner{
    width:50px;
    height:50px;
    border:4px solid #e5e5e5;
    border-top:4px solid #f7a600;
    border-radius:50%;
    animation:spin .8s linear infinite;
    margin:0 auto;
}

@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}
@media only screen and (min-width:768px) and (max-width:1023px){

    .post-type-archive-gallery .main-content{
        margin-top:190px;
    }

}

.gallery-products{
    margin:10px 0;
    font-size:14px;
    line-height:1.8;
    color:#666;
	font-weight: bold;
	height: 80px;
}


.gallery-header{
    max-width:1400px;
	text-align: center;
    margin:0 auto 40px;
    padding:0 20px;
}

.gallery-breadcrumb{
    margin-bottom:10px;
}

.gallery-title{
    font-weight: 600;
    font-size: 44px;
    color: #000000;
    margin:0;
}
.gallery-categories{
    flex-direction: column !important;
}
