.deensimc-media-carousel {
  container-type: inline-size;
  container-name: carousel;
  --deensimc-media-width: 50cqi;
  --deensimc-media-overlay: rgba(0, 0, 0, 0.5);

  overflow: hidden;
  width: 100%;
  position: relative;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
.deensimc-media-carousel .deensimc-carousel-item-wrapper {
  display: flex;
  align-items: center;
  justify-content: start;
  transform: translateX(calc(var(--deensimc-media-width) / 2 * -1));
  width: fit-content;
}

.deensimc-media-carousel .deensimcpro-marquee-media {
  transform: scale(0.9);
  position: relative;

  .deensimcpro-figure-wrapper::after {
    transition: inherit;
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--deensimc-media-overlay);
    pointer-events: none;
  }
}

.deensimc-media-carousel .deensimcpro-figure-wrapper {
  position: relative;
  width: var(--deensimc-media-width);
  aspect-ratio: 16/9;
  overflow: hidden;
}

.deensimc-media-carousel .deensimcpro-media-marquee-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.deensimc-media-carousel .deensimcpro-marquee-media.deensimc-media-active {
  transform: scale(1);
  .deensimcpro-figure-wrapper::after {
    background-color: transparent;
  }
}

@media screen and (max-width: 767.98px) {
  .deensimc-media-carousel {
    --deensimc-media-width: 100cqi;
  }
  .deensimc-media-carousel .deensimc-carousel-item-wrapper {
    transform: translateX(calc(var(--deensimc-media-width) * -1));
  }
}
.deensimc-media-carousel-pagination {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}

.deensimc-carousel-dot {
  width: var(
    --swiper-pagination-bullet-width,
    var(--swiper-pagination-bullet-size, 8px)
  );
  height: var(
    --swiper-pagination-bullet-height,
    var(--swiper-pagination-bullet-size, 8px)
  );
  display: inline-block;
  border-radius: 50%;
  background: var(--swiper-pagination-bullet-inactive-color, #000);
  opacity: var(--swiper-pagination-bullet-inactive-opacity, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.deensimc-carousel-dot.active {
  opacity: var(--swiper-pagination-bullet-opacity, 1);
  background: var(--swiper-pagination-color, var(--swiper-theme-color));
}
