.fading {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	margin: auto;
}

.fading li {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1s ease-in-out, transform 8s ease-in-out;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fading li.active {
	opacity: 1;
}

.fading li img {
	transform: scale(1);
	transition: transform 8s ease-in-out;
}

.fading li.active img {
	transform: scale(1.25);
}

.fading li p {
	opacity: 0;
	transition: opacity 1s ease-in-out;
	z-index: 1;
	color: #000;
	text-shadow: 2px 2px 2px rgb(255, 255, 255);
	width: 100%;
	max-width: 100%;
	position: absolute;
	font-family: doramatic;
	font-weight: 900;
	font-size: min(54px, calc((100vw - 30px) / 18));
	padding: min(20px, 4vw) 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.fading li p.late-active {
	opacity: 1;
}

.fading li img {
	width: 100%;
	height: 100%;
}

.fading li p .front-top-p-bg {
	background-color: #fff;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	z-index: -1;
	opacity: 0.5;
	box-shadow: 0px 0px min(30px, 20vw) rgba(255, 255, 255, 1);
}
