/* Masonry Grid CSS */
.masonry-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -5px; /* Adjust to account for the gaps */
    margin-top: -5px;  /* Adjust to account for the gaps */
}

.masonry-grid-item {
    margin-left: 5px; /* Add gap between columns */
    margin-top: 5px;  /* Add gap between rows */
    width: calc(50% - 5px); /* Adjust width to account for gaps and ensure 4 columns */
    box-sizing: border-box;
}

.masonry-grid-item img {
    width: 100%; /* Ensure the image fills its container */
    height: auto;
    display: block;
    border-radius: 10px; /* Keep the rounded corners */
}

/* Lightbox CSS */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 60px;
    background-color: rgba(0,0,0,0.9);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.lightbox img {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    border-radius: 10px; /* Keep the rounded corners */
}

.lightbox:target {
    display: block;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* //////////////////////////////// IPAD WIDER //////////////////////////////// */  

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


.masonry-grid-item {
    margin-left: 5px; /* Add gap between columns */
    margin-top: 5px;  /* Add gap between rows */
    width: calc(25% - 5px); /* Adjust width to account for gaps and ensure 4 columns */
    box-sizing: border-box;
}

}





