/* Reuse the established comparison widget and carousel. SVG source regions
   separate the supplied collages without resampling or retouching photos. */
.svc-compare.svc-compare--cropped {
  max-width: min(var(--compare-max-width, 820px), calc(58vh * var(--compare-ratio)));
  aspect-ratio: var(--compare-ratio);
  background: #f1eee7;
}

.svc-compare--cropped .svc-compare__source {
  display: block;
  width: 100%;
  height: 100%;
}

.svc-compare--cropped::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.svc-compare--cropped .svc-compare__handle { top: 50%; }
.svc-compare--cropped .svc-compare__badge {
  top: 16px;
  padding: 8px 12px;
  font-size: 13px;
}
.svc-compare--cropped .svc-compare__badge--before { left: 12px; }
.svc-compare--cropped .svc-compare__badge--after { right: 12px; }

.svc-results__caption {
  margin: 0;
  max-width: 820px;
  color: var(--c-white);
  font-family: var(--f);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

.svc-compare:focus-visible {
  outline: 3px solid #30362e;
  outline-offset: 5px;
}

/* Keep the existing dots' appearance inside 24px touch targets. */
.svc-results__dots { gap: 0; flex-wrap: wrap; justify-content: center; max-width: 100%; }
.svc-results__dots .dot {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: transparent;
  transform: none;
  transition: none;
}
.svc-results__dots .dot::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}
.svc-results__dots .dot--active::before { background: #fff; transform: scale(1.3); }
.svc-results__dots .dot:active::before { background: #fff; }
@media (hover: hover) and (pointer: fine) {
  .svc-results__dots .dot:hover::before { background: #fff; }
}
.svc-results__dots .dot:focus-visible {
  outline: 2px solid #30362e;
  outline-offset: 5px;
}

@media (max-width: 767px) {
  .svc-compare--cropped .svc-compare__handle { width: 44px; height: 44px; }
}
