/* Handle video in legacy gutenberg pages */

.page .gutenberg .rc-mh-video-wrapper {
	max-width: 640px;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 64px;
	padding-left: 0;
	padding-right: 0;
}

.rc-mh-video-wrapper {
	max-width: 640px;
	margin: 24px auto;
	padding-left: 16px;
	padding-right: 16px;
}

@media (min-width: 768px) {
	.rc-mh-video-wrapper {
		padding-left: 24px;
		padding-right: 24px;
		margin: 48px auto;
	}
}

.mh-video-wrapper {
	max-width: 640px;
	position: relative;
}

.mh-video-wrapper .mh-video-iframe.hidden,
.mh-video-wrapper .mh-video-container.hidden {
	display: none;
}

.mh-video-wrapper .thumbnail-button {
	width: 100%;
	height: 100%;
	aspect-ratio: 16/9;
	border-radius: 4px;
	cursor: pointer;
	background-size: cover;
	background-position: center;
	position: relative;
}

.mh-video-wrapper .play-button {
	position: absolute;
	background-color: #add2bc; /* Minty Fresh/100 */
	padding: 12px;
	bottom: 24px;
	left: 24px;
}

/* Video switcher */
.mh-video-switcher {
	position: absolute;
	bottom: 0;
	right: 24px;
	display: flex;
	margin-top: 0.5rem;
	background-color: #f3f4f6; /* --Neutrals-Gray-Light */
	color: #9ca3af; /* --Neutrals-Gray */
	transform: translateY(12px);
	border-radius: 2px;
	overflow: hidden;
}

.mh-video-switcher button {
	padding: 0.5rem 2rem;
	border: none;
	font-weight: 700;
	cursor: pointer;
}

.mh-video-switcher button.active {
	background: #030712; /* --Neutrals-Black */
	color: #f9fafb; /* --Neutrals-White */
}

.mh-video-meta {
	padding: 24px;
	background: var(--color-neutral-gray-light);
}

.mh-video-title {
	font-size: 24px;
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 32px;
}

.mh-video-description {
	font-size: 16px;
	font-family: var(--font-sans);
	color: var(--color-neutral-black);
}
