/* styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    text-align: center;
    margin: 20px 0;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

.gallery img {
    width: 320px;
    height: 216px;
    object-fit: cover;
    border: 1px solid #ccc;
    transition: transform 0.2s;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gallery {
        gap: 8px;
    }

    .gallery img {
        width: 240px;
        height: 195px;
    }
}

@media (max-width: 768px) {
    .gallery {
        gap: 6px;
    }

    .gallery img {
        width: 180px;
        height: 146px;
    }
}

@media (max-width: 480px) {
    .gallery {
        gap: 4px;
    }

    .gallery img {
        width: 120px;
        height: 98px;
    }
}
