.dbap--modal-open {
	overflow: hidden;
}

.dbap-trigger {
	display: inline-block;
	padding: 0.6em 1em;
	background: #2c3e50;
	color: #fff;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.dbap-modal[aria-hidden="true"] { display: none; }
.dbap-modal[aria-hidden="false"] { display: block; }

.dbap-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	backdrop-filter: saturate(120%) blur(2px);
}

.dbap-modal__dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	width: min(900px, 92vw);
	max-height: 90vh;
	border-radius: 10px;
	box-shadow: 0 20px 50px rgba(0,0,0,0.25);
	overflow: hidden;
}

.dbap-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.dbap-modal__title {
	margin: 0;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
	font-size: 18px;
	font-weight: 600;
}

.dbap-compare {
	position: relative;
	width: 100%;
	min-height: 200px;
	background: #000;
	user-select: none;
	-webkit-user-select: none;
}

.dbap-compare__image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.dbap-compare__image--after {
	position: absolute;
	top: 0;
	left: 0;
	clip-path: inset(0 50% 0 0); /* initial 50% */
	transition: clip-path 0.05s linear;
}

.dbap-compare__slider {
	position: absolute;
	left: 0;
	bottom: 10px;
	width: calc(100% - 20px);
	margin: 0 10px;
	appearance: none;
	-webkit-appearance: none;
	height: 4px;
	background: rgba(255,255,255,0.7);
	border-radius: 999px;
}

.dbap-compare__slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #2c3e50;
	border: 2px solid #fff;
	box-shadow: 0 0 0 3px rgba(44,62,80,0.2);
}

.dbap-compare__slider::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #2c3e50;
	border: 2px solid #fff;
	box-shadow: 0 0 0 3px rgba(44,62,80,0.2);
}



