.image-compare-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.image-compare-container img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.image-compare-before {
  position: relative;
  width: 100%;
}

.image-compare-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-compare-slider {
  position: absolute;
  top: 0;
  left: 90%;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.image-compare-slider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: white;
  border: 3px solid #333;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.image-compare-slider::after {
  content: '⇔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: bold;
  color: #333;
  z-index: 1;
  pointer-events: none;
}

.image-compare-container:hover .image-compare-slider {
  background: rgba(255, 255, 255, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .image-compare-slider::before {
    width: 36px;
    height: 36px;
  }

  .image-compare-slider::after {
    font-size: 16px;
  }
}
