/* Modern Masonry Layout Container */
.masonry-container {
    column-count: 1;
    column-gap: 1.5em;
    width: 100%;
    padding: 1em 0;
}

/* Responsive adjustments for columns */
@media only screen and (min-width: 768px) {
    .masonry-container {
        column-count: 2;
    }
}

@media only screen and (min-width: 992px) {
    .masonry-container {
        column-count: 3;
    }
}

@media only screen and (min-width: 1200px) {
    .masonry-container {
        column-count: 4;
    }
}

/* Ensure cards don't break across columns */
.masonry-container .ui.card {
    display: inline-block;
    width: 100%;
    margin: 0 0 1.5em;
    break-inside: avoid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Modern Hover Effect */
.masonry-container .ui.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15) !important;
    z-index: 10;
}

/* Allow images to have varying heights for masonry effect */
.masonry-container .ui.card .image img {
    height: auto !important;
    width: 100%;
    display: block;
}