.restoration-compare.is-ready {
  --split: 50%;
  padding: 0;
  overflow: hidden;
}
.restoration-compare.is-ready .compare-stage {
  position: relative;
  isolation: isolate;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #ece7de;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}
.restoration-compare.is-ready .photo-figures figure {
  position: absolute;
  inset: 0;
}
.restoration-compare.is-ready .photo-figures figure:first-child {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
}
.restoration-compare.is-ready .photo-figures img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}
.restoration-compare.is-ready figcaption { display: none; }
.compare-divider {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.compare-divider::before {
  content: '';
  position: absolute;
  inset-block: 0;
  left: var(--split);
  width: 2px;
  transform: translateX(-50%);
  background: white;
  box-shadow: 0 0 3px #332717;
}
.compare-divider span {
  position: absolute;
  top: 50%;
  left: clamp(23px, var(--split), calc(100% - 23px));
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid white;
  background: #ffce42;
  box-shadow: 0 2px 10px #21180966;
  color: #292419;
  font: 700 24px/1 Arial,sans-serif;
}
.restoration-compare .compare-range {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.compare-stage:has(.compare-range:focus-visible) {
  outline: 3px solid #235c8b;
  outline-offset: -4px;
}
.compare-stage:has(.compare-range:focus-visible) .compare-divider span { outline: 3px solid #235c8b; }
.compare-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px clamp(10px,2vw,22px);
  text-align: center;
}
.compare-controls span { color: #485667; font-size: .9rem; line-height: 1.35; }
.compare-controls button {
  min-width: 50px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 12px;
  background: #f3f4f5;
  color: #243244;
  cursor: pointer;
  font: 650 .95rem/1.25 Inter,Arial,sans-serif;
}
.compare-controls button:hover { background: #fff0c5; }
