.kopylov-scroll-frame {
	--kopylov-scroll-frame-y: 0px;
	--kopylov-scroll-frame-bg-scale: 0;
	--kopylov-uxui-reveal-1-right: 100%;
	--kopylov-uxui-reveal-2-right: 100%;
	--kopylov-uxui-reveal-3-right: 100%;
	--kopylov-uxui-reveal-4-right: 100%;
	position: relative;
	z-index: -1;
	height: 820vh;
	background: #000;
	isolation: isolate;
}

@media (min-width: 1128px) {
	.kopylov-scroll-frame {
		height: calc(820vh - 1900px);
	}
}

.kopylov-scroll-frame__stage {
	position: sticky;
	top: 0;
	display: grid;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	place-items: center;
	background: #000;
}

.kopylov-scroll-frame.is-complete .kopylov-scroll-frame__stage {
	position: fixed;
	inset: 0;
	width: 100%;
	pointer-events: none;
}

body.kopylov-scroll-frame-complete .remove-bg {
	background: transparent !important;
	background-color: transparent !important;
}

.kopylov-scroll-frame__stage::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	height: 5px;
	background: #000;
	pointer-events: none;
}

.kopylov-scroll-frame__bg-reveal {
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 0;
	width: 300vmax;
	height: 300vmax;
	border-radius: 50%;
	background: #fff;
	transform: translate3d(-50%, 50%, 0) scale(var(--kopylov-scroll-frame-bg-scale));
	transform-origin: center;
	pointer-events: none;
	will-change: transform;
}

.kopylov-scroll-frame__image {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	background: transparent;
}

.kopylov-scroll-frame__uxui-reveal {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	will-change: clip-path;
}

.kopylov-scroll-frame__uxui-reveal--1 {
	z-index: 2;
	clip-path: inset(0 var(--kopylov-uxui-reveal-1-right) 0 0);
}

.kopylov-scroll-frame__uxui-reveal--2 {
	z-index: 3;
	clip-path: inset(0 var(--kopylov-uxui-reveal-2-right) 0 0);
}

.kopylov-scroll-frame__uxui-reveal--3 {
	z-index: 4;
	clip-path: inset(0 var(--kopylov-uxui-reveal-3-right) 0 0);
}

.kopylov-scroll-frame__uxui-reveal--4 {
	z-index: 5;
	clip-path: inset(0 var(--kopylov-uxui-reveal-4-right) 0 0);
}

.kopylov-scroll-frame__image.kopylov-scroll-frame__uxui-reveal {
	max-height: none;
	object-fit: cover;
	transform: none;
}

body.kopylov-uxui-reveal-1-active .kopylov-scroll-frame__uxui-reveal--1,
body.kopylov-uxui-reveal-2-active .kopylov-scroll-frame__uxui-reveal--2,
body.kopylov-uxui-reveal-3-active .kopylov-scroll-frame__uxui-reveal--3,
body.kopylov-uxui-reveal-4-active .kopylov-scroll-frame__uxui-reveal--4 {
	opacity: 1;
}

.kopylov-scroll-frame__loading {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 2;
	padding: 0.55rem 0.7rem;
	background: rgba(0, 0, 0, 0.72);
	color: #a7adbb;
	font-size: 0.86rem;
	line-height: 1;
	backdrop-filter: blur(14px);
}

.kopylov-scroll-frame.is-ready .kopylov-scroll-frame__loading {
	display: none;
}

@media (max-width: 1127px) {
	.kopylov-scroll-frame {
		height: 700vh;
	}

	.kopylov-scroll-frame__image {
		width: 100vw;
		height: auto;
		max-height: 100vh;
		max-height: 100svh;
		object-fit: contain;
		transform: translate3d(0, var(--kopylov-scroll-frame-y), 0);
	}
}
