﻿/* Masonry container using CSS columns */
.masonry-layout {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 576px) {
    .masonry-layout {
        column-count: 2;
    }
}

@media (min-width: 768px) {
    .masonry-layout {
        column-count: 3;
    }
}

/* Prevent increasing columns beyond 3 */
@media (min-width: 1200px) {
    .masonry-layout {
        column-count: 3;
    }
}

/* Media items in masonry */
.masonry-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

    .masonry-item video {
        max-width: 100%;
        height: auto;
        border-radius: 0.5rem;
    }

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

    .lightbox img {
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 0.5rem;
        box-shadow: 0 2px 12px rgba(0,0,0,0.6);
    }
