/* Carousel for Google Review Style Images */
.carousel-google-review {
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  padding: 2rem 1rem;
  overflow: hidden;
}
/* Show only one review at a time, center image */
.carousel-google-review .carousel-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  overflow: hidden;
  width: 100%;
  position: relative;
  height: 260px; /* consistent height */
  gap: 0;
  z-index: 0;
  padding: 0; /* ensure no inner padding causes peek */
}
.carousel-google-review .carousel-item {
  flex: 0 0 100%; /* one item per view */
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  height: 100%;
  overflow: hidden;
}
.carousel-google-review .carousel-item .card-bg { /* create solid card background */
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-google-review img {
  display: block;
  width: auto;
  height: 200px;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: none;
  object-fit: contain;
}

/* Strong override: ensure single item per view across all breakpoints */
.carousel-google-review .carousel-item {
  flex: 0 0 100% !important;
  min-width: 100% !important;
}

/* Large screen: show 3-up and slide by 1 */
@media (min-width: 1100px) {
  .carousel-google-review .carousel-item {
    flex: 0 0 33.333%;
    min-width: 33.333% !important;
  }
  .carousel-google-review .carousel-inner { height: 300px; }
  .carousel-google-review img { height: 240px; }
}

/* Arrow styles */
.carousel-google-review .carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.carousel-google-review .carousel-arrow.prev { left: 8px; }
.carousel-google-review .carousel-arrow.next { right: 8px; }

/* Entrance animation for the visible slide's image */
.carousel-google-review .carousel-item img {
  transform: scale(0.92);
  opacity: 0.75;
  transition: transform 450ms cubic-bezier(.2,.8,.2,1), opacity 360ms ease;
}
.carousel-google-review .carousel-item img.entered {
  transform: scale(1);
  opacity: 1;
}

/* Responsive sizes */
@media (max-width: 480px) {
  .carousel-google-review { padding: 1rem; }
  .carousel-google-review .carousel-inner { height: 180px; }
  .carousel-google-review img { height: 140px; }
}
@media (min-width: 481px) and (max-width: 900px) {
  .carousel-google-review { padding: 1.25rem; }
  .carousel-google-review .carousel-inner { height: 220px; }
  .carousel-google-review img { height: 170px; }
}
@media (min-width: 901px) {
  .carousel-google-review .carousel-inner { height: 260px; }
  .carousel-google-review img { height: 200px; }
}
@media (max-width: 768px) {
  .carousel-google-review .carousel-item {
    flex: 0 0 50%;
  }
}
@media (max-width: 480px) {
  .carousel-google-review .carousel-item {
    flex: 0 0 100%;
  }
}
/* Hide dots for more than 20 images or always if not needed */
.carousel-google-review .carousel-controls {
  display: none !important;
}
