/* https://www.jqueryscript.net/other/Responsive-Image-Diff-Tool-For-Comparing-Two-Images-simpleImageDiff.html */

.eac-images-comparison {
	inline-size: fit-content;
}

.b-diff {
	position: relative;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	box-shadow: 2px 2px 5px gray;
}

.b-diff img {
	max-inline-size: 100%;
}

.b-diff__item {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.b-diff__item:nth-child(1) {
	z-index: 1;
}

.b-diff__item:nth-child(2) {
	z-index: 2;
}

.b-diff__control {
	position: absolute;
	block-size: 100%;
	padding-block: 0;
	padding-inline: 18px;
	z-index: 3;
}

.b-diff__control:hover {
	cursor: col-resize;
}

.b-diff__control:hover .b-diff__arrow_left {
	-webkit-transform: translate3d(-5px, 0, 0);
	transform: translate3d(-5px, 0, 0);
}

.b-diff__control:hover .b-diff__arrow_right {
	-webkit-transform: translate3d(5px, 0, 0);
	transform: translate3d(5px, 0, 0);
}

.b-diff__line {
	block-size: 100%;
	inline-size: 4px;
	background: #f5f5f5;
}

.b-diff__arrow {
	position: absolute;
	block-size: 0;
	inline-size: 0;
	inset-block-start: 50%;
	-webkit-transition: transform .3s ease;
	transition: transform .3s ease;
	-webkit-transform: translate3d(0px, 0, 0);
	transform: translate3d(0px, 0, 0);
}

.b-diff__arrow_left {
	inset-inline-start: 0px;
	border-block-start: 10px solid transparent;
	border-block-end: 10px solid transparent;
	border-inline-end: 10px solid #f5f5f5;
}

.b-diff__arrow_right {
	inset-inline-end: 0px;
	border-block-start: 10px solid transparent;
	border-block-end: 10px solid transparent;
	border-inline-start: 10px solid #f5f5f5;
}

.b-diff__title {
	background: rgba(0, 0, 0, 0.7);
	color: #ffffff;
	font-size: 0.7em;
	line-height: 1.2em;
	position: absolute;
	padding-block: 5px;
	padding-inline: 10px;
	max-inline-size: 45%;
	word-wrap: break-word;
	z-index: 2;
}

.b-diff__title_before,
.b-diff__title_before-top .b-diff__title_before {
	inset-block-start: 0px;
	inset-inline-end: 0px;
	transition: all .3s ease-in-out;
	transform: translate(0, 0);
}

.b-diff__title_before-middle .b-diff__title_before {
	inset-block-start: 50%;
	inset-inline-end: 0px;
	transition: all .3s ease-in-out;
	transform: translate(0, -50%);
}

.b-diff__title_before-bottom .b-diff__title_before {
	inset-block-start: 100%;
	inset-inline-end: 0px;
	transition: all .3s ease-in-out;
	transform: translate(0, -100%);
}

.b-diff__title_after,
.b-diff__title_after-top .b-diff__title_after {
	inset-block-start: 0px;
	inset-inline-start: 0px;
	transition: all .3s ease-in-out;
	transform: translate(0, 0);
}

.b-diff__title_after-middle .b-diff__title_after {
	inset-block-start: 50%;
	inset-inline-start: 0px;
	transition: all .3s ease-in-out;
	transform: translate(0, -50%);
}

.b-diff__title_after-bottom .b-diff__title_after {
	inset-block-start: 100%;
	inset-inline-start: 0px;
	transition: all .3s ease-in-out;
	transform: translate(0, -100%);
}