/**
 * Click-to-play embed facades, GWill Finance (v1.0.183).
 *
 * The facade <button> fills the block's existing aspect-ratio box
 * (wp-has-aspect-ratio keeps its ::before padding), so the layout is
 * identical before and after the click. Spotify embeds carry no
 * aspect class, so the facade provides its own 152px box.
 */

/*
Table of Contents
1. click-to-load video facade styles
*/
/* ── 1. click-to-load video facade styles ── */

.art-body .wp-block-embed__wrapper .gwill-embed {
	position: absolute;
	top: 0; right: 0; bottom: 0; left: 0; /* v1.0.204: longhand fallback for Safari 14.0 / iOS 14.0-14.4 (inset unsupported) */
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--r-md);
	/* Poster is painted as the button's own inline background-image
	   (v1.0.184, tech v1.16.79 pattern, no <img> element). The surface
	   color stays as the fallback when there is no poster (Spotify) or
	   the poster fails to load (e.g. i.ytimg.com 403 from Google's PSI
	   infra). */
	background-color: var(--surface-2);
	background-image: none;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: var(--gold);
	cursor: pointer;
	overflow: hidden;
	transition: box-shadow var(--t);
}

.art-body .wp-block-embed__wrapper .gwill-embed:hover,
.art-body .wp-block-embed__wrapper .gwill-embed:focus-visible {
	box-shadow: 0 0 0 3px var(--gold-glow), 0 10px 28px rgba(0, 0, 0, 0.16);
	outline: none;
}

/* Spotify embeds have no aspect-ratio class, the facade is its own box. */
.art-body .wp-block-embed__wrapper .gwill-embed--spotify {
	position: relative;
	height: 152px;
	background: #191414;
}

/* Spotify embeds have no aspect-ratio class, the facade is its own box.
   The #191414 shorthand also resets background-image (no poster). */
.gwill-embed__icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--gold);
	color: #fff;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
	transition: transform var(--t);
}

.gwill-embed:hover .gwill-embed__icon,
.gwill-embed:focus-visible .gwill-embed__icon {
	transform: scale(1.07);
}

.gwill-embed--spotify .gwill-embed__icon {
	background: #1db954;
}

.gwill-embed__label {
	position: absolute;
	right: 12px;
	bottom: 10px;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.82);
	color: var(--text-dim);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gwill-embed--spotify .gwill-embed__label {
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
}
