.ms-demo-modal,
.ms-demo-modal * {
	box-sizing: border-box;
}

.ms-demo-modal[hidden] {
	display: none;
}

.ms-demo-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: grid;
	place-items: center;
	padding: 24px;
	isolation: isolate;
	transform: translateZ(0);
}

.ms-demo-modal__backdrop {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.72);
}

.ms-demo-modal__dialog {
	position: relative;
	z-index: 2;
	width: min(735px, 100%);
	max-height: calc(100vh - 48px);
	overflow: auto;
	padding: 22px;
	border: 2px solid #000000;
	border-radius: 10px;
	background: #fff5ea;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.ms-demo-modal__dialog:focus {
	outline: none;
}

.ms-demo-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid #000000;
	border-radius: 4px;
	background: #ffffff;
	color: #111111;
	cursor: pointer;
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.ms-demo-modal__close:hover,
.ms-demo-modal__close:focus-visible {
	background: #111111;
	color: #ffffff;
}

.ms-demo-modal h2 {
	margin: 0 56px 18px 0;
	color: #111111;
	font-size: clamp(1.45rem, 3vw, 2.2rem);
	font-weight: 700;
	line-height: 1.15;
}

.ms-demo-modal__video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 1px solid #000000;
	border-radius: 10px;
	background: #000000;
}

.ms-demo-modal-is-open {
	overflow: hidden;
}

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

	.ms-demo-modal__dialog {
		max-height: calc(100vh - 24px);
		padding: 16px;
	}

	.ms-demo-modal h2 {
		margin-right: 48px;
	}
}
