.related-posts-carousel .splide {
  width: 100%;
  min-width: 0;
  container-type: inline-size;
}

.related-posts-carousel .splide__slide {
  opacity: .34;
  transition: opacity .32s ease;
}

.related-posts-carousel .splide__slide.is-active {
  opacity: 1;
}

.related-posts-carousel .splide__slide > .related-posts-card {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
}

.related-posts-carousel .splide--rtl .splide__slide {
  aspect-ratio: 3 / 2;
}

@media (prefers-reduced-motion: reduce) {
  .related-posts-carousel .splide__slide { transition: none; }
}

@media (min-width: 768px) {
  .related-posts-carousel {
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 32%,
      #000 65%,
      transparent 100%
    ) !important;

    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      #000 32%,
      #000 65%,
      transparent 100%
    ) !important;

    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-size: 100% 100% !important;
    mask-size: 100% 100% !important;
  }

  .related-posts-carousel .splide__slide {
    opacity: 1 !important;
  }
}
