/* Video preview thumbnails */

.ms-video-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	background-color: var(--color-contrast-lower, #f2f2f2);
}

/* When the thumbnail is placed inside a .media-wrapper (blog listing). */
.media-wrapper > .ms-video-thumb {
	position: absolute;
	inset: 0;
}

.ms-video-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.6s cubic-bezier(0.38, 0.005, 0.215, 1);
}

.ms-video-thumb:hover img,
.ms-video-thumb:focus-visible img {
	transform: scale(1.04);
}

.ms-video-thumb__play {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.ms-video-thumb__play-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	transition: transform 0.25s ease, background-color 0.25s ease;
}

.ms-video-thumb__play-icon::before {
	content: "";
	display: block;
	margin-left: 5px;
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #fff;
}

.ms-video-thumb:hover .ms-video-thumb__play-icon,
.ms-video-thumb:focus-visible .ms-video-thumb__play-icon {
	transform: scale(1.08);
	background-color: rgba(0, 0, 0, 0.7);
}

/* Search results */
.ms-video-thumb--search {
	margin-bottom: var(--space-md, 2rem);
	border-radius: 24pt;
}

/* Archive cards */
.ms-archive-card__media.ms-video-thumb--archive {
	position: relative;
}

@media (max-width: 767px) {
	.ms-video-thumb__play-icon {
		width: 54px;
		height: 54px;
	}

	.ms-video-thumb__play-icon::before {
		border-width: 9px 0 9px 15px;
	}
}
