/* Before/After comparison slider — global widget for all case study pages.
   Drop a .compare-container anywhere on the page. compare-slider.js auto-activates it. */
.compare-container {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: #141414;
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
  margin: 0;
}
.compare-label {
  position: absolute;
  top: 16px;
  z-index: 25;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0,0,0,0.55);
  color: rgba(255,255,255,0.7);
  pointer-events: none;
}
.compare-label-before { left: 16px; }
.compare-label-after  { right: 16px; }
.compare-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141414;
}
.compare-layer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.compare-top {
  overflow: hidden;
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 20;
  width: 2px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 8px rgba(0,0,0,0.35);
  pointer-events: none;
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 30;
  width: 48px;
  cursor: ew-resize;
}
.compare-handle-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.compare-handle-arrows {
  width: 20px;
  height: 20px;
  color: #555;
}
