/* YouTube showcase. */

.sm-yt {
	min-width: 0;
}

.sm-yt__feature {
	position: relative;
	display: block;
	width: 100%;
	height: 0;
	padding: 0 0 60%;
	border: 0;
	border-radius: 18px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	box-shadow: 0 16px 40px rgba(27, 27, 27, .14);
}

.sm-yt__thumb {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform .6s ease;
}

.sm-yt__feature:hover .sm-yt__thumb {
	transform: scale(1.06);
}

.sm-yt__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .65));
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
	text-align: left;
}

.sm-play {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: var(--sm-burgundy);
	font-size: 24px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 0 var(--sm-gold-40);
	animation: smPulse 2.2s infinite;
	transition: background .3s ease, color .3s ease;
}

.sm-yt__feature:hover .sm-play {
	background: var(--sm-gold);
	color: #fff;
}

@keyframes smPulse {
	0%   { box-shadow: 0 0 0 0 rgba(201, 161, 91, .55); }
	70%  { box-shadow: 0 0 0 22px rgba(201, 161, 91, 0); }
	100% { box-shadow: 0 0 0 0 rgba(201, 161, 91, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.sm-play { animation: none; }
}

.sm-yt__cap strong {
	display: block;
	font-family: var(--sm-font-head);
	font-weight: 700;
	font-size: 24px;
	color: #fff;
}

.sm-yt__cap span {
	font-size: 12.5px;
	color: #e3ddd2;
}

.sm-yt__badge {
	position: absolute;
	bottom: 24px;
	right: 24px;
	font-family: var(--sm-font-btn);
	font-weight: 600;
	font-size: 11px;
	color: #fff;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sm-yt__badge i {
	color: #ff0000;
	font-size: 16px;
}

/* Thumbnail strip. */
.sm-yt__carousel {
	margin-top: 18px;
}

.sm-yt__card {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.sm-yt__cthumb {
	position: relative;
	display: block;
	height: 84px;
	border-radius: 12px;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.sm-play--sm {
	width: 38px;
	height: 38px;
	font-size: 13px;
	animation: none;
	box-shadow: none;
}

/* Modal. */
.sm-video-modal {
	position: fixed;
	inset: 0;
	z-index: var(--sm-z-modal, 9500);
	background: rgba(10, 8, 8, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity .35s ease;
}

.sm-video-modal.is-open {
	opacity: 1;
}

.sm-video-modal__frame {
	width: min(900px, 92vw);
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
	background: #000;
}

.sm-video-modal__frame iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

.sm-video-modal__close {
	position: absolute;
	top: 24px;
	right: 28px;
	background: none;
	border: 0;
	color: var(--sm-gold);
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	padding: 6px;
}

@media (max-width: 768px) {
	.sm-yt__cap strong { font-size: 20px; }
	.sm-play { width: 58px; height: 58px; font-size: 20px; }
}

@media (max-width: 560px) {
	.sm-yt__feature { padding-bottom: 62%; }
	.sm-yt__overlay { padding: 16px; }
	.sm-yt__badge { font-size: 10px; bottom: 16px; right: 16px; }
}
