/*
 * cityscape-fixes.css: small overrides loaded after child-theme.min.css.
 * Kept separate so they survive a re-compile of the theme's Sass.
 */

/* Testimonial carousel ("From Our Clients")
 * 1. Stack every slide in one grid cell, so the box is always as tall as the longest quote
 *    and the page below no longer jumps when the quote changes.
 * 2. Fade through: the outgoing quote fades out, then the next fades in, so two quotes never
 *    overlap (Bootstrap's default keeps the old one fully visible under the new one, then snaps it away).
 */
#carousel-testimony .carousel-inner {
  display: grid;
}
#carousel-testimony .carousel-item {
  display: block;
  grid-area: 1 / 1;
  align-self: center;
  float: none;
  margin-right: 0;
  transform: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease-in-out, visibility 0s linear 0.45s;
}
#carousel-testimony .carousel-item.active,
#carousel-testimony .carousel-item-next.carousel-item-start,
#carousel-testimony .carousel-item-prev.carousel-item-end {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease-in-out 0.45s, visibility 0s linear 0s;
}
#carousel-testimony .active.carousel-item-start,
#carousel-testimony .active.carousel-item-end {
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease-in-out, visibility 0s linear 0.45s;
}
@media (prefers-reduced-motion: reduce) {
  #carousel-testimony .carousel-item {
    transition: none !important;
  }
}
