/* Virtual Tour Embed — front-end styles */

.vte-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	background: #000;
	overflow: hidden;
	line-height: 0;
}

.vte-wrap .vte-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ---------- Mode: responsive (aspect-ratio changes per device) ---------- */

.vte-wrap.vte-mode-responsive {
	aspect-ratio: 16 / 9; /* desktop / large screens */
}

@media (max-width: 1024px) {
	.vte-wrap.vte-mode-responsive {
		aspect-ratio: 4 / 3; /* tablets */
	}
}

@media (max-width: 600px) {
	.vte-wrap.vte-mode-responsive {
		aspect-ratio: 3 / 4; /* phones — taller, feels more immersive */
	}
}

/* ---------- Mode: fill (take the full device viewport height) ---------- */

.vte-wrap.vte-mode-fill {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	height: 100vh;
	height: 100dvh; /* modern browsers: accounts for mobile browser chrome */
}

/* ---------- Fullscreen button ---------- */

.vte-fullscreen-btn {
	position: absolute;
	bottom: 14px;
	right: 14px;
	z-index: 5;
	width: 42px;
	height: 42px;
	border: none;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
}

.vte-fullscreen-btn:hover,
.vte-fullscreen-btn:focus {
	background: rgba(0, 0, 0, 0.8);
}

.vte-wrap:fullscreen,
.vte-wrap:-webkit-full-screen {
	width: 100vw;
	height: 100vh;
	max-width: none;
	aspect-ratio: unset;
}

.vte-wrap:fullscreen .vte-frame,
.vte-wrap:-webkit-full-screen .vte-frame {
	height: 100%;
}
