/* Страница «Туры и панорамы»: только то, чего нет в общей раскладке
   pages/_shared/css/vt360-portfolio-page.css (первый экран, секции, футер) и
   pages/_shared/css/vt360-rotating-panorama.css (обложка, контейнер просмотрщика).
   Классы с префиксом vt360-tp. */

/* Блок панорамы заполняет первый экран / половину секции */
.vt360-tp__tour {
	position: absolute;
	z-index: 0;
	inset: 0;
}

.vt360-tp__tour-cover {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vt360-tp__tour iframe {
	position: absolute;
	z-index: 1;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.vt360-tp__panorama {
	position: absolute;
	z-index: 0;
	inset: 0;
	/* Подсказка «потяни» над кнопкой «На весь экран» */
	--vt360-pano-hint-bottom: 84px;
	--vt360-pano-hint-height: clamp(60px, 11vh, 110px);
}

/* Первый экран: панорама бесконечно движется через CSS. Три одинаковые картинки
   подряд, высота — по высоте экрана; сдвиг ровно на одну картинку (треть ширины
   ленты) — начало и конец совпадают, шва не видно. Затемнение для белого текста —
   общее .vt360-pf__hero::after. */
.vt360-tp__spin {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.vt360-tp__spin-track {
	display: flex;
	width: max-content;
	height: 100%;
	animation: vt360-tp-spin 80s linear infinite;
}

.vt360-tp__spin-track img {
	display: block;
	flex: none;
	width: auto;
	height: 100%;
	user-select: none;
}

@keyframes vt360-tp-spin {
	to {
		transform: translateX(calc(-100% / 3));
	}
}

/* Стрелка вниз внизу по центру первого экрана: плавно качается вверх-вниз */
.vt360-tp__scroll {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 4vh;
	margin-left: -24px;
	color: #fff;
	pointer-events: none;
}

.vt360-tp__scroll svg {
	display: block;
	animation: vt360-tp-scroll-hint 1.8s ease-in-out infinite;
}

@keyframes vt360-tp-scroll-hint {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(12px);
	}
}

/* Текстовая кнопка «На весь экран» / «Выйти из полного экрана»: внизу по центру блока
   панорамы; в полном экране — вверху (см. .is-fullscreen ниже: внизу её перекрывала
   системная плашка браузера на телефоне). Текст меняет скрипт. Появляется, когда
   просмотрщик создан. */
.vt360-tp__fs {
	position: absolute;
	z-index: 10;
	left: 50%;
	bottom: 24px;
	max-width: calc(100% - 32px);
	padding: 12px 26px;
	border: 1px solid rgba(255, 255, 255, .6);
	background: rgba(31, 26, 23, .75);
	color: #fff;
	cursor: pointer;
	font-family: var(--vt360-pf-font);
	font-size: 13px;
	letter-spacing: .18em;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
	transform: translateX(-50%);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility 0s linear .3s, background-color .3s ease;
}

.vt360-tp__fs.is-ready {
	opacity: 1;
	visibility: visible;
	transition: opacity .3s ease, background-color .3s ease;
}

/* Только на телефоне: в полном экране кнопка уходит вверх, на десктопе остаётся внизу. */
@media (max-width: 700px) {
	.is-fullscreen .vt360-tp__fs {
		top: 24px;
		bottom: auto;
	}
}

.vt360-tp__fs:hover,
.vt360-tp__fs:focus-visible {
	background: rgba(31, 26, 23, .95);
}
