/**
 * Alinhamento dos cartoes de redes sociais do plugin fora do single
 * (page, CPT, home, arquivo, busca). Espelho de social-embeds.css, com o
 * prefixo body:not(.single) no lugar de .single e sem os ancestrais
 * .post .content, que so existem na materia. Nunca e enfileirada junto com
 * social-embeds.css: no single vale aquela folha; fora dele, esta, so quando
 * a pagina tem wrapper do plugin (core.php, request_outside_assets()).
 * Sem !important. Sem TikTok, sem a blindagem D26 e sem Facebook (o wrapper
 * do Facebook ja leva estilo inline). Copia identica em abril-master2 e
 * abril-master3.
 */

body:not(.single) .abril-social-embed {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 24px auto;
}

body:not(.single) .abril-social-embed--youtube {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-height: 0;
	aspect-ratio: 16 / 9;
}
/* O <a> fica no HTML para quem nao carrega o iframe; na tela, so o video. */
body:not(.single) .abril-social-embed--youtube > a {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body:not(.single) .abril-social-embed--youtube iframe {
	display: block;
	width: 100%;
	max-width: 100%;
	height: 100%;
	border: 0;
}

/* Navegador sem aspect-ratio: proporcao 16/9 pelo padding (9/16 = 56.25%). */
@supports not (aspect-ratio: 16 / 9) {
	body:not(.single) .abril-social-embed--youtube {
		height: 0;
		padding-bottom: 56.25%;
	}

	body:not(.single) .abril-social-embed--youtube iframe {
		position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
	}
}

body:not(.single) .abril-social-embed--x,
body:not(.single) .abril-social-embed--instagram {
	display: flex;
	justify-content: center;
	width: 100%;
	margin: 24px auto;
}

body:not(.single) .abril-social-embed--x > .noreadme-audima:not(.ads):not(.abrAD):not(.post-ads) {
	display: flex;
	justify-content: center;
	width: 100%;
	flex-shrink: 0;
}

body:not(.single) .abril-social-embed--x > blockquote.twitter-tweet,
body:not(.single) .abril-social-embed--instagram > .audima-iframe-instagram:not(.ads):not(.abrAD):not(.post-ads),
body:not(.single) .abril-social-embed--instagram > blockquote.instagram-media,
body:not(.single) .abril-social-embed--instagram .audima-iframe-instagram:not(.ads):not(.abrAD):not(.post-ads) > blockquote.instagram-media {
	flex-shrink: 0;
}

/* Reset do pull-quote so no blockquote dentro do wrapper do plugin. */
body:not(.single) .abril-social-embed > blockquote.twitter-tweet,
body:not(.single) .abril-social-embed > blockquote.instagram-media {
	float: none;
	width: auto;
	margin-left: auto;
	margin-right: auto;
}

/* D18: cartao/link de fallback do Instagram. Sem overflow hidden;
 * sem display:none como porta do embed. */
body:not(.single) .abril-social-embed--instagram > a.abril-social-embed__ig-fallback {
	display: inline-block;
	box-sizing: border-box;
	max-width: 100%;
	padding: 12px 16px;
	border: 1px solid #dbdbdb;
	border-radius: 3px;
	text-align: center;
}

/* So o LINK de fallback oculto sai do layout; nunca esconder um iframe. */
body:not(.single) .abril-social-embed--instagram > a.abril-social-embed__ig-fallback[hidden] {
	display: none;
}

/* D23: Pinterest (pin medium 345; board/perfil 2 colunas). */
body:not(.single) .abril-social-embed--pinterest {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: 24px auto;
	overflow: hidden;
}
body:not(.single) .abril-social-embed--pinterest > * {
	max-width: 100%;
}
body:not(.single) .abril-social-embed--pinterest > a[data-pin-do] {
	display: inline-block;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid #dbdbdb;
	border-radius: 3px;
	text-align: center;
}

/* D24: Bluesky. O wrapper usa 14px e o placeholder 10px: 24px visiveis
 * antes e depois, sem pulo. */
body:not(.single) .abril-social-embed--bluesky {
	display: flex;
	justify-content: center;
	width: 100%;
	min-height: 200px;
	margin: 14px auto;
}
body:not(.single) .abril-social-embed--bluesky > .bluesky-embed {
	box-sizing: border-box;
	width: 100%;
	max-width: 600px;
	margin: 10px auto;
}
body:not(.single) .abril-social-embed--bluesky > .bluesky-embed[data-bluesky-uri] {
	display: flex;
	align-items: center;
	justify-content: center;
}
body:not(.single) .abril-social-embed--bluesky blockquote.bluesky-embed,
body:not(.single) .abril-social-embed--bluesky iframe {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
body:not(.single) .abril-social-embed--bluesky .bluesky-embed > a {
	display: inline-block;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid #dbdbdb;
	border-radius: 3px;
	text-align: center;
}

/* D33: Threads (post). Teto de 500 no wrapper (cartao X/IG). */
body:not(.single) .abril-social-embed--threads {
	max-width: 500px;
	margin: 24px auto;
}
body:not(.single) .abril-social-embed--threads > iframe {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
/* Especificidade 0-6-2, a mesma da folha do single, acima da borda inline do
 * branded-hub (0-5-2), sem depender de .post .content. */
body:not(.single):not(.single-post) .abril-social-embed.abril-social-embed--threads.noreadme-audima > blockquote[data-text-post-permalink] {
	float: none;
	box-sizing: border-box;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	text-align: center;
}
body:not(.single) .abril-social-embed--threads > blockquote[data-text-post-permalink] > a:not([style]) {
	display: inline-block;
	box-sizing: border-box;
	padding: 12px 16px;
	border: 1px solid #dbdbdb;
	border-radius: 3px;
}

/* D44: Snapchat. Teto de 416 no wrapper, iframe centrado e contorno no link
 * de fallback. */
body:not(.single) .abril-social-embed--snapchat {
	max-width: 416px;
	margin: 24px auto;
}
body:not(.single) .abril-social-embed--snapchat > iframe {
	display: block;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}
body:not(.single) .abril-social-embed--snapchat > .snapchat-embed > a {
	display: inline-block;
	padding: 12px 16px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 12px;
}
