.bmr-video-popover {
	margin-block: 24px;
}

.bmr-video-popover__button {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 25px;
	padding: 30px;
	border: 0;
	background-image: var(--video-image);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
	text-align: left;
	cursor: pointer;
	overflow: hidden;
}

.bmr-video-popover__button::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(
			to top,
			rgba(0, 0, 0, 0.8) 0%,
			rgba(0, 0, 0, 0.15) 65%,
			rgba(0, 0, 0, 0.05) 100%
		);
	transition: background-color 0.2s ease;
}

.bmr-video-popover__label {
	position: relative;
	z-index: 2;
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.1;
}

.bmr-video-popover__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 2;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.92);
	transform: translate(-50%, -50%);
	transition:
		transform 0.2s ease,
		background-color 0.2s ease;
}

.bmr-video-popover__play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 53%;
	width: 0;
	height: 0;
	border-top: 13px solid transparent;
	border-bottom: 13px solid transparent;
	border-left: 21px solid #000;
	transform: translate(-50%, -50%);
}

.bmr-video-popover__button:hover .bmr-video-popover__play {
	background-color: #fff;
	transform: translate(-50%, -50%) scale(1.08);
}

.bmr-video-popover__button:focus-visible {
	outline: 3px solid #000;
	outline-offset: 4px;
}



.bmr-video-popover__dialog {
	width: min(1100px, calc(100% - 40px));
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.bmr-video-popover__dialog::backdrop {
	background-color: rgba(0, 0, 0, 0.85);
}

.bmr-video-popover__modal {
	position: relative;
	width: 100%;
}

.bmr-video-popover__video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #000;
	overflow: hidden;
}

.bmr-video-popover__iframe {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.bmr-video-popover__close {
	position: absolute;
	right: 0;
	bottom: calc(100% + 12px);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: rgba(0,0,0,0);
	color: #fff;
	font-size: 4rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

body.bmr-video-popover-is-open {
	overflow: hidden;
	overscroll-behavior: none;
}

@media (max-width: 600px) {
	.bmr-video-popover__dialog {
		width: calc(100% - 24px);
	}
}

@media (max-width: 767px) {
	.bmr-video-popover__dialog {
		width: 100vw;
		max-width: none;
		height: 100dvh;
		max-height: none;
		margin: 0;
		padding: 0;
		background-color: #000;
	}

	.bmr-video-popover__dialog[open] {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.bmr-video-popover__modal {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		background-color: #000;
	}

	.bmr-video-popover__video {
		width: 100%;
		aspect-ratio: 16 / 9;
		background-color: #000;
	}

	.bmr-video-popover__close {
		position: fixed;
		top: max(16px, env(safe-area-inset-top));
		right: max(16px, env(safe-area-inset-right));
		bottom: auto;
		z-index: 10;
		width: 44px;
		height: 44px;
		border-color: #fff;
		background-color: rgba(0, 0, 0, 0.75);
		color: #fff;
	}

	.bmr-video-popover__iframe {
		width: 100%;
		height: 100%;
	}
}