.gallery {
    padding: 3rem 5%;
    text-align: center;
}

.gallery h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-grid img:hover {
    transform: scale(1.03);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    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;
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

.caption {
    text-align: center;
    color: #ccc;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #4db5ff;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}
