/* V38: Stable full-bin framing on both gallery and homepage.
   The source photos are 360 x 470. Keep that same aspect ratio
   and identical image geometry for both layers at every slider position. */
#before-after-gallery .compare-card:nth-child(-n+2) .compare-stage {
  aspect-ratio: 360 / 470 !important;
  overflow: hidden !important;
  background: #101811 !important;
}
#before-after-gallery .compare-card:nth-child(-n+2) .compare-stage > img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 7% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  object-fit: contain !important;
  object-position: 50% 50% !important;
  transform: none !important;
  scale: 1 !important;
  filter: none !important;
  background: transparent !important;
}
#before-after-gallery .compare-card:nth-child(-n+2) .compare-stage > img.compare-clean {
  clip-path: inset(0 0 0 var(--split, 50%)) !important;
}
