/* ========================================================================
   GM Testimonials
   ======================================================================== */

.gmts-wrap {
  --gmts-gap: 30px;
  position: relative;
}

/*
 * Desktop carousel is intentionally full-bleed. The viewport is exactly the
 * browser width and clips the outer cards, so nothing creates horizontal
 * page scroll.
 */
.gmts-viewport {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding-inline: 0;
  touch-action: pan-y;
}

.gmts-track {
  display: flex;
  gap: var(--gmts-gap);
  will-change: transform;
  transition: transform .5s ease;
  cursor: grab;
}

.gmts-grabbing .gmts-track { cursor: grabbing; }

/*
 * Desktop: three card-widths span the viewport. JavaScript offsets the track
 * by half a card, producing four visible cards: two complete cards in the
 * middle and two half-cards bleeding off the left/right edges.
 */
.gmts-slide {
  flex: 0 0 calc((100vw - (3 * var(--gmts-gap))) / 3);
  min-width: 0;
}

/* Tablet: normal 3-up layout inside the available content width. */
@media (max-width: 1024px) {
  .gmts-viewport {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .gmts-slide {
    flex-basis: calc((100% - (2 * var(--gmts-gap))) / 3);
  }
}

/* Mobile: 1-up. */
@media (max-width: 700px) {
  .gmts-slide { flex-basis: 100%; }
}

/* Individual testimonial shortcode. */
.gmts-single {
  width: 100%;
}

/* Card visuals */
.gmts-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e8ee;
  border-radius: 10px;
  padding: 18px 22px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  width: 100%;
  box-sizing: border-box;
}

.gmts-hd { position: relative; padding-right: 26px; }
.gmts-name { margin: 0 0 2px; font-size: 1.25rem; line-height: 1.3; color: #24344d; font-weight:600;}
.gmts-company { color: #6b7789; font-size: .9rem; margin-bottom: 8px; }

/* Quote mark (only on the right) */
.gmts-q-left { display: none !important; }
.gmts-q-right { font-size: 0; }

.gmts-quote {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: url('/wp-content/uploads/2026/08/quote-icon.svg') no-repeat center center;
  background-size: contain;
  pointer-events: none;
  opacity: 1;
}

.gmts-text { margin: 8px 0 12px; color: #384963; }
.gmts-more { text-decoration: none; font-weight: 600; }
.gmts-more:hover { text-decoration: underline; }

.gmts-stars { display: flex; gap: 6px; }
.gmts-star { fill: #DD837E; }
.gmts-star.is-on { fill: #D73B33; }

/* Controls */
.gmts-ui {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.gmts-prev,
.gmts-next {
  appearance: none;
  border: 1px solid #cfd6df;
  background: #fff;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  line-height: 34px;
  text-align: center;
  font-size: 20px;
  cursor: pointer;
}

.gmts-prev:disabled,
.gmts-next:disabled { opacity: .45; cursor: default; }

.gmts-dots { display: flex; gap: 8px; }
.gmts-dot { width: 8px; height: 8px; border-radius: 50%; background: #cfd6df; border: 0; padding: 0; cursor: pointer; }
.gmts-dot[aria-current="true"] { background: #24344d; }

@media only screen and (max-width:700px) {
  .gmts-quote {
    width: 40px;
    height: 40px;
    opacity: 0.75;
  }
}

/* Continuous marquee */
.gmts-wrap .gmts-track { transition: none; cursor: default; }
.gmts-pause { display: block; margin: 12px auto 0; font-size: .85rem; }
