body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    background: #f4f4f4;
}

h1 {
    margin: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
}

.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
}

/* Hover Effect */
.gallery img:hover {
    transform: scale(1.05);
    filter: brightness(80%);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    padding: 10px;
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    color: white;
}

.prev { left: 20px; }
.next { right: 20px; }

/* Responsive */
@media (max-width: 600px) {
    .lightbox img {
        max-width: 95%;
    }
}