@media (min-width: 1281px) {
  body .hide-desktop,
  body div > .hide-desktop,
  body  .hide-desktop {
    display: none;
  }
}
@media (min-width: 692px) and (max-width: 1100px) {
  body .hide-tablet,
  body div > .hide-tablet,
  body  .hide-tablet {
    display: none;
  }
}
@media (max-width: 691px) {
  body .hide-mobile,
  body div > .hide-mobile,
  body  .hide-mobile {
    display: none;
  }
}
.animated.slow {
  animation-duration: 2s;
}
.animated.fast {
  animation-duration: 0.7s;
}

/* Gallery styling */
.socialgallery-block-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Adjust as needed */
    gap: 20px;
    padding: 20px;
}

.socialgallery-block-item {
    cursor: pointer;
    width: 100%; /* Ensure each item takes up full width */
}
.socialgallery-block-item img, .socialgallery-block-item video {
	width:100%;
    height: auto;
    display: flex;
    aspect-ratio: 1;
    object-fit: cover;
}
/* Modal styling */
.socialgallery-block-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.socialgallery-block-modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

.socialgallery-block-close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

/* Media query for screens up to 768 pixels wide (typical mobile devices) */
@media only screen and (max-width: 768px) {
    .socialgallery-block-wrapper {
        grid-template-columns: 1fr; /* Set to one column for mobile view */
        padding: 10px;
    }
}


.masonry { /* Masonry container */
  -webkit-column-gap: 1em;
  -moz-column-gap: 1em;
  column-gap: 1em;
   margin: 1.5em;
    padding: 0;
    -moz-column-gap: 1.5em;
    -webkit-column-gap: 1.5em;
    column-gap: 1.5em;
    font-size: .85em;
}
.item {
    display: inline-block;
    background: #fff;
    padding: 1em;
    margin: 0 0 1.5em;
    width: 100%;
    -webkit-transition:1s ease all;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-shadow: 2px 2px 4px 0 #ccc;
}
.item img{max-width:100%;}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.lightbox-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-content .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.lightbox-content .media img,
.lightbox-content .media video {
    max-width: 100%;
    max-height: 60vh;
    margin-bottom: 10px;
}

.lightbox-content .caption {
    font-size: 16px;
    text-align: center;
}

/* Media Queries for different screen sizes */
@media (max-width: 600px) {
    .lightbox-content {
        padding: 10px;
    }

    .lightbox-content .close {
        top: 5px;
        right: 10px;
        font-size: 25px;
    }
}
.socialgallery-block-item.insta-feed-overlay{
    position: relative;
}
.socialgallery-block-item.insta-feed-overlay .gallery-content{
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    background:#2cff006b;
    margin: 0;
    padding: 10px;
    transition: 0.3s;
    opacity: 0;
    visibility: hidden;
}
.socialgallery-block-item.insta-feed-overlay:hover .gallery-content{
    opacity: 1;
    visibility: visible;   
}
