.cb-video-card {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.cb-video-card:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.cb-video-card__image {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 220ms ease;
}

.cb-video-card:hover .cb-video-card__image,
.cb-video-card:focus-visible .cb-video-card__image {
	transform: scale(1.025);
}

.cb-video-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.18));
}

.cb-video-card__play {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: rgb(255 0 0 / 78%);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	transition: transform 180ms ease, background 180ms ease;
}

.cb-video-card:hover .cb-video-card__play,
.cb-video-card:focus-visible .cb-video-card__play {
	transform: scale(1.08);
	background: rgba(0, 0, 0, 0.9);
}

.cb-video-card__play svg {
	width: 30px;
	height: 30px;
	/* margin-left: 3px; */
	fill: #fff;
}

.cb-video-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.9);
	opacity: 0;
	visibility: hidden;
	transition: opacity 180ms ease, visibility 180ms ease;
}

.cb-video-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.cb-video-modal__dialog {
	position: relative;
	width: min(1100px, 100%);
	aspect-ratio: 16 / 9;
	background: #000;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
}

.cb-video-modal__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.cb-video-modal__close {
	position: absolute;
	top: -48px;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font: inherit;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.cb-video-modal__close:hover,
.cb-video-modal__close:focus-visible {
	background: rgba(255, 255, 255, 0.28);
}

body.cb-video-modal-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.cb-video-modal {
		padding: 16px;
	}

	.cb-video-modal__close {
		top: -44px;
	}

	.cb-video-card__play {
		width: 56px;
		height: 56px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cb-video-card__image,
	.cb-video-card__play,
	.cb-video-modal {
		transition: none;
	}
}
