/**
 * Ravenna Homes — virtual tour overlay.
 */

html.rh-tour-open {
	overflow: hidden;
}

.rh-tour-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000; /* above Avada's sticky header */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--rh-tour-padding, 3vmin);
	background: rgba( 4, 20, 32, 0.92 );
	opacity: 0;
	transition: opacity 200ms ease;
}

.rh-tour-overlay.is-open {
	opacity: 1;
}

.rh-tour-inner {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: var(--rh-tour-max-width, 1600px);
	background: #000;
}

.rh-tour-frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.rh-tour-close {
	position: absolute;
	top: max( 12px, 1.5vmin );
	right: max( 12px, 1.5vmin );
	z-index: 1;
	width: 44px;   /* full tap target */
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.92 );
	color: var(--rh-navy, #063d5d);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background 150ms ease;
}

.rh-tour-close:hover,
.rh-tour-close:focus-visible {
	background: #fff;
	outline: none;
	box-shadow: 0 0 0 3px rgba( 255, 255, 255, 0.5 );
}

@media ( prefers-reduced-motion: reduce ) {

	.rh-tour-overlay {
		transition: none;
	}
}
