/**
 * [fx_embed] shortcode – embed with custom play icon overlay
 */

.fx-embed-with-play-icon {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
	aspect-ratio: 16 / 9;
}

.fx-embed-with-play-icon .fx-embed-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
}

.fx-embed-with-play-icon .fx-embed-overlay:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.fx-embed-with-play-icon .fx-embed-overlay.is-hidden {
	pointer-events: none;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fx-embed-with-play-icon .fx-embed-thumbnail,
.fx-embed-with-play-icon .fx-embed-thumbnail-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fx-embed-with-play-icon .fx-embed-thumbnail-placeholder {
	background: #1a1a1a;
}

.fx-embed-with-play-icon .fx-embed-play-icon {
	background-image: url(/wp-content/themes/seofx/assets/img/icons/icon-play.png);
	background-repeat: no-repeat;
	background-position: left;
	background-size: 100%;
	content: " ";
	display: block;
	width: 120px;
	height: 80px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
}

.fx-embed-with-play-icon .fx-embed-overlay:hover .fx-embed-play-icon {
	zoom: 1.1;
}

.fx-embed-with-play-icon .fx-embed-play-icon img {
	width: 115px;
	height: 81px;
	max-width: 30%;
	object-fit: contain;
}

.fx-embed-with-play-icon .fx-embed-iframe-wrap {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: none;
	width: 100%;
	height: 100%;
}

.fx-embed-with-play-icon .fx-embed-iframe-wrap.is-visible {
	display: block;
}

.fx-embed-with-play-icon .fx-embed-iframe-wrap iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
