/*
Theme Name: 20xx_wordpress
Theme URI: https://20xxnoticias.com/
Author: El Buho Social Media
Author URI: https://20xxnoticias.com/
Description: Tema de noticias para 20XX VideoGame & Tech News. Logo grande con menú debajo, ticker de últimas noticias, slider En portada, bloques Voices, Reseñas, Gaming News, Geek World y Vtuberverse, y espacios de widgets en el header, debajo de cada bloque y en el footer.
Version: 1.3.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 20xx_wordpress
Tags: news, blog, dark, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, widgets
*/

/* ---------- Tokens (colores del logo: negro y naranja) ---------- */
:root {
	--x20-bg: #000;
	--x20-surface: #0f0f0f;
	--x20-surface-2: #181818;
	--x20-surface-3: #262626;
	--x20-line: #2b2b2b;
	--x20-text: #f2f2f2;
	--x20-muted: #a6a6a6;
	--x20-orange: #f7941d;
	--x20-orange-hi: #ffb04a;
	--x20-on-accent: #000;
	--x20-radius: 8px;
	--x20-wrap: 1240px;
	--x20-font-head: "Poppins", system-ui, sans-serif;
	--x20-font-body: "Roboto", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--x20-bg);
	color: var(--x20-text);
	font-family: var(--x20-font-body);
	font-size: 16px;
	line-height: 1.6;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--x20-orange); text-decoration: none; }
a:hover { color: var(--x20-orange-hi); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--x20-orange); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--x20-font-head); line-height: 1.25; margin: 0 0 .5em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.screen-reader-text:focus {
	position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto;
	clip: auto; background: var(--x20-orange); color: var(--x20-on-accent); padding: .6rem 1rem; border-radius: 4px;
}
.x20-wrap { width: 100%; max-width: var(--x20-wrap); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header: widgets arriba, logo grande, menú debajo ---------- */
.x20-topbar { border-bottom: 1px solid var(--x20-line); font-size: .85rem; color: var(--x20-muted); }
.x20-topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.x20-date { text-transform: capitalize; }
.x20-widgets--header { margin: 0; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.x20-widgets--header .widget { margin: 0; }
.x20-widgets--header .widget-title { display: none; }

.x20-brand { display: flex; justify-content: flex-start; padding-top: 1.5rem; padding-bottom: 1rem; }
.x20-brand__logo a, .x20-brand__logo .custom-logo-link { display: block; line-height: 0; }
.x20-brand__logo img { display: block; width: auto; height: auto; max-height: 260px; max-width: min(100%, 520px); }
.x20-navwrap { margin-bottom: 0; }

.x20-nav { border: 1px solid var(--x20-line); border-bottom: 2px solid var(--x20-orange); border-radius: var(--x20-radius); background: var(--x20-surface); position: relative; z-index: 20; }
.x20-nav__in { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; flex-wrap: wrap; padding: 0 .75rem; }
.x20-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; }
.x20-menu li { position: relative; }
.x20-menu a {
	display: block; padding: .9rem 1.1rem; color: var(--x20-text);
	font-family: var(--x20-font-head); font-weight: 700; font-size: .95rem;
}
.x20-menu a:hover, .x20-menu .current-menu-item > a, .x20-menu .current-menu-ancestor > a { color: var(--x20-orange); }
.x20-menu .sub-menu {
	list-style: none; margin: 0; padding: .4rem 0; position: absolute; left: 0; top: 100%; min-width: 210px;
	background: var(--x20-surface-2); border: 1px solid var(--x20-line); border-top: 2px solid var(--x20-orange);
	display: none;
}
.x20-menu li:hover > .sub-menu, .x20-menu li:focus-within > .sub-menu { display: block; }
.x20-menu .sub-menu a { font-weight: 500; padding: .55rem 1rem; }
.x20-nav__toggle {
	display: none; background: var(--x20-orange); color: var(--x20-on-accent); border: 0; border-radius: 4px;
	font-family: var(--x20-font-head); font-weight: 800; padding: .6rem 1rem; cursor: pointer; margin: .5rem 0;
}
.x20-search { display: flex; align-items: stretch; gap: .35rem; }
.x20-nav .x20-search { margin-left: auto; }
.x20-search input[type="search"] {
	background: var(--x20-bg); color: var(--x20-text); border: 1px solid var(--x20-line); border-radius: 4px;
	padding: .4rem .7rem; width: 150px; font: inherit; font-size: .9rem;
}
.x20-search button {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; flex: none;
	background: var(--x20-orange); color: var(--x20-on-accent); border: 0; border-radius: 4px; cursor: pointer;
}
.x20-search button:hover { background: var(--x20-orange-hi); }
.x20-search button svg { display: block; }

/* ---------- Ticker "Últimas noticias" con autoscroll ---------- */
.x20-ticker-wrap { margin-top: 1.5rem; }
.x20-ticker { display: flex; align-items: stretch; background: var(--x20-surface); border: 1px solid var(--x20-line); border-radius: var(--x20-radius); overflow: hidden; }
.x20-ticker__label {
	flex: none; display: flex; align-items: center; background: var(--x20-orange); color: var(--x20-on-accent);
	font-family: var(--x20-font-head); font-weight: 800; padding: .6rem 1.1rem; white-space: nowrap; z-index: 1;
}
.x20-ticker__viewport { flex: 1; overflow: hidden; min-width: 0; }
.x20-ticker__track { display: flex; width: max-content; animation: x20-scroll var(--x20-ticker-time, 60s) linear infinite; }
.x20-ticker:hover .x20-ticker__track, .x20-ticker:focus-within .x20-ticker__track { animation-play-state: paused; }
.x20-ticker__list { display: flex; list-style: none; margin: 0; padding: 0; flex: none; }
.x20-ticker__list li { white-space: nowrap; }
.x20-ticker__list a { display: block; padding: .65rem 1.6rem; color: var(--x20-text); font-size: .92rem; border-right: 1px solid var(--x20-line); }
.x20-ticker__list a:hover { color: var(--x20-orange); }
.x20-ticker__cat { color: var(--x20-orange); font-weight: 700; margin-right: .6rem; }
@keyframes x20-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.x20-ticker__track { animation: none; }
	.x20-ticker__viewport { overflow-x: auto; }
	.x20-ticker__dup { display: none; }
}

/* ---------- Bloques ---------- */
.x20-main { padding-bottom: 2rem; }
.x20-block { margin: 2.25rem 0 0; }
.x20-block__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--x20-line); }
.x20-block__title {
	margin: 0; padding: .1rem 0 .5rem; font-size: 1.45rem; font-weight: 800;
	border-bottom: 3px solid var(--x20-orange); margin-bottom: -1px;
}
.x20-block__more { font-size: .85rem; font-weight: 700; color: var(--x20-muted); }
.x20-block__more:hover { color: var(--x20-orange); }
.x20-block__more--end { display: block; text-align: right; margin-top: 1rem; }

.x20-grid { display: grid; gap: 1.25rem; }
.x20-grid--4 { grid-template-columns: repeat(4, 1fr); }
.x20-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Tarjetas */
.x20-card { background: var(--x20-surface); border: 1px solid var(--x20-line); border-radius: var(--x20-radius); overflow: hidden; display: flex; flex-direction: column; }
.x20-card__img { display: block; aspect-ratio: 16 / 9; background: var(--x20-surface-2); overflow: hidden; }
.x20-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.x20-card:hover .x20-card__img img { transform: scale(1.04); }
.x20-card__ph { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, var(--x20-surface), var(--x20-surface) 10px, var(--x20-surface-2) 10px, var(--x20-surface-2) 20px); }
.x20-card__body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.x20-card__title { margin: 0; font-size: 1.05rem; font-weight: 700; }
.x20-card__title a, .x20-mini__title a, .x20-hero__title a { color: var(--x20-text); }
.x20-card__title a:hover, .x20-mini__title a:hover, .x20-hero__title a:hover { color: var(--x20-orange); }
.x20-card__excerpt { margin: 0; color: var(--x20-muted); font-size: .92rem; }
.x20-card__date { color: var(--x20-muted); font-size: .8rem; margin-top: auto; }
.x20-tag {
	align-self: flex-start; background: var(--x20-orange); color: var(--x20-on-accent); font-family: var(--x20-font-head);
	font-weight: 700; font-size: .75rem; padding: .1rem .55rem; border-radius: 3px; line-height: 1.6;
}
.x20-tag:hover { background: var(--x20-orange-hi); color: var(--x20-on-accent); }
.x20-card--feature { margin-bottom: 1rem; }
.x20-card--feature .x20-card__title { font-size: 1.3rem; }
.x20-card--wide { flex-direction: row; }
.x20-card--wide .x20-card__img { flex: 1.3; aspect-ratio: auto; min-height: 320px; }
.x20-card--wide .x20-card__body { flex: 1; justify-content: center; padding: 1.75rem; }
.x20-card--wide .x20-card__title { font-size: 1.7rem; }

/* Filas compactas */
.x20-list { display: grid; gap: .9rem; }
.x20-list--2 { grid-template-columns: repeat(2, 1fr); column-gap: 1.5rem; }
.x20-mini { display: flex; gap: .9rem; align-items: flex-start; }
.x20-mini__img { flex: none; width: 110px; aspect-ratio: 1; border-radius: var(--x20-radius); overflow: hidden; background: var(--x20-surface-2); }
.x20-mini__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x20-mini__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.x20-mini__cat { color: var(--x20-orange); font-size: .78rem; font-weight: 700; }
.x20-mini__title { margin: 0; font-size: .98rem; font-weight: 700; }

/* Hero */
.x20-hero__main { position: relative; flex: 0 0 100%; scroll-snap-align: start; border-radius: var(--x20-radius); overflow: hidden; border: 1px solid var(--x20-line); background: var(--x20-surface-2); min-height: 420px; }
.x20-hero__img { position: absolute; inset: 0; display: block; }
.x20-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.x20-hero__text {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.5rem 1.4rem;
	background: linear-gradient(to top, rgba(0, 0, 0, .92), rgba(0, 0, 0, 0));
	display: flex; flex-direction: column; gap: .5rem;
}
.x20-hero__title { margin: 0; font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 800; }

/* Slider "En portada" */
.x20-slider { position: relative; }
.x20-slider__viewport {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--x20-radius);
}
.x20-slider__viewport::-webkit-scrollbar { display: none; }
.x20-slider__btn {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.x20-slider__btn:hover { background: var(--x20-orange); color: var(--x20-on-accent); }
.x20-slider__btn--prev { left: .75rem; }
.x20-slider__btn--next { right: .75rem; }
.x20-slider__dots { position: absolute; right: 1.25rem; bottom: 1.1rem; z-index: 2; display: flex; gap: .45rem; }
.x20-slider__dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.x20-slider__dots button[aria-current="true"] { background: var(--x20-orange); border-color: var(--x20-orange); }
.x20-hero__text { padding-right: 6rem; }
.x20-hero__text .x20-hero__title a { color: #fff; }
.x20-hero__text .x20-hero__title a:hover { color: var(--x20-orange-hi); }
.x20-hero__text .x20-card__date { color: #d4d4d4; }
@media (prefers-reduced-motion: reduce) { .x20-slider__viewport { scroll-behavior: auto; } }

/* Dos columnas (Gaming News | Geek World) */
.x20-cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.x20-col { min-width: 0; }

/* ---------- Widgets ---------- */
.x20-widgets { margin: 1.75rem 0 0; }
.x20-widgets .widget { margin: 0 0 1.25rem; }
.x20-widgets .widget-title, .x20-footer .widget-title {
	font-size: 1.05rem; font-weight: 800; margin: 0 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--x20-orange); display: inline-block;
}
.x20-widgets-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 0; }
.x20-widgets--empty { border: 1px dashed var(--x20-orange); border-radius: var(--x20-radius); padding: .6rem 1rem; color: var(--x20-muted); font-size: .8rem; }
.x20-widgets--empty p { margin: 0; }
.x20-widgets--header.x20-widgets--empty { padding: .1rem .6rem; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .35rem 0; border-bottom: 1px solid var(--x20-line); }
.widget img { height: auto; }

/* ---------- Entradas, páginas y archivos ---------- */
.x20-page { padding-top: 2rem; }
.x20-page__title { font-size: 2rem; font-weight: 800; border-bottom: 3px solid var(--x20-orange); display: inline-block; padding-bottom: .3rem; margin-bottom: 1.5rem; }
.x20-page__desc { color: var(--x20-muted); margin-bottom: 1.5rem; }
.x20-empty { color: var(--x20-muted); }
.x20-single { max-width: 920px; padding-top: 2rem; }
.x20-article__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin: .6rem 0; }
.x20-article__meta { color: var(--x20-muted); font-size: .9rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.x20-article__img { margin: 1.25rem 0; }
.x20-article__img img { width: 100%; height: auto; border-radius: var(--x20-radius); display: block; }
.x20-content { font-size: 1.08rem; line-height: 1.75; max-width: none; }
.x20-content img { border-radius: var(--x20-radius); }
.x20-content blockquote { margin: 1.5rem 0; padding: .5rem 1.25rem; border-left: 4px solid var(--x20-orange); color: var(--x20-muted); }
.x20-tags { display: none; }
.x20-tags a { display: inline-block; margin: 0 .35rem .35rem 0; padding: .15rem .6rem; border: 1px solid var(--x20-line); border-radius: 999px; font-size: .8rem; color: var(--x20-muted); }
.x20-tags a:hover { border-color: var(--x20-orange); color: var(--x20-orange); }
.post-navigation, .pagination, .comments-pagination { margin: 2rem 0; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; }
.pagination .nav-links, .comments-pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.page-numbers { padding: .4rem .85rem; border: 1px solid var(--x20-line); border-radius: 4px; color: var(--x20-text); }
.page-numbers.current, .page-numbers:hover { background: var(--x20-orange); color: var(--x20-on-accent); border-color: var(--x20-orange); }
.x20-comments { margin-top: 2.5rem; }
.x20-comments__list { list-style: none; padding: 0; }
.x20-comments .comment-body { padding: 1rem 0; border-bottom: 1px solid var(--x20-line); }
.x20-comments input[type="text"], .x20-comments input[type="email"], .x20-comments input[type="url"], .x20-comments textarea {
	width: 100%; background: var(--x20-surface); color: var(--x20-text); border: 1px solid var(--x20-line); border-radius: 4px; padding: .6rem .8rem; font: inherit;
}
.x20-comments .submit { background: var(--x20-orange); color: var(--x20-on-accent); border: 0; border-radius: 4px; padding: .6rem 1.2rem; font-weight: 700; cursor: pointer; }
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption-text, figcaption { color: var(--x20-muted); font-size: .85rem; }

/* ---------- Footer ---------- */
.x20-footer { background: var(--x20-surface); border-top: 3px solid var(--x20-orange); padding: 2rem 0 1.5rem; text-align: center; }
.x20-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: left; margin-bottom: 1.5rem; }
.x20-footer__social { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.x20-social { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.x20-social__btn {
	display: inline-block; padding: .45rem 1rem; border: 1px solid var(--x20-orange); border-radius: 999px;
	color: var(--x20-orange); font-family: var(--x20-font-head); font-weight: 700; font-size: .85rem;
}
.x20-social__btn:hover { background: var(--x20-orange); color: var(--x20-on-accent); }
.x20-widgets--social { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.x20-widgets--social .widget { margin: 0; }
.x20-widgets--social .widget-title { display: none; }
.x20-footer__menu { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin: 1.25rem 0 0; padding: 0; }
.x20-footer__menu a { color: var(--x20-muted); font-size: .9rem; }
.x20-footer__menu a:hover { color: var(--x20-orange); }
.x20-signature { margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--x20-line); color: var(--x20-muted); font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.x20-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.x20-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.x20-card--wide { flex-direction: column; }
	.x20-card--wide .x20-card__img { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
}
@media (max-width: 760px) {
	.x20-brand__logo img { max-height: 200px; }
	.x20-nav__in { justify-content: space-between; }
	.x20-nav__toggle { display: block; }
	.x20-menu { display: none; width: 100%; flex-direction: column; order: 3; }
	.x20-menu.is-open { display: flex; }
	.x20-menu .sub-menu { position: static; display: block; border: 0; background: transparent; padding-left: 1rem; }
	.x20-nav .x20-search { order: 2; margin-left: auto; }
	.x20-search input[type="search"] { width: 120px; }
	.x20-cols2, .x20-widgets-pair, .x20-list--2, .x20-footer__cols { grid-template-columns: 1fr; }
	.x20-grid--4, .x20-grid--3 { grid-template-columns: 1fr; }
	.x20-ticker__label { padding: .6rem .8rem; font-size: .85rem; }
	.x20-hero__main { min-height: 300px; }
	.x20-hero__text { padding-right: 1.5rem; padding-bottom: 3rem; }
	.x20-topbar__in { justify-content: center; }
}

/* ---------- Final de la nota ---------- */
.x20-widgets--after-post { margin-top: 2rem; }

/* ---------- Caja de autor: texto en blanco ---------- */
.x20-article :is(.saboxplugin-wrap, .author-box, .author-info, .author-bio-box, .pp-multiple-authors-boxes-wrapper, .pp-author-boxes-wrapper, .ppma-author-category-wrap, .wp-block-post-author, [class*="author-box"], [class*="authorbox"], [class*="author_box"], [class*="saboxplugin"]) :is(p, div, span, li, small, strong, em, h1, h2, h3, h4):not(a) {
	color: #fff !important;
}

/* ---------- Tablas y columnas: nada de fondos blancos ---------- */
.x20-content table { width: 100%; border-collapse: collapse; background: transparent; color: var(--x20-text); }
.x20-content :is(th, td) { border-color: var(--x20-line); color: var(--x20-text); }
.x20-content .wp-block-table.is-style-stripes { border-bottom-color: var(--x20-line); }
.x20-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.x20-content table tbody tr:nth-child(odd) { background-color: var(--x20-surface-3); }
.x20-content :is(table, thead, tbody, tfoot, tr, th, td, .wp-block-column, .wp-block-columns, .wp-block-group)[style*="background"]:is([style*="#fff" i], [style*="#ffffff" i], [style*="white" i], [style*="255, 255, 255"], [style*="255,255,255"], [style*="#f0f0f0" i], [style*="#f5f5f5" i], [style*="#f9f9f9" i], [style*="#fafafa" i], [style*="#eee" i]),
.x20-content :is(.has-white-background-color, .has-very-light-gray-background-color) {
	background-color: var(--x20-surface-3) !important;
	color: var(--x20-text) !important;
}
.x20-content :is(table, .wp-block-column, .wp-block-group)[style*="background"]:is([style*="#fff" i], [style*="white" i], [style*="255, 255, 255"], [style*="#f0f0f0" i]) :is(p, span, strong, em, b, i, h2, h3, h4) { color: inherit !important; }

/* ---------- Nota anterior / siguiente (debajo de todo, sin flotar al lado de los botones) ---------- */
.x20-content { display: flow-root; }
.x20-widgets--after-post, .x20-postnav, .x20-comments { clear: both; }
.x20-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--x20-line); }
.x20-postnav__item {
	display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.15rem; min-width: 0;
	background: var(--x20-surface); border: 1px solid var(--x20-line); border-radius: var(--x20-radius);
}
.x20-postnav__item:hover { border-color: var(--x20-orange); }
.x20-postnav__item--next { grid-column: 2; text-align: right; }
.x20-postnav__label { color: var(--x20-orange); font-family: var(--x20-font-head); font-weight: 800; font-size: .85rem; }
.x20-postnav__title { color: var(--x20-text); font-family: var(--x20-font-head); font-weight: 700; line-height: 1.35; }
@media (max-width: 760px) {
	.x20-postnav { grid-template-columns: 1fr; }
	.x20-postnav__item--next { grid-column: 1; }
}

/* ---------- Texto de las notas: justificado por defecto, pero lo centrado/derecha/izquierda manda ---------- */
/* Se aplica una sola vez al contenedor y se hereda: cualquier alineación que elijas en el editor
   (en el párrafo o en un bloque que lo contenga) reemplaza al justificado. */
.x20-content { text-align: justify; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.x20-content :where(figcaption, .wp-caption-text) { text-align: left; }
.x20-content .has-text-align-center { text-align: center; }
.x20-content .has-text-align-right { text-align: right; }
.x20-content .has-text-align-left { text-align: left; }
.x20-content .aligncenter, .x20-content .wp-block-image.aligncenter { text-align: center; }

/* ---------- Nota anterior / siguiente: siempre debajo de los botones de compartir ---------- */
.x20-article { display: flow-root; }
.x20-article .post-navigation { display: none; }
.x20-postnav { clear: both; width: 100%; }

/* ---------- Imagen y texto de la nota: mismo ancho, imagen sin recortar ---------- */
.x20-article__img { margin-left: 0; margin-right: 0; }
.x20-article__img img { width: 100%; height: auto; aspect-ratio: auto; }
.x20-content { width: 100%; }

/* ---------- Imagen de portada de la nota: proporción original, sin estirarse ---------- */
.x20-article__img { aspect-ratio: var(--x20-ratio, 16 / 9); width: 100%; overflow: hidden; border-radius: var(--x20-radius); background: var(--x20-surface); }
.x20-article__img img { display: block; width: 100% !important; height: 100% !important; max-width: 100%; object-fit: contain; border-radius: 0; }
