/* Reviews are readable immediately on load; motion is never required to reveal a card. */
.reviews .google-marquee-wrapper {
  width: min(1320px, calc(100% - 112px));
  margin: 0 auto;
  overflow: visible;
  padding: 4px 0 12px;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}
.reviews .google-marquee-wrapper:focus-visible { outline: 2px solid #e4c38e; outline-offset: 4px; }
.reviews .google-marquee-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  padding: 0;
  animation: none !important;
  transform: none !important;
  will-change: auto;
}
.reviews .google-review-card {
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 238px;
  height: auto;
  padding: 18px 18px 16px;
  border-radius: 11px;
  box-shadow: 0 8px 22px #0002;
}
.reviews .gr-avatar { width: 34px; height: 34px; font-size: 13px; }
.reviews .gr-name { font-size: 13px; }
.reviews .gr-date { font-size: 11px; }
.reviews .gr-stars { font-size: 14px; margin-bottom: 9px; }
.reviews .gr-text { font-size: 13px !important; line-height: 1.48 !important; }
.reviews .gr-footer { padding-top: 8px; }
.reviews .gr-verified { font-size: 11px; }
.showcase-preview .preview-image picture { display: block; width: 100%; height: 100%; }

@media (max-width: 1150px) and (min-width: 701px) {
  .reviews .google-marquee-wrapper { width: min(670px, calc(100% - 80px)); }
  .reviews .google-marquee-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  /* The same scroll-driven scene is used on desktop, tablet and phone. */
  .showcase.motion-ready { height: 480svh; }
  /* Each mobile source contains only the illustrated site's hero. */
  .showcase-preview.niche-professional { --hero-ratio: 900 / 496; }
  .showcase-preview.niche-artisan { --hero-ratio: 900 / 388; }
  .showcase-preview.niche-salon { --hero-ratio: 900 / 501; }
  .showcase-preview.niche-restaurant { --hero-ratio: 900 / 513; }
  .showcase-preview.niche-shop { --hero-ratio: 900 / 463; }
  .showcase-preview .preview-image { aspect-ratio: var(--hero-ratio); }
  .showcase-preview .preview-image img { object-fit: cover; object-position: center top; }
  .showcase.motion-ready .showcase-pin {
    position: sticky;
    top: 76px;
    height: calc(100svh - 76px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    padding: 20px 0 16px;
  }
  .showcase.motion-ready .design-stage {
    position: relative;
    width: calc(100% - 24px);
    max-width: 850px;
    min-height: 0;
    overflow: hidden;
    margin: 0 auto;
  }
  .showcase.motion-ready .design-board.showcase-preview {
    position: absolute;
    inset: auto;
    left: 50%;
    top: 50%;
    width: min(600px, calc(100% - 28px));
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    translate: -50% -50%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 36px #0004;
  }
  .showcase.motion-ready .preview-image {
    width: 100%;
    height: auto;
    aspect-ratio: var(--hero-ratio);
    flex: none;
  }
  .showcase.motion-ready .preview-caption {
    position: relative;
    min-height: 96px;
    flex: none;
    gap: 12px;
    padding: 13px 18px;
  }
  .showcase.motion-ready .preview-caption h3 { font-size: 23px; margin: 6px 0 4px; }
  .showcase.motion-ready .preview-caption p { font-size: 12px; line-height: 1.4; }
  .showcase.motion-ready .showcase-footer { margin-top: 8px; }
}

@media (max-width: 700px) {
  .reviews { padding: 58px 0 70px; }
  .reviews .google-marquee-wrapper {
    width: 100%;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 16px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .reviews .google-marquee-wrapper::-webkit-scrollbar { display: none; }
  .reviews .google-marquee-track {
    display: flex;
    width: max-content;
    gap: 12px;
    padding: 0 20px;
  }
  .reviews .google-review-card {
    flex: 0 0 min(76vw, 280px);
    width: min(76vw, 280px);
    min-height: 232px;
    scroll-snap-align: start;
  }
}

@media (max-width: 360px) {
  .showcase.motion-ready .preview-caption { align-items: flex-start; }
  .showcase.motion-ready .preview-caption h3 { font-size: 20px; }
  .showcase.motion-ready .preview-caption a { font-size: 11px; }
}

@media (max-width: 900px) and (max-height: 620px) {
  .showcase.motion-ready .showcase-pin { padding: 10px 0 8px; }
  .showcase.motion-ready .showcase-heading h2 { font-size: clamp(22px, 4vw, 28px); }
  .showcase.motion-ready .showcase-heading .eyebrow { margin-bottom: 3px; }
  .showcase.motion-ready .design-board.showcase-preview {
    width: min(460px, calc(100% - 28px), calc((100svh - 270px) * 1.5));
  }
  .showcase.motion-ready .preview-caption { min-height: 78px; padding: 8px 12px; }
  .showcase.motion-ready .preview-caption h3 { font-size: 19px; }
  .showcase.motion-ready .preview-caption p { display: none; }
  .showcase.motion-ready .showcase-footer>p { display: none; }
  .showcase.motion-ready .design-controls button { min-height: 36px; }
}

@media (max-width: 900px) and (max-height: 480px) {
  .showcase.motion-ready .showcase-heading { margin-bottom: 4px; }
  .showcase.motion-ready .showcase-heading .eyebrow { display: none; }
  .showcase.motion-ready .showcase-heading h2 { font-size: 22px; line-height: 1.05; }
  .showcase.motion-ready .design-board.showcase-preview {
    width: min(500px, calc(100% - 28px));
    height: calc(100% - 8px);
    max-height: 200px;
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: minmax(0, 1fr);
  }
  .showcase.motion-ready .preview-image { height: 100%; aspect-ratio: auto; }
  .showcase.motion-ready .preview-image img { object-fit: cover; object-position: left top; }
  .showcase.motion-ready .preview-caption {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 10px;
  }
  .showcase.motion-ready .preview-caption h3 { font-size: 18px; }
  .showcase.motion-ready .preview-caption a { min-height: 32px; }
}
