/* =============================================================================
   REVEAL-SLIDER.CSS — MadeByKoch Theme
   Before/After Image Reveal Slider Styles
   ============================================================================= */

/* =============================================================================
   CONTAINER
   ============================================================================= */

.reveal-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  border: 1px solid #2A2A2A;
  touch-action: pan-y;
}

/* =============================================================================
   BEFORE PANEL (clipped left side)
   ============================================================================= */

.reveal-before {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-right: 2px solid #D42B2B;
}

.reveal-before img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* =============================================================================
   AFTER PANEL (full background)
   ============================================================================= */

.reveal-after {
  position: absolute;
  inset: 0;
}

.reveal-after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* =============================================================================
   LABELS
   ============================================================================= */

.reveal-label {
  position: absolute;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(12, 12, 12, 0.8);
  padding: 4px 10px;
  pointer-events: none;
  z-index: 5;
}

.reveal-label--before {
  color: #6A6A6A;
  top: 16px;
  left: 16px;
}

.reveal-label--after {
  color: #D42B2B;
  top: 16px;
  right: 16px;
}

/* =============================================================================
   HANDLE
   ============================================================================= */

.reveal-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

/* =============================================================================
   HANDLE CIRCLE
   ============================================================================= */

.reveal-handle-circle {
  width: 36px;
  height: 36px;
  background: #D42B2B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #0C0C0C;
  box-shadow:
    0 0 0 3px rgba(212, 43, 43, 0.3),
    0 2px 12px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.reveal-container:hover .reveal-handle-circle {
  transform: scale(1.08);
}

.reveal-container:active .reveal-handle-circle {
  transform: scale(0.96);
  background: #FF3E3E;
}

/* Arrows inside the handle circle */
.reveal-handle-circle::before {
  content: '◂▸';
  font-size: 10px;
  letter-spacing: -2px;
  color: #0C0C0C;
}

/* =============================================================================
   HINT TEXT
   ============================================================================= */

.reveal-hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.3s ease;
}

/* Hide hint after interaction */
.reveal-container.interacted .reveal-hint {
  opacity: 0;
}

/* Hide drag hint on mobile */
@media (max-width: 768px) {
  .reveal-hint { display: none !important; }
}
