.insta-carousel-container {
  position: relative;
  overflow: hidden;
}
.insta-carousel {
  display: flex;
  gap: 15px;
  transition: transform 0.4s ease;
}
.insta-carousel-item {
  flex: 0 0 calc(100% / 5 - 10px);
  position: relative;
  cursor: pointer;
}
.insta-carousel-item img,
.insta-carousel-item video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}
.insta-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  font-size: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
}
.insta-play-btn.clicked {
  transform: scale(0.95);
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.insta-nav-buttons {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none; /* Allow clicks to pass through */
}
.insta-nav-buttons button {
  pointer-events: all; /* Enable button click */
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 18px;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

/* Popup */
.insta-video-popup {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.insta-video-wrapper {
  position: relative;
  display: inline-block;
}

.insta-video-popup video {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 10px;
  display: block;
}
.insta-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  overflow: hidden;
}
.insta-progress {
  height: 100%;
  width: 0%;
  background: #fff;
}
.insta-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .insta-carousel-item {
     flex: 0 0 calc(100% / 2 - 4px);
  }
  .insta-carousel {
gap: 8px;
}
.insta-nav-buttons svg{
  height: 18px;
  width: 18px;
}
}




.n-b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%);
  font-size: 20px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  border-radius: 50%;
  padding: 10px;
  cursor: pointer;
}
.n-b {
  transform: scale(0.95);
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}



/* image and video slider */
.celeb-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.celeb-carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.celeb-carousel-item {
  flex: 0 0 calc(100% / 3);
  box-sizing: border-box;
  padding: 5px;
  cursor: pointer;
}

.celeb-popup-content .celeb-carousel-item{
  flex: 100%;
}
.celeb-popup-content .celeb-media-display img, .celeb-popup-content .celeb-media-display video{
max-height: 100%;
}

.celeb-carousel-item video,
.celeb-carousel-item img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
}

.celeb-carousel-btn {
  /* position: absolute; */
    width: 40px;
    height: 40px;
    /* top: -10%; */
    display: flex;
    justify-content: center;
    align-items: center;
    /* transform: translateY(-50%); */
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    margin: 0 4px;
}

.celeb-prev-btn { left: 0; border-radius: 8px; }
.celeb-next-btn { right: 0; border-radius: 8px; }

.celeb-media-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.celeb-icon-overlay {
  position: absolute;
  top: 40%;
  left: 40%;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  border-radius: 50px;
  color: white;
  font-size: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celeb-icon-overlay i.fa-play::before {
  content: "\f04b"; /* Font Awesome play icon */
}

.celeb-icon-overlay i.fa-image::before {
  content: "\f03e"; /* Font Awesome image icon */
}

.celeb-progress-inside {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  background: white;
  width: 0%;
  z-index: 2;
  transition: width linear;
}

.celeb-media-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}

.celeb-popup-content {
  position: relative;
  width: 100%;
  max-width: 400px !important;;
}

.celeb-media-display img,
.celeb-media-display video {
  width: 100%;
  max-height: 80vh;
}

.celeb-close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.751);
  padding: 10px;
  height: 50px;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

.celeb-popup-nav {
  position: absolute;
  top: 50%;
  z-index: 999;
  transform: translateY(-50%);
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.celeb-popup-nav.celeb-prev { left: -40px; }
.celeb-popup-nav.celeb-next { right: -40px; }

@media (max-width: 768px) {
  .celeb-carousel-item {
    flex: 0 0 calc(100% / 2);
  }
  .celeb-popup-nav{
    left: 0;
    right: 0;
  }
  .celeb-popup-nav.celeb-prev{
    left: -80%;
  }
  .celeb-popup-nav.celeb-next{
    right: -80%;
  }
}