.dlInstaFeedGrid .dlInstaFeedScrollWrapper{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.dlInstaFeedItem {
  position: relative;
  overflow: hidden;
  /* border-radius: 10px; */
  background-color: #fff;
  height: auto;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  will-change: transform;
}
.dlInstaFeedImageBox {
  position: relative;
  width: 100%;
  height: 100%;
}
.dlInstaFeedImageBox img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.dlInstaFeedOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 25px;
  background-color: #004B96;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.dlInstaFeedImageBox:hover img {
  /* transform: scale(1.05); */
}
.dlInstaFeedImageBox:hover .dlInstaFeedOverlay {
  opacity: 1;
}
.dlInstaFeedLike {
  /* font-size: 1.2rem;
  font-weight: bold; */
  margin-bottom: 20px;
  display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        gap: 15px;
}
.dlInstaFeedLike img{
    object-fit: contain;
    width: 24.1px;
    height: 21px;
}
.dlInstaFeedOverlay p {
  /* font-size: 1rem;
  line-height: 1.5; */
  margin: 0;
  max-width: 100%;
}
.dlInstaFeedButtonWrapper {
  text-align: center;
}
/* #dlLoadMoreBtn {
  padding: 12px 24px;
  background-color: white;
  color: #007bff;
  border: 2px solid #ffffff;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
} */
/* #dlLoadMoreBtn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: #fff;
} */

/* Hide items initially */
.hidden {
  /* display: none; */
}

.dlInstaFeedItem.hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    /* display: none; */
    will-change: opacity;
    position: absolute;
}

.dlInstaFeedItem.visible{
    /* display: block; */
    visibility: visible;
    opacity: 1;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    position: static;
}
.dlLoadMoreButton.disabled {
    pointer-events: none;
    opacity: 0.5;
}
.dlInstaFeedOverlayInner{
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}
.dlInstaFeedOverlayInner span{
    position: absolute;
    display: block;
    top: -10px;
    right: -10px;
}
.dlInstaFeedOverlayInner span svg{
    width: 26px;
    height: 26px;
    display: inline-block;
}
.dlInstaFeedOverlayInner span svg{
    fill: #ffffff
}
.dlInstaFeedImageBox .dlInstaFeedOverlay .dlInstaFeedOverlayInner{
    transition: transform .55s ease;
    transform: translateY(10px);
}
.dlInstaFeedImageBox:hover .dlInstaFeedOverlay .dlInstaFeedOverlayInner{
    transform: translateY(0px);
}
/* .swiper-container {
    width: 100%;
    padding: 10px 0;
}
.swiper-slide {
    width: auto;
} */

.dlInstaFeedGrid .dlInstaFeedScrollWrapper.dl-slider-loading  {
    visibility: hidden;
    opacity: 0;
    /* transition: none; */
}
.dlInstaFeedGrid .dlInstaFeedScrollWrapper.dl-slider-loaded {
    visibility: visible !important;
    opacity: 1 !important;
    /* transition: opacity 0.3s ease-in-out; */
}

.dlInstaFeedImageBox video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
    pointer-events: none;
}

@media screen and (min-width:1025px){
    .dlInstaFeedGrid .dlInstaFeedScrollWrapper{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        margin-bottom: 50px;
        visibility: hidden;
        opacity: 0;
        transition: none;
        min-height: 295px;
    }

    .dlInstaFeedItem:nth-child(1){
        transform: translateY(160px) translateX(30px);
    }
    .dlInstaFeedItem:nth-child(2){
        transform: translateY(-265px) translateX(-340px);
    }
    .dlInstaFeedItem:nth-child(3){
        transform: translateY(150px) translateX(260px);
    }
    .dlInstaFeedItem:nth-child(4){
        transform: translateY(-270px) translateX(10px);
    }
    /* Final state after scrolling into view */
    .dlInstaFeedItem.in-view {
        transform: translateY(0px) translateX(0px) !important;
        opacity: 1;
        transition: all 0.5s ease-in-out;
        will-change: transform, opacity;
        transition-delay: 0.5s;
    }
    .dlInstaFeedButtonWrapper {
        opacity: 0;
        pointer-events: none;
        transform: translateY(50px);
        /* transition-delay: 0.8s; */
      }
      .dlInstaFeedButtonWrapper.in-view {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0px);
        transition: opacity 1s ease-in-out, transform 1s ease-in-out;
      }
      .dl-social-feed-content {
        transform: translateY(25vh); /* pushed downward toward vertical center */
        will-change: transform;
      }
      .dl-social-feed-content.in-view {
        opacity: 1;
        transform: translateY(0);
        transition: transform 0.8s ease;
        transition-delay: 0.8s
      }

      .dlInstaFeedGrid .dlInstaFeedScrollWrapper.dl-slider-loading  {
          transition: none;
      }
      .dlInstaFeedGrid .dlInstaFeedScrollWrapper.dl-slider-loaded {
          transition: opacity 0.3s ease-in-out;
      }
}
@media screen and (max-width:1200px) and (min-width:1025px){
    .dlInstaFeedGrid .dlInstaFeedScrollWrapper{
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .dlInstaFeedItem:nth-child(4){
        transform: translateY(0px) translateX(0px);
    }
}
@media screen and (max-width:1024px){
    .dlInstaFeedGrid .dlInstaFeedScrollWrapper{
        display: flex;
      }
}
@media screen and (max-width:768px){
    
}
@media screen and (max-width:640px){
   
}


