/* euromarcom Google Reviews 1.0.0 – extends theme slider (.slider / .quote-card), no theme edits */
.quote-text.emgr-text p { margin: 0 0 0.85em; }
.quote-text.emgr-text p:last-child { margin-bottom: 0; }

/* Long reviews: calmer type so the full text stays readable */
.emgr-card.emgr-long .quote-text {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.55;
  letter-spacing: 0;
}
@media (min-width: 960px) {
  .emgr-card.emgr-long .quote-text {
    column-count: 2;
    column-gap: 2.75rem;
    column-rule: 1px solid var(--rule, #D5DCD0);
  }
  .emgr-card.emgr-long .quote-text { font-size: 1.0625rem; }
}
/* Small screens: the full text stays in the card and scrolls inside it, so arrows and dots remain in reach */
@media (max-width: 959.98px) {
  .emgr-card.emgr-long .quote-text {
    max-height: min(26rem, 62vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--soft, #C2CCBE) transparent;
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, #000 82%, transparent);
  }
  .emgr-card.emgr-long .quote-text.emgr-end { -webkit-mask-image: none; mask-image: none; }
  .emgr-card.emgr-long .quote-text:focus-visible { outline: 2px solid var(--focus, #5D7246); outline-offset: 4px; }
}

/* Source marker: subtle, theme colours */
.emgr-source {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
  font-family: var(--sans, system-ui, sans-serif);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted, #6B6560);
}
.emgr-stars { color: var(--olive, #5D7246); letter-spacing: 0.12em; font-size: 0.8125rem; line-height: 1; }
.emgr-hint { margin-left: -0.3rem; }
.emgr-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Auto height: every slide keeps its natural height, the viewport follows the active one */
.slider.emgr-autoheight .slider-track { align-items: flex-start; }
.slider.emgr-autoheight .slider-viewport { transition: height 0.55s var(--ease, cubic-bezier(0.22, 1, 0.36, 1)); }
@media (prefers-reduced-motion: reduce) {
  .slider.emgr-autoheight .slider-viewport { transition: none; }
}
