/* --- Before/After Compare Slider Styles --- */

/* Shared Slider styles */
.compare-before-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	pointer-events: none;
}

.compare-handle {
	position: absolute;
	top: 0;
	left: 50%;
	width: 40px;
	height: 100%;
	transform: translateX(-50%);
	cursor: ew-resize;
	pointer-events: auto;
	touch-action: none;
	z-index: 10;
}

.compare-handle-line {
	position: absolute;
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	background: #ffffff;
	transform: translateX(-50%);
	pointer-events: none;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.compare-handle-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
	pointer-events: none;
}

.compare-handle-btn:before,
.compare-handle-btn:after {
	content: '';
	position: absolute;
	top: 50%;
	width: 0;
	height: 0;
	border-style: solid;
	transform: translateY(-50%);
}

.compare-handle-btn:before {
	left: 6px;
	border-width: 4px 5px 4px 0;
	border-color: transparent #333 transparent transparent;
}

.compare-handle-btn:after {
	right: 6px;
	border-width: 4px 0 4px 5px;
	border-color: transparent transparent transparent #333;
}

/* Lightbox specific */
.poptrox-compare-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100;
	pointer-events: auto;
	touch-action: none;
}

.poptrox-compare-before-img {
	clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
