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

/*=========================
        HEADER
=========================*/

.gallery-header{

    background:linear-gradient(
        135deg,
        #062741,
        #0B4C78,
        #55ACEE
    );

    color:#fff;

    padding:90px 0;

    text-align:center;

    position:relative;

    overflow:hidden;

}

.gallery-header::before{

    content:"";

    position:absolute;

    width:320px;

    height:320px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

    top:-150px;

    left:-100px;

}

.gallery-header::after{

    content:"";

    position:absolute;

    width:250px;

    height:250px;

    border-radius:50%;

    background:rgba(255,255,255,.06);

    bottom:-120px;

    right:-80px;

}

.gallery-header h1{

    font-weight:800;

    letter-spacing:1px;

}

.gallery-header p{

    font-size:18px;

    opacity:.95;

}

/*=========================
        SECTION
=========================*/



.gallery-section{
    background:#f6f9fc;
    padding:80px 0;
    min-height:100vh;
}


/*=========================
        FILTER
=========================*/

.gallery-filter{

    display:flex;

    justify-content:center;

    flex-wrap:wrap;

    gap:15px;

    margin-bottom:50px;

}

.gallery-filter .btn{

    background:#fff;

    border:2px solid #0B4C78;

    color:#062741;

    border-radius:50px;

    padding:10px 28px;

    font-weight:600;

    transition:.35s;

}

.gallery-filter .btn:hover,

.gallery-filter .btn.active{

    background:#062741;

    color:#fff;

    transform:translateY(-3px);

    box-shadow:0 10px 25px rgba(6,39,65,.18);

}

/*=========================
    CATEGORY TITLE
=========================*/

.category-title{

    font-size:32px;

    color:#062741;

    font-weight:800;

    margin-bottom:35px;

    padding-bottom:12px;

    border-bottom:4px solid #55ACEE;

    display:inline-block;

}

/*=========================
        CARD
=========================*/

.gallery-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

    transition:.4s;

    height:100%;

    will-change:transform;

    transform:translateZ(0);

}

.gallery-card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 45px rgba(0,0,0,.18);

}

/*=========================
        IMAGE
=========================*/

.gallery-image{
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #eef3f8;
     cursor: pointer;
}

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

.gallery-card{
    will-change: transform;
    transform: translateZ(0);
}

.gallery-image img{
    display: block;
    width: 100%;
}
.gallery-image img{
    backface-visibility: hidden;
}
.gallery-card:hover img{

    transform:scale(1.08);

}

/*=========================
        OVERLAY
=========================*/

.gallery-overlay{
    position: absolute;
    inset: 0;
    background: rgba(6,39,65,.55);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    transition: .35s;

    pointer-events: none;   /* VERY IMPORTANT */
}

.gallery-card:hover .gallery-overlay{

    opacity:1;

}

.gallery-overlay i{

    font-size:55px;

    color:#fff;

    transform:scale(.8);

    transition:.35s;

}

.gallery-card:hover .gallery-overlay i{

    transform:scale(1);

}

/*=========================
        CONTENT
=========================*/

.gallery-content{

    padding:18px;

    text-align:center;

}

.gallery-content h5{

    color:#062741;

    font-weight:700;

    margin:0;

}

/*=========================
    EMPTY STATE
=========================*/

.empty-gallery{

    background:#fff;

    padding:70px;

    border-radius:20px;

    text-align:center;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

}

.empty-gallery i{

    font-size:70px;

    color:#55ACEE;

    margin-bottom:20px;

}

.empty-gallery h3{

    color:#062741;

}

/*=========================
        LIGHTBOX
=========================*/

.lightbox{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.93);

    justify-content:center;

    align-items:center;

    flex-direction:column;

    z-index:99999;

    animation:fadeIn .3s ease;

}

.lightbox img{

    max-width:92%;

    max-height:82vh;

    border-radius:18px;

    box-shadow:0 25px 50px rgba(0,0,0,.45);

    animation:zoom .3s ease;

}

#lightbox-caption{

    color:#fff;

    margin-top:22px;

    font-size:22px;

    font-weight:600;

}

.close-lightbox{

    position:absolute;

    top:25px;

    right:35px;

    font-size:55px;

    color:#fff;

    cursor:pointer;

    transition:.3s;

}

.close-lightbox:hover{

    color:#55ACEE;

    transform:rotate(90deg);

}

/*=========================
        ANIMATIONS
=========================*/

@keyframes zoom{

    from{

        opacity:0;

        transform:scale(.75);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}

@keyframes fadeIn{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

/*=========================
        RESPONSIVE
=========================*/

@media(max-width:992px){

    .gallery-image img{

        height:240px;

    }

}

@media(max-width:768px){

    .gallery-header{

        padding:70px 0;

    }

    .gallery-header h1{

        font-size:2.3rem;

    }

    .gallery-filter{

        gap:10px;

    }

    .gallery-filter .btn{

        padding:8px 18px;

        font-size:14px;

    }

    .gallery-image img{

        height:210px;

    }

    .category-title{

        font-size:26px;

    }

}

@media(max-width:576px){

    .gallery-header{

        padding:60px 0;

    }

    .gallery-image img{

        height:190px;

    }

    .gallery-content{

        padding:14px;

    }

    #lightbox-caption{

        font-size:18px;

    }

}