.compare-container {
	position: relative;
	cursor: grab;
	overflow: hidden;
	width: fit-content;
	border-radius: 10px;
	user-select: none;
}

.compare-after {
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	overflow: hidden;
	border-right: solid white 2px;
	box-shadow: 5px 0 10px rgb(12, 12, 12);
	object-fit: cover;
}

.compare-before {
	display: flex;
	overflow: hidden;
}

.compare-before > img{
	width: 100%;
}

.compare-after > img {
	height: 100%;
	object-fit: cover;
	object-position: top left;
}

.compare-after-label {
	left: 0;
}

.compare-before-label {
	right: 0;
}

.compare-label {
	position: absolute;
	bottom: 0;
	margin: 1rem;
	padding: 2px 10px;
	border-radius: 0.2rem;
	
	background: #121212;
	color: #fff;
	font-size: 1em;

	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-o-user-select: none;
	user-select: none;
	z-index: 2;
	pointer-events: none;
}

.compare-handle {
	position: absolute;

	height: 40px;
	width: 40px;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	border: 2px solid #fff;
	border-radius: 1000px;
	z-index: 20;
	pointer-events: none;
	box-shadow: 0 0 10px rgb(12, 12, 12);

	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.compare-arrow{
	color: white;
}

.compare-control{
	opacity: 0.5;
	padding: 0.08em 0.2em;
	background-color: black;
	color: white;
	position: absolute;
	top: 5px;
	left: 5px;
	border-radius: 5px;
	z-index: 2;
}