.masonry-grid {
    column-count: 2;
    column-gap: 15px;
    margin-top: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
}

.masonry-item img {
    cursor: pointer;
    transition: 0.3s;
}

.masonry-item img:hover {
    opacity: 0.8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #000000;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
}

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


