/**
 * @author    PrestaChamps <support@prestachamps.com>
 * @copyright PrestaChamps
 * @license   Proprietary
 */
/* All slides share one aspect ratio (set via --pch-ar-* custom props) so the
   carousel height never jumps between slides; images fill it with object-fit. */
.pch-imageslider .carousel-item {
  aspect-ratio: var(--pch-ar-d, 16 / 9);
}

.pch-imageslider .carousel-link,
.pch-imageslider .carousel-content {
  display: block;
  height: 100%;
  margin: 0;
}

.pch-imageslider .carousel-item picture {
  display: block;
  height: 100%;
}

.pch-imageslider .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .pch-imageslider .carousel-item {
    aspect-ratio: var(--pch-ar-m, var(--pch-ar-d, 4 / 5));
  }
}

.pch-imageslider .carousel-caption.caption {
  --slider-text-color: #fff;
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  padding: 0.75rem 1.25rem;
  border-radius: 0.25rem;
}

.pch-imageslider .carousel-caption.caption h2,
.pch-imageslider .carousel-caption .caption-description {
  color: var(--slider-text-color);
}

.pch-imageslider .carousel-caption .caption-description {
  font-size: 1rem;
}

/* Prev/next arrows visibility ("Navigation arrows" setting). Touch users swipe,
   so "hidden" (default) and "pointer" both hide them; "pointer" restores them
   only on fine-pointer (mouse) devices. "always" leaves the theme default. */
.pch-imageslider.pch-controls-hidden .carousel-control,
.pch-imageslider.pch-controls-pointer .carousel-control,
.pch-imageslider.pch-controls-hover .carousel-control {
  display: none;
}

@media (pointer: fine) {
  .pch-imageslider.pch-controls-pointer .carousel-control,
  .pch-imageslider.pch-controls-hover .carousel-control {
    display: flex;
  }
}
