/* Universal Embed — front-end styles */

.ue-embed {
	margin: 1.5em auto;
	max-width: 100%;
}

/* Alignment ----------------------------------------------------------- */
.ue-align-left   { margin-left: 0; margin-right: auto; }
.ue-align-right  { margin-left: auto; margin-right: 0; }
.ue-align-center { margin-left: auto; margin-right: auto; }
.ue-align-wide   { max-width: min(1100px, 100%); }
.ue-align-full   { max-width: 100%; }

/* Responsive video / iframe wrappers ---------------------------------- */
.ue-video {
	position: relative;
	width: 100%;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
}
.ue-video::before {
	content: "";
	display: block;
	padding-top: 56.25%; /* default 16:9 */
}
.ue-ratio-16-9::before { padding-top: 56.25%; }
.ue-ratio-4-3::before  { padding-top: 75%; }
.ue-ratio-1-1::before  { padding-top: 100%; }
.ue-ratio-21-9::before { padding-top: 42.857%; }

.ue-video iframe,
.ue-video .ue-facade {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Click-to-load facade ------------------------------------------------ */
.ue-facade {
	display: block;
	cursor: pointer;
	background-size: cover;
	background-position: center;
	background-color: #000;
	padding: 0;
	transition: filter .2s ease;
}
.ue-facade:hover { filter: brightness(1.07); }

.ue-facade .ue-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 68px;
	height: 48px;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, .72);
	border-radius: 12px;
	transition: background .2s ease, transform .15s ease;
}
.ue-facade:hover .ue-play {
	background: #f00;
	transform: translate(-50%, -50%) scale(1.04);
}
.ue-facade .ue-play::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 52%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 11px 0 11px 19px;
	border-color: transparent transparent transparent #fff;
}

/* Documents & audio --------------------------------------------------- */
.ue-document iframe,
.ue-audio iframe {
	width: 100%;
	border: 0;
	border-radius: 8px;
	display: block;
}
.ue-document {
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 8px;
	overflow: hidden;
}
.ue-fallback {
	margin: 0;
	padding: .5em .75em;
	font-size: .85em;
	background: #f6f7f8;
}

/* Social -------------------------------------------------------------- */
.ue-social { display: flow-root; }
.ue-social .twitter-tweet,
.ue-social .instagram-media {
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Notices ------------------------------------------------------------- */
.ue-notice {
	padding: .85em 1em;
	border: 1px dashed #c7c7c7;
	border-radius: 6px;
	background: #fafafa;
	color: #555;
	font-size: .9em;
}

/* Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.ue-facade, .ue-facade .ue-play { transition: none; }
}
