/* =====================================================================
   Contenido de los artículos escrito con el editor del panel (CKEditor 4.22 + image2)
   ===================================================================== */
.post-item-description img { max-width: 100%; height: auto; }

/* Imagen con pie de foto */
.post-item-description figure.image { display: inline-block; max-width: 100%; margin: 10px 0 20px; background: #f7f7f7; padding: 6px; border-radius: 4px; }
.post-item-description figure.image img { display: block; margin: 0 auto; }
.post-item-description figure.image figcaption { font-size: 13px; line-height: 1.4; color: #777; text-align: center; padding: 6px 4px 0; }

/* Alineaciones que pone el editor */
.post-item-description .image-align-center, .post-item-description figure.image[style*="margin"] { display: table; margin-left: auto; margin-right: auto; }
.post-item-description img[style*="float:left"], .post-item-description figure[style*="float:left"] { margin: 4px 20px 10px 0; }
.post-item-description img[style*="float:right"], .post-item-description figure[style*="float:right"] { margin: 4px 0 10px 20px; }

/* Tablas y vídeos incrustados */
.post-item-description table { max-width: 100%; }
.post-item-description iframe { max-width: 100%; }

@media (max-width: 767px) {
    /* En el móvil, nada flotando al lado del texto */
    .post-item-description img[style*="float"], .post-item-description figure[style*="float"] { float: none !important; display: block; margin: 10px auto !important; }
}

/* =====================================================================
   SEO: títulos que pasan de h2 a h1, con el mismo aspecto que tenían
   ===================================================================== */
h1.titulo-portada { font-family: "Poppins", sans-serif; font-size: 2.5rem; line-height: 1.2; font-weight: 400; margin-bottom: 1rem; color: #1e2022; }
#page-title .page-title > h1 { font-family: "Poppins", sans-serif; font-size: 2.5rem; line-height: 1.2; font-weight: 400; margin-bottom: 1rem; color: #1e2022; }
.post-item .post-item-description > h1 { font-size: 34px; letter-spacing: 0; line-height: 38px; margin-bottom: 12px; margin-top: 8px; color: #1e2022; font-weight: 600; }
@media (max-width: 991.98px) {
    #page-title .page-title > h1 { font-size: 26px; line-height: 34px; }
    h1.titulo-portada { font-size: 1.75rem; }
}
