/* ---------- Testimonial photo carousel (js/testimonials.js) ---------- */

/* Hide Framer's original ticker cards — replaced by the carousel */
[data-framer-name="Testimonial Section"] [data-framer-name="Testimonial"],
[data-framer-name="Testimonial Section"] [data-framer-name="Featured Testimonial"] { display: none !important; }

.pm-tc {
  --pm-tc-w: 260px;     /* card width  */
  --pm-tc-h: 340px;     /* card height */
  --pm-tc-gap: 20px;
  --pm-tc-speed: 45s;   /* time for one full loop — higher is slower */
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--pm-tc-gap);
  overflow: hidden;
  /* soft fade at the edges */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.pm-tc__row { overflow: hidden; }

.pm-tc__track {
  display: flex;
  gap: var(--pm-tc-gap);
  width: max-content;
  will-change: transform;
  animation: pm-tc-rtl var(--pm-tc-speed) linear infinite;
}
.pm-tc__row--ltr .pm-tc__track { animation-name: pm-tc-ltr; }

/* Track holds two identical halves; moving by exactly half (plus half a gap) loops seamlessly */
@keyframes pm-tc-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - var(--pm-tc-gap) / 2)); }
}
@keyframes pm-tc-ltr {
  from { transform: translateX(calc(-50% - var(--pm-tc-gap) / 2)); }
  to   { transform: translateX(0); }
}

.pm-tc:hover .pm-tc__track { animation-play-state: paused; }

.pm-tc__card {
  flex: none;
  width: var(--pm-tc-w);
  height: var(--pm-tc-h);
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(15, 15, 16, 0.06);
}
.pm-tc__card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.pm-tc__card:hover img { transform: scale(1.05); }

@media (max-width: 809.98px) {
  .pm-tc { --pm-tc-w: 180px; --pm-tc-h: 240px; --pm-tc-gap: 12px; --pm-tc-speed: 35s; }
  .pm-tc__card { border-radius: 16px; }
}

/* Never show a scroll bar — this is a marquee, not a scroller */
.pm-tc, .pm-tc__row { scrollbar-width: none; }
.pm-tc::-webkit-scrollbar, .pm-tc__row::-webkit-scrollbar { display: none; }
