.masonry-gallery {
    column-count: 3;
    column-gap: 16px;
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 16px;
}

.masonry-gallery img {
    width: 100%;
    margin-bottom: 16px;
    cursor: pointer;
    transition: transform 0.3s;
}

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

@media (max-width: 768px) {
    .masonry-gallery {
      column-count: 2;
    }
}

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

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
}

.lightbox .close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}