/* ── Slider transitions ── */
section.testimonials .wp-block-group .wp-block-group__inner-container {
  display: grid;
  position: relative;
}
section.testimonials .wp-block-media-text {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  pointer-events: none;
}
section.testimonials .wp-block-media-text.active {
  opacity: 1;
  pointer-events: auto;
}

.testimonials .wp-block-media-text.slide-out img{
  animation: ImgOut 0.4s ease-out forwards;
}
.testimonials .wp-block-media-text.slide-in img{
  animation: ImgIn 0.4s ease-out forwards;
}
.testimonials .wp-block-media-text.slide-out .wp-block-media-text__content{
  animation: TxtOut 0.4s ease-out forwards;
}
.testimonials .wp-block-media-text.slide-in .wp-block-media-text__content{
  animation: TxtIn 0.4s ease-out forwards;
}

@keyframes ImgOut {
  from { opacity: 1; scale: 1 }
  to   { opacity: 0; scale: 0.95 }
}
@keyframes ImgIn {
  from { opacity: 0; scale: 0.95 }
  to   { opacity: 1; scale: 1 }
}

@keyframes TxtOut {
  from { opacity: 1; translate: 0 0 }
  to   { opacity: 0; translate: 0 -1rem }
}
@keyframes TxtIn {
  from { opacity: 0; translate: 0 1rem }
  to   { opacity: 1; translate: 0 0 }
}

/* ── Dots ── */
.testimonial-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
}

@media(max-width: 600px){
  .testimonial-dots {
    justify-content: center;
  }
}
@media(min-width: 800px){
  .testimonial-dots {
    margin-top: 0;
    position: absolute;
    bottom: 0;
    left: calc(50% + 4rem);
  }
}

.testimonial-dots button {
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  background: rgba(0, 0, 0, 0.15);
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.testimonial-dots button.active {
  background: var(--w-fg, #191c20);
  width: 16px;
  height: 16px;
}
