
/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, sans-serif;
    background:#f8f9fb;
    color:#222;
    overflow-x:hidden;
}

/* =========================
   SECTION
========================= */
.gallery-section{
    padding:20px 20px 50px 20px;
}

.container{
    max-width:1300px;
    margin:auto;
}

/* =========================
   HEADING
========================= */
.section-heading{
    text-align:center;
    margin-bottom:50px;
}

.section-heading h2{
    font-size:42px;
    margin-bottom:12px;
}

.section-heading p{
    color:#666;
    font-size:16px;
}

/* =========================
   FILTER BUTTONS
========================= */
.filter-buttons{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:50px;
}

.filter-btn{
    background: none;
    border: none;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.filter-btn:hover{
        color: #000;
    border-bottom: 1px solid #000;
}

.filter-btn.active{
   color: #000;
    border-bottom: 1px solid #000;
}

/* =========================
   GALLERY GRID
========================= */
.gallery-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

/* =========================
   GALLERY ITEM
========================= */
.gallery-item{
    background:#fff;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.06);
    transition:0.4s ease;
    cursor:pointer;
    opacity:1;
    transform:scale(1);
}

.gallery-item.hide{
    display:none;
}

.gallery-item:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,0.12);
}

/* =========================
   IMAGE
========================= */
.gallery-image{
    width:100%;
    height:280px;
    overflow:hidden;
}

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

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

/* =========================
   CONTENT
========================= */
.gallery-content{
    padding:18px;
}

.gallery-content h3{
    font-size:15px;
    font-weight:400;
}

/* =========================
   LIGHTBOX
========================= */
.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.94);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    visibility:hidden;
    transition:0.4s ease;
    z-index:9999;
    padding:20px;
}

.lightbox.active{
    opacity:1;
    visibility:visible;
}

.lightbox img{
    max-width:90%;
    max-height:85vh;
    animation:zoomIn 0.4s ease;
}

/* =========================
   LIGHTBOX CLOSE
========================= */
.lightbox-close{
    position:absolute;
    top:25px;
    right:30px;
    color:#fff;
    font-size:42px;
    cursor:pointer;
    transition:0.3s ease;
    z-index:20;
}

.lightbox-close:hover{
    transform:rotate(90deg);
}

/* =========================
   LIGHTBOX BUTTONS
========================= */
.lightbox-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,0.12);
    color:#fff;
    font-size:28px;
    cursor:pointer;
    transition:0.3s ease;
    backdrop-filter:blur(6px);
    z-index:10;
}

.lightbox-btn:hover{
    background:#fff;
    color:#111;
}

.lightbox-btn.prev{
    left:30px;
}

.lightbox-btn.next{
    right:30px;
}

/* =========================
   ANIMATION
========================= */
@keyframes zoomIn{
    from{
        opacity:0;
        transform:scale(0.8);
    }
    to{
        opacity:1;
        transform:scale(1);
    }
}

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

@media(max-width:1100px){

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

}

@media(max-width:768px){

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

    .section-heading h2{
        font-size:32px;
    }

    .gallery-image{
        height:240px;
    }

    .lightbox-btn{
        width:45px;
        height:45px;
        font-size:22px;
    }

    .lightbox-btn.prev{
        left:15px;
    }

    .lightbox-btn.next{
        right:15px;
    }

}

@media(max-width:540px){

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

    .gallery-image{
        height:260px;
    }

    .section-heading h2{
        font-size:28px;
    }

    .section-heading p{
        font-size:14px;
    }

    .lightbox img{
        max-width:100%;
    }

}
