/* google-reviews.css — spójny wygląd kart Google + twarde ograniczenia rozmiaru */

/* Karta Google zachowuje się tak jak JPG: maska i zaokrąglenie */
.testimonials-slider .item[data-source="google"] .client-row,
.testimonials-slider .item[data-source="google"] .client-row > a{
  border-radius: 16px !important;
  overflow: hidden !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Tekst jak w innych kartach */
.testimonials-slider .item[data-source="google"] .testimonial-content{
  color:#fff;
  text-align:left;
  max-width: 100%;
  overflow: hidden;
}
.testimonials-slider .item[data-source="google"] .google-preview{
  text-align:left;
  display:block;
  max-height:6.4em; /* ~4 linie */
  overflow:hidden;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.testimonials-slider .item[data-source="google"] .google-meta{
  display:block;
  margin-top:6px;
  font-size:.85rem;
  color: rgba(255,255,255,0.9);
}

/* ——— HARD CAP: żadna karta Google nie może się „rozepchać” ——— */
.testimonials-slider .item[data-source="google"]{
  max-width: 100% !important;
}
.testimonials-slider .item[data-source="google"] .testimonial-item{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.testimonials-slider .item[data-source="google"] .client-row{
  height: 220px !important;
  aspect-ratio: 3 / 2 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius: 16px !important;
  overflow:hidden !important;
}

/* Obraz musi się zmieścić w slocie */
.testimonials-slider .item[data-source="google"] .thumb-rect.google-static{
  display:block !important;
  width:auto !important;
  height:100% !important;
  max-height:100% !important;
  max-width:none !important;
  object-fit:cover !important;
  object-position:center center !important;
  border-radius:inherit !important;
  image-rendering:auto !important;
  backface-visibility:hidden !important;
  transform:translateZ(0) !important;
}

/* (opcjonalnie) mocniejsze cięcie preview do 4 linii na małych ekranach */
@media (max-width: 576px){
  .testimonials-slider .item[data-source="google"] .google-preview{
    display:-webkit-box;
    -webkit-line-clamp:4;
    -webkit-box-orient:vertical;
  }
}

/* chowamy licznik / legacy */
.mfp-counter, .ref-progress{ display:none !important; visibility:hidden !important; opacity:0 !important; }
