/* Ecoterm Review Gallery Fix 1.0.0 — scoped to 2GIS review area only. */
.ecsuite-2gis-reviews.ec-reviewfix-enhanced {
  display:grid !important;
  grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr) !important;
  gap:clamp(18px,2.5vw,32px) !important;
  align-items:center !important;
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}
.ec-reviewfix-enhanced .ecsuite-2gis-reviews__copy {min-width:0;}
.ecsuite-2gis-reviews__media.ec-reviewfix-media {
  display:flex !important;
  flex-direction:column;
  gap:10px;
  grid-template-columns:none !important;
  min-width:0;
  width:100%;
  max-width:100%;
  overflow:hidden;
  align-self:stretch;
  box-sizing:border-box;
}
.ec-reviewfix-track {
  display:flex !important;
  gap:14px;
  width:100%;
  min-width:0;
  min-height:0;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:contain;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scroll-padding-inline:3px;
  scrollbar-width:thin;
  scrollbar-color:#cbd4bb transparent;
  padding:3px 3px 10px;
  box-sizing:border-box;
  -webkit-overflow-scrolling:touch;
}
.ec-reviewfix-track:focus-visible {outline:2px solid #88b543;outline-offset:-2px;border-radius:10px;}
.ecsuite-2gis-review-shot.ec-reviewfix-card {
  flex:0 0 clamp(235px,55%,330px) !important;
  width:auto !important;
  max-width:calc(100% - 2px) !important;
  height:auto !important;
  min-width:0 !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:space-between;
  scroll-snap-align:start;
  background:#fff !important;
  border:1px solid #dfe5d7 !important;
  border-radius:14px !important;
  padding:8px !important;
  box-sizing:border-box;
  overflow:hidden !important;
  color:#343a30;
  text-decoration:none !important;
  box-shadow:none !important;
  transform:none !important;
  transition:border-color .2s ease,box-shadow .2s ease;
}
.ecsuite-2gis-review-shot.ec-reviewfix-card:hover,
.ecsuite-2gis-review-shot.ec-reviewfix-card:focus-visible {
  border-color:#91bd4b !important;
  box-shadow:0 7px 22px rgba(38,48,28,.07) !important;
}
.ec-reviewfix-frame {
  display:grid;
  place-items:center;
  width:100%;
  height:340px;
  min-height:0;
  box-sizing:border-box;
  background:#f8f9f6;
  border-radius:9px;
  padding:6px;
  overflow:hidden;
}
.ec-reviewfix-frame img,
.ecsuite-2gis-review-shot.ec-reviewfix-card img {
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  object-fit:contain !important;
  object-position:center center !important;
  aspect-ratio:auto !important;
  filter:none !important;
  transform:none !important;
  border:0 !important;
  border-radius:4px;
  box-shadow:none !important;
  margin:auto !important;
}
.ec-reviewfix-card-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  min-height:32px;
  font-size:12px;
  line-height:1.35;
  font-weight:700;
  padding:7px 3px 1px;
  color:#657354;
}
.ec-reviewfix-card-footer span:last-child {color:#53782f;}
.ec-reviewfix-controls {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;}
.ec-reviewfix-count {font-size:12px;font-weight:700;color:#687263;font-variant-numeric:tabular-nums;}
.ec-reviewfix-arrows {display:flex;gap:8px;}
.ec-reviewfix-arrow {
  display:grid;place-items:center;
  width:38px;height:38px;
  min-width:38px;min-height:38px;
  padding:0;border:1px solid #dfe5d7;
  background:#fff;color:#35432a;
  border-radius:50%;font-size:21px;line-height:1;cursor:pointer;
}
.ec-reviewfix-arrow:hover:not(:disabled) {background:#edf5e1;border-color:#a1c46b;}
.ec-reviewfix-arrow:disabled {opacity:.36;cursor:default;}
.ec-reviewfix-lightbox[hidden] {display:none !important;}
.ec-reviewfix-lightbox {
  position:fixed;inset:0;z-index:2147483000;
  display:flex;flex-direction:column;
  background:rgba(18,22,17,.96);
  color:white;
  overflow:hidden;
}
body.ec-reviewfix-open {overflow:hidden !important;}
.ec-reviewfix-lightbox-toolbar {
  display:flex;justify-content:space-between;align-items:center;gap:10px;
  flex:0 0 auto;min-height:64px;
  padding:10px clamp(12px,3vw,30px);
  border-bottom:1px solid rgba(255,255,255,.14);
  font-size:14px;font-weight:700;
}
.ec-reviewfix-lightbox-actions {display:flex;gap:8px;align-items:center;}
.ec-reviewfix-lightbox button {
  flex-shrink:0;border:1px solid rgba(255,255,255,.3);color:white;background:rgba(255,255,255,.08);
  cursor:pointer;min-width:42px;min-height:42px;border-radius:10px;
  font-size:16px;line-height:1;display:grid;place-items:center;padding:7px 12px;
}
.ec-reviewfix-lightbox button:hover:not(:disabled) {background:rgba(255,255,255,.2)}
.ec-reviewfix-lightbox button:disabled {opacity:.3;cursor:default;}
.ec-reviewfix-lightbox button:focus-visible {outline:3px solid #afdb68;outline-offset:2px}
.ec-reviewfix-lightbox-stage {
  display:flex;align-items:center;justify-content:center;
  flex:1 1 auto;min-height:0;
  padding:16px;
  overflow:auto;
  overscroll-behavior:contain;
}
.ec-reviewfix-lightbox-stage img {
  display:block;
  width:auto;height:auto;max-width:100%;max-height:100%;
  object-fit:contain;box-shadow:0 12px 36px rgba(0,0,0,.3);background:#fff;
  cursor:zoom-in;
}
.ec-reviewfix-lightbox.is-zoomed .ec-reviewfix-lightbox-stage {align-items:safe center;justify-content:safe center;}
.ec-reviewfix-lightbox.is-zoomed .ec-reviewfix-lightbox-stage img {
  max-width:none;max-height:none;width:max(720px,65vw);height:auto;cursor:zoom-out;
}
.ec-reviewfix-lightbox-bottom {
  display:flex;justify-content:center;gap:12px;align-items:center;
  flex:0 0 auto;min-height:62px;padding:8px 16px;
  border-top:1px solid rgba(255,255,255,.14);
}
.ec-reviewfix-lightbox-bottom .ec-reviewfix-lightbox-index {font-size:13px;font-weight:700;min-width:70px;text-align:center;}
@media (max-width:980px) {
  .ecsuite-2gis-reviews.ec-reviewfix-enhanced {grid-template-columns:1fr !important;gap:18px !important;}
  .ecsuite-2gis-review-shot.ec-reviewfix-card {flex-basis:min(310px,70%) !important;}
}
@media (max-width:560px) {
  .ecsuite-2gis-reviews.ec-reviewfix-enhanced {padding:18px !important;gap:18px !important;}
  .ec-reviewfix-frame {height:330px;}
  .ecsuite-2gis-review-shot.ec-reviewfix-card {flex-basis:min(330px,88%) !important;}
  .ec-reviewfix-lightbox-toolbar {min-height:58px;padding:8px 12px;}
  .ec-reviewfix-lightbox-toolbar .ec-reviewfix-lightbox-title {font-size:12px;}
  .ec-reviewfix-lightbox button {min-width:40px;min-height:40px;padding:6px 9px;}
  .ec-reviewfix-lightbox-stage {padding:8px;}
}
@media (prefers-reduced-motion:reduce) {
  .ec-reviewfix-track {scroll-behavior:auto;}
  .ecsuite-2gis-review-shot.ec-reviewfix-card {transition:none;}
}
