/* Google Font */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#111;
    color:#fff;
}

/* Header */

header{
    text-align:center;
    padding:40px 20px;
}

header h1{
    font-size:42px;
    margin-bottom:10px;
    color:#00d9ff;
}

header p{
    color:#ccc;
    font-size:18px;
}

/* Filter Buttons */

.buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
    margin-bottom:40px;
}

.buttons button{
    padding:12px 28px;
    border:none;
    outline:none;
    cursor:pointer;
    background:#222;
    color:white;
    border-radius:30px;
    font-size:16px;
    transition:.4s;
}

.buttons button:hover,
.buttons button.active{
    background:#00d9ff;
    color:#111;
    transform:translateY(-3px);
}

/* Gallery */

.gallery{
    width:90%;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
    padding-bottom:50px;
}

.image{
    overflow:hidden;
    border-radius:15px;
    cursor:pointer;
    box-shadow:0 10px 20px rgba(0,0,0,.5);
}

.image img{
    width:100%;
    height:250px;
    object-fit:cover;
    transition:.5s;
}

.image:hover img{
    transform:scale(1.12);
}

/* Lightbox */

.lightbox{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.95);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999;
}

.lightbox img{
    width:80%;
    max-width:900px;
    border-radius:15px;
    box-shadow:0 0 25px rgba(255,255,255,.3);
}

.close{
    position:absolute;
    top:30px;
    right:40px;
    color:white;
    font-size:45px;
    cursor:pointer;
}

.prev,
.next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    color:white;
    font-size:45px;
    cursor:pointer;
    transition:.3s;
}

.prev{
    left:40px;
}

.next{
    right:40px;
}

.prev:hover,
.next:hover,
.close:hover{
    color:#00d9ff;
}

/* Footer */

footer{
    text-align:center;
    padding:25px;
    background:#000;
    color:#bbb;
    font-size:15px;
}

/* Responsive */

@media(max-width:768px){

header h1{
    font-size:32px;
}

header p{
    font-size:16px;
}

.lightbox img{
    width:95%;
}

.prev,
.next{
    font-size:35px;
}

.close{
    font-size:35px;
}

.buttons{
    gap:10px;
}

.buttons button{
    padding:10px 18px;
}

}

@media(max-width:480px){

.gallery{
    grid-template-columns:1fr;
}

.image img{
    height:220px;
}

header h1{
    font-size:28px;
}

header p{
    font-size:14px;
}

}