/*
 * Click-to-play placeholder for YouTube embeds.
 *
 * Inside core's responsive embed wrapper (`.wp-has-aspect-ratio`), the wrapper
 * already reserves 16:9 with a padding hack and expects an absolutely positioned
 * child, so the placeholder fills it the way the iframe did. Anywhere else, it
 * reserves 16:9 itself.
 */
.swest-video {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
}

.wp-has-aspect-ratio .swest-video {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.swest-video__play,
.swest-video__frame {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	width: 100%;
	height: 100%;
	border: 0;
	box-sizing: border-box;
}

.swest-video__play {
	padding: 1.25em;
	background: var(--global-palette3, #1a202c);
	color: var(--global-palette9, #fff);
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
}

.swest-video__play:hover,
.swest-video__play:focus-visible {
	color: var(--global-palette9, #fff);
	background: var(--global-palette4, #2d3748);
}

.swest-video__play:focus-visible {
	outline: 3px solid var(--global-palette1, #3182ce);
	outline-offset: 3px;
}

.swest-video__icon {
	width: 4em;
	height: 4em;
	border-radius: 50%;
	background: var(--global-palette9, #fff);
	position: relative;
}

.swest-video__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 0.8em 0 0.8em 1.3em;
	border-color: transparent transparent transparent var(--global-palette3, #1a202c);
}

.swest-video__title {
	font-weight: 600;
	font-size: 1.05em;
	max-width: 36em;
}

.swest-video__note {
	font-size: 0.85em;
	opacity: 0.85;
	max-width: 36em;
}
