.gallery-section{
    width:90%;
    margin:auto;
    padding-bottom:60px;
}

.gallery-title{
    text-align:center;
    margin-bottom:40px;
}

.gallery-title h1{
    font-size:42px;
    color:#222;
    margin-bottom:10px;
}

.gallery-title p{
    color:#666;
    font-size:16px;
}

.filter-buttons{
    text-align:center;
    margin-bottom:40px;
}

.filter-buttons button{
    padding:12px 25px;
    margin:5px;
    border:none;
    background:#111;
    color:#fff;
    cursor:pointer;
    border-radius:5px;
    transition:0.3s;
    font-size:15px;
}

.filter-buttons button:hover,
.filter-buttons .active{
    background:#ee1935;
}

.gallery-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
}

.gallery-item{
    position:relative;
    overflow:hidden;
    border-radius:12px;
    cursor:pointer;
}

.gallery-item img{
    width:100%;
    height:300px;
    object-fit:cover;
    transition:0.5s;
    display:block;
}

.gallery-item:hover img{
    transform:scale(1.1);
}

.overlay{
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    transition:0.4s;
}

.gallery-item:hover .overlay{
    opacity:1;
}

.overlay h3{
    color:#fff;
    font-size:24px;
}

.lightbox{
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.9);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999;
}

.lightbox img{
    width:80%;
    max-width:900px;
    border-radius:10px;
}

.close-btn{
    position:absolute;
    top:30px;
    right:40px;
    color:#fff;
    font-size:40px;
    cursor:pointer;
}

@media(max-width:768px){

.gallery-title h1{
    font-size:32px;
}

.gallery-item img{
    height:220px;
}

}