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

.gallery-section {
    padding: 100px 0;
    background: #f7f9ff;
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h2 {
    font-size: 42px;
    font-weight: 800;
    color: #0f43b8;
}

.gallery-header h2 span {
    color: #3478f6;
}

.gallery-header p {
    color: #666;
    margin-top: 10px;
}

/* FILTER */

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.gallery-filters button {
    padding: 10px 18px;
    border: none;
    background: #fff;
    color: #0f43b8;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: .3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.gallery-filters button:hover,
.gallery-filters button.active {
    background: #0f43b8;
    color: #fff;
}

/* GRID */

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

/* ITEM */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: .4s;
}

/* hover zoom */

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

/* overlay */

.overlay{
    position:absolute;
    inset:0;
    background:rgba(15,67,184,.65);

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

    opacity:0;
    transition:.35s;
}

.overlay i{

    width:70px;
    height:70px;

    border-radius:50%;

    background:#fff;

    color:#0f43b8;

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

    font-size:24px;

    transform:scale(.6);
    transition:.35s;
}

.gallery-item:hover .overlay{
    opacity:1;
}

.gallery-item:hover .overlay i{
    transform:scale(1);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/*==========================
        GALLERY MODAL
==========================*/

.gallery-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.9);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:.35s;
    z-index:99999;
    padding:40px;
}

.gallery-modal.active{
    opacity:1;
    visibility:visible;
}

.gallery-modal img{
    max-width:90%;
    max-height:90vh;
    border-radius:12px;
    transform:scale(.8);
    transition:.35s;
    box-shadow:0 25px 70px rgba(0,0,0,.4);
}

.gallery-modal.active img{
    transform:scale(1);
}

.gallery-close{
    position:absolute;
    top:25px;
    right:35px;
    color:#fff;
    font-size:40px;
    cursor:pointer;
    transition:.3s;
}

.gallery-close:hover{
    transform:rotate(90deg);
    color:#3478f6;
}

/* RESPONSIVE */

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

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