/* Экран ожидания панорамы комнаты. Общий для просмотрщика своего сайта и
   встраиваемого iframe; к прелоадеру квартирных туров отношения не имеет. */

.vt360-panorama-preloader {
	position: absolute;
	z-index: 20;
	inset: 0;
	display: grid;
	overflow: hidden;
	place-items: center;
	background: #111;
	opacity: 1;
	transition: opacity .22s ease;
}

.vt360-panorama-preloader.is-complete {
	opacity: 0;
	pointer-events: none;
}

.vt360-panorama-preloader__backdrop {
	position: absolute;
	inset: -28px;
	display: block;
	width: calc(100% + 56px);
	height: calc(100% + 56px);
	background-color: #111;
	object-fit: cover;
	object-position: center;
	filter: blur(18px);
	transform: scale(1.08);
}

.vt360-panorama-preloader__content {
	position: relative;
	z-index: 1;
	display: flex;
	width: min(280px, calc(100% - 32px));
	box-sizing: border-box;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 20px 22px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 10px;
	background: rgba(17, 17, 17, .62);
	color: #fff;
	font-size: 14px;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
	backdrop-filter: blur(3px);
}

.vt360-panorama-preloader__spinner {
	width: 26px;
	height: 26px;
	border: 3px solid rgba(255, 255, 255, .38);
	border-right-color: #fff;
	border-radius: 50%;
	animation: vt360-panorama-preloader-spin .75s linear infinite;
}

.vt360-panorama-preloader__progress {
	width: 100%;
	height: 5px;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 255, 255, .28);
}

.vt360-panorama-preloader__progress span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: #fff;
	transition: width .25s ease;
}

@keyframes vt360-panorama-preloader-spin {
	to { transform: rotate(360deg); }
}
