/* OKD Core: Instagram and TikTok embeds. Centred in the article column with a thin border. */
figure.okd-social-embed.okd-social-embed,
.entry-content figure.okd-social-embed.okd-social-embed {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 400px;
	/* The same space as between two paragraphs (theme: --entry-paragraph-gap). */
	margin: var(--entry-paragraph-gap, 16px) auto;
	padding: 0;
	border: 0;
	background: none;
	float: none;
	clear: both;
	text-align: initial;
}
/* Embed block that keeps its wrapper (it has a caption): the block carries the paragraph gap. */
.entry-content .wp-block-embed:has(.okd-social-embed) {
	margin-top: var(--entry-paragraph-gap, 16px);
	margin-bottom: var(--entry-paragraph-gap, 16px);
	content-visibility: visible;
}
.wp-block-embed figure.okd-social-embed.okd-social-embed {
	margin-top: 0;
	margin-bottom: 0;
}
figure.okd-social-embed--instagram-p.okd-social-embed {
	max-width: 540px;
}
figure.okd-social-embed--tiktok.okd-social-embed {
	max-width: 340px;
}
.okd-social-embed .okd-social-embed__frame {
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(47, 58, 68, 0.28);
	border-radius: 8px;
	background: #fff;
}
.okd-social-embed .okd-social-embed__frame iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
	border: 0;
	background: transparent;
	aspect-ratio: 9 / 15.5; /* reel: 9:16 video plus header and a caption line */
}
.okd-social-embed--instagram-p .okd-social-embed__frame iframe {
	aspect-ratio: 4 / 5.6;
}
.okd-social-embed--instagram.is-measured .okd-social-embed__frame iframe {
	aspect-ratio: auto;
}
.okd-social-embed--tiktok .okd-social-embed__frame iframe {
	aspect-ratio: 9 / 16;
}
body.dark-mode .okd-social-embed .okd-social-embed__frame {
	border-color: #475569;
	background: var(--surface-elevated, #16233a);
}
