.masonry {
    display: flex;
    width: 100%;
    column-gap:2px !important
}

.masonry--h {
    flex-flow: row wrap;
}

.masonry--v {
    flex-flow: column wrap;
    max-height: 1080px;
}

.masonry--h,
.masonry--v {
    margin-left: -8px;
    /* Adjustment for the gutter */
    counter-reset: brick;
}

.masonry-brick {
    /* overflow: hidden; */
    border-radius: 5px;
    margin: 0 0 2px 2px;
    /* Some Gutter */
    background-color: #333;
    color: white;
    position: relative;
}

.masonry-brick:after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5000;
    transform: translate(-50%, -50%);
    /* counter-increment: brick;
    content: counter(brick); */
    transition: font-size .25s, opacity .25s ease-in-out;
    font-weight: 700;
    opacity: .5;
    font-size: 1.25em;
}

.masonry-brick:hover:after {
    font-size: 2.25em;
    opacity: 1;
}

.masonry-brick--h {
    flex: auto;
    height: 280px;
    min-width: 150px;
}

@media only screen and (min-width: 1024px) {

    /* Horizontal masonry bricks on desktop-sized screen */
    .masonry-brick--h:nth-child(4n+1) {
        width: 333px;
    }

    .masonry-brick--h:nth-child(4n+2) {
        width: 440px;
    }

    .masonry-brick--h:nth-child(4n+3) {
        width: 330px;
    }

    .masonry-brick--h:nth-child(4n+4) {
        width: 490px;
    }

    /* Adjusting vertical masonry height on desktop-sized screen */
    .masonry--v {
        max-height: 1600px;
    }

    /* Vertical masonry bricks on desktop-sized screen */
    .masonry-brick--v {
        width: 33.33333%;
    }
}

@media only screen and (max-width: 1023px) and (min-width: 768px) {

    /* Horizontal masonry bricks on tabled-sized screen */
    .masonry-brick--h:nth-child(4n+1) {
        width: 200px;
    }

    .masonry-brick--h:nth-child(4n+2) {
        width: 250px;
    }

    .masonry-brick--h:nth-child(4n+3) {
        width: 120px;
    }

    .masonry-brick--h:nth-child(4n+4) {
        width: 280px;
    }

    /* Adjusting vertical masonry height on tablet-sized screen */
    .masonry--v {
        max-height: 2000px;
    }

    /* Vertical masonry bricks on tablet-sized screen */
    .masonry-brick--v {
        width: 50%;
    }
}

.masonry-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    /* filter: brightness(50%); */
}
