html.listing-video-modal-open,
html.listing-video-modal-open body {
	overflow: hidden;
}

.listing-video-modal {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
}

.listing-video-modal[hidden] {
	display: none !important;
}

.listing-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 14, 22, 0.72);
}

.listing-video-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(960px, 100%);
	background: #0f1117;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	overflow: hidden;
}

.listing-video-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #1a1a1a;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.listing-video-modal__close svg {
	width: 18px;
	height: 18px;
	display: block;
}

.listing-video-modal__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
}

.listing-video-modal__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

@media (max-width: 767px) {
	.listing-video-modal {
		padding: 12px;
	}

	.listing-video-modal__dialog {
		border-radius: 12px;
	}

	.listing-video-modal__close {
		top: 8px;
		right: 8px;
		width: 36px;
		height: 36px;
	}
}
