body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #111;
    color: white;
    text-align: center;
}


h1 {
    font-family: 'Playfair Display', serif;
    margin: 20px 0;
    font-size: 2.5em;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.4s, filter 0.4s;
}

.gallery img:hover {
    transform: scale(1.05);
    filter: brightness(80%);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
}

.prev, .next {
    position: absolute;
    top: 50%;
    background: none;
    color: white;
    font-size: 40px;
    border: none;
    cursor: pointer;
}

.prev { left: 30px; }
.next { right: 30px; }

#filter-btn {
    margin: 10px;
    padding: 10px 20px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

#filter-btn:hover {
    background: #555;
}

.gallery.grayscale img {
    filter: grayscale(100%);
}

/* Responsive enhancements */
@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .gallery img {
        height: 150px;
    }

    .prev, .next {
        font-size: 30px;
    }

    .close {
        font-size: 25px;
    }
}
