/*=========================================
        GALLERY PAGE CSS
=========================================*/

/* Hero Section */
.gallery-hero{
    position:relative;
    background:url("../images/gallery/gallery-banner.jpg") center center/cover no-repeat;
    min-height:420px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.hero-overlay{
    width:100%;
    height:100%;
    background:rgba(0,0,0,.65);
    display:flex;
    align-items:center;
    justify-content:center;
    padding:120px 0 80px;
}

.gallery-hero h1{
    color:#fff;
    font-size:52px;
    font-weight:700;
    margin-bottom:15px;
}

.gallery-hero p{
    color:#f5f5f5;
    font-size:18px;
    max-width:700px;
    margin:auto;
}

.breadcrumb{
    margin-top:20px;
}

.breadcrumb-item,
.breadcrumb-item a{
    color:#fff;
    text-decoration:none;
}

.breadcrumb-item+.breadcrumb-item::before{
    color:#fff;
}

/* Intro */

.gallery-intro img{
    border-radius:20px;
    transition:.4s;
}

.gallery-intro img:hover{
    transform:scale(1.02);
}

/*=========================================
        FILTER BUTTONS
=========================================*/

.gallery-filter{
    padding:40px 0;
}

.filter-btn{
    border:none;
    background:#f1f1f1;
    color:#333;
    padding:12px 28px;
    border-radius:50px;
    margin:8px;
    font-weight:600;
    transition:.3s;
    cursor:pointer;
}

.filter-btn:hover,
.filter-btn.active{
    background:#0d6efd;
    color:#fff;
}

/*=========================================
        GALLERY GRID
=========================================*/

.gallery-grid-section{
    padding-bottom:80px;
}

.gallery-card{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.4s;
    background:#fff;
}

.gallery-card img{
    width:100%;
    height:280px;
    object-fit:cover;
    transition:.5s;
}

.gallery-card:hover img{
    transform:scale(1.1);
}

.gallery-card:hover{
    transform:translateY(-8px);
}

/* Overlay */

.gallery-overlay{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:linear-gradient(to top,
            rgba(0,0,0,.9),
            rgba(0,0,0,.2));
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align-items:center;
    text-align:center;
    padding:25px;
    opacity:0;
    transition:.4s;
}

.gallery-card:hover .gallery-overlay{
    opacity:1;
}

.gallery-overlay h5{
    color:#fff;
    font-weight:700;
    margin-bottom:8px;
}

.gallery-overlay p{
    color:#ddd;
    margin-bottom:15px;
}

.gallery-view{
    width:55px;
    height:55px;
    background:#fff;
    color:#0d6efd;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    font-size:20px;
    transition:.3s;
}

.gallery-view:hover{
    background:#0d6efd;
    color:#fff;
}

.gallery-badge{
    position:absolute;
    top:20px;
    left:20px;
    background:#0d6efd;
    color:#fff;
    padding:6px 14px;
    border-radius:30px;
    font-size:13px;
    font-weight:600;
}

/*=========================================
        GALLERY STATS
=========================================*/

.gallery-stats{
    background:#f8f9fa;
}

.stat-card{
    background:#fff;
    padding:35px 20px;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-8px);
}

.stat-card i{
    font-size:45px;
    color:#0d6efd;
    margin-bottom:20px;
}

.stat-card h2{
    font-size:36px;
    font-weight:700;
}

.stat-card p{
    margin:0;
    color:#666;
}

/*=========================================
        VIDEO GALLERY
=========================================*/

.video-gallery{
    background:#fff;
}

.video-card{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
}

.video-card:hover{
    transform:translateY(-8px);
}

.video-card iframe{
    border:none;
}

.video-card h5{
    padding:20px;
    text-align:center;
    margin:0;
    font-weight:600;
}

/*=========================================
        CTA
=========================================*/

.gallery-cta{
    background:#0d6efd;
    color:#fff;
    padding:70px 0;
}

.gallery-cta h2{
    font-weight:700;
}

.gallery-cta p{
    margin-bottom:0;
}

.gallery-cta .btn{
    margin-top:10px;
}

/*=========================================
        FOOTER
=========================================*/

.footer{
    background:#111;
    color:#ddd;
}

.footer h4,
.footer h5{
    color:#fff;
    margin-bottom:20px;
}

.footer a{
    color:#ccc;
    text-decoration:none;
    transition:.3s;
}

.footer a:hover{
    color:#0d6efd;
}

.footer hr{
    border-color:#333;
}

/*=========================================
        LIGHTBOX
=========================================*/

.gallery-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.92);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

.gallery-lightbox.active{
    display:flex;
}

.gallery-lightbox img{
    max-width:90%;
    max-height:85vh;
    border-radius:10px;
}

.lightbox-close{
    position:absolute;
    top:20px;
    right:30px;
    font-size:42px;
    color:#fff;
    cursor:pointer;
}

.lightbox-prev,
.lightbox-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    border:none;
    width:60px;
    height:60px;
    border-radius:50%;
    background:rgba(255,255,255,.2);
    color:#fff;
    font-size:24px;
    transition:.3s;
}

.lightbox-prev{
    left:30px;
}

.lightbox-next{
    right:30px;
}

.lightbox-prev:hover,
.lightbox-next:hover{
    background:#0d6efd;
}

/*=========================================
        ANIMATION
=========================================*/

.gallery-item{
    transition:.35s;
}

.gallery-item.hide{
    display:none;
}

.gallery-card{
    animation:fadeUp .5s ease;
}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(25px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/*=========================================
        RESPONSIVE
=========================================*/

@media(max-width:991px){

.gallery-hero h1{
    font-size:42px;
}

.gallery-card img{
    height:240px;
}

}

@media(max-width:768px){

.gallery-hero{
    min-height:320px;
}

.hero-overlay{
    padding:100px 0 60px;
}

.gallery-hero h1{
    font-size:34px;
}

.gallery-hero p{
    font-size:16px;
}

.filter-btn{
    padding:10px 20px;
    font-size:14px;
    margin:5px;
}

.gallery-card img{
    height:220px;
}

.lightbox-prev,
.lightbox-next{
    width:45px;
    height:45px;
    font-size:18px;
}

.gallery-cta{
    text-align:center;
}

}

@media(max-width:576px){

.gallery-card img{
    height:200px;
}

.gallery-hero h1{
    font-size:28px;
}

.stat-card{
    padding:25px 15px;
}

.stat-card h2{
    font-size:28px;
}

}