/* Native overview and mixed-media strips reuse the existing modal controller. */
.nh-tour-video {
	position: relative;
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
}

.nh-tour-video > .nh-tour-caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	margin: 0;
	padding: 32px 16px 20px;
	background: linear-gradient(transparent, rgb(0 0 0 / 65%));
	color: #fff;
	font: 600 24px/1.2 Manrope, Arial, sans-serif;
	letter-spacing: -.02em;
	text-align: center;
	pointer-events: none;
}

.nh-tour-video .nh-tour-play {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	margin: 0;
	border-radius: 8px;
}

/* The supplied Karavannaya overview photograph includes a dark outer pixel row. */
:where(.nh-page-karavannaya .nh-property-overview-poster) .nh-tour-play img {
	transform: scale(1.01);
}

.nh-tour-video .nh-tour-play img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nh-tour-play:has(.nh-tour-frame) {
	background: var(--nh-ink);
}

.nh-tour-frame {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	pointer-events: none;
}

.nh-tour-frame.is-ready {
	opacity: 1;
}

.nh-property-overview-poster .nh-tour-video {
	height: 100%;
}

.nh-media-source-collection {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
}

.nh-media-source-collection > :is(.nh-media-photo, .nh-tour-video) {
	flex: 0 0 580px;
	width: 580px;
	height: 400px;
	margin: 0;
	overflow: hidden;
	border-radius: 8px;
}

.nh-media-source-collection > .nh-media-portrait {
	flex-basis: 305px;
	width: 305px;
}

.nh-media-source-collection > .nh-media-photo img {
	display: block;
	width: 100%;
	height: 400px;
	object-fit: cover;
}

.nh-property-hero .nh-current-hero-price {
	max-width: 116px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}

.nh-page-malysheva .nh-property-overview-poster .nh-tour-play img {
	object-position: 50% 60%;
}

@media (width <= 700px) {
	/* Interpolate the approved360×295 mobile and610×498 desktop compositions:
	 * H =295 +203 ×(W -360)/250. Only the poster row grows; photo rows stay128px.
	 */
	.nh-page-malysheva .nh-property-overview {
		grid-template-rows: auto max(295px, calc((100vw - 20px) * .812 + 2.68px)) 128px auto;
	}

	.nh-media-source-collection > :is(.nh-media-photo, .nh-tour-video, .nh-media-portrait) {
		flex-basis: min(340px, 100%);
		width: min(340px, 100%);
	}
}

@media (width < 380px) {
	.nh-page-malysheva .nh-property-overview-poster .nh-tour-play img {
		object-position: 50% 59%;
	}
}
