/* ============================================================
   style-newspaper.css — Estilos para Publicaciones / Periódico
   Soporte para layouts de 1, 2 y 3 columnas y formatos de imagen.
   ============================================================ */

/* Contenedor de la publicación */
.article-newspaper-body,
.article-body {
    color: #E2E8F0;
    font-size: 1.05rem;
    line-height: 1.85;
}

.article-newspaper-body p,
.article-body p {
    margin-bottom: 1.5rem;
}

/* Layouts Multicolumna (Desktop) */
@media (min-width: 992px) {
    .news-columns-2 {
        column-count: 2;
        column-gap: 2.5rem;
        column-rule: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .news-columns-3 {
        column-count: 3;
        column-gap: 2rem;
        column-rule: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 991px) {
    .news-columns-2,
    .news-columns-3 {
        column-count: 1 !important;
    }
}

/* Prevenir corte o solapamiento de imágenes y tablas entre columnas */
.article-newspaper-body img,
.article-body img,
.article-newspaper-body blockquote,
.article-body blockquote,
.article-newspaper-body iframe,
.article-body iframe,
.article-newspaper-body figure,
.article-body figure {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 1.5rem auto !important;
    border-radius: 12px;
}

/* Formatos de Imagen (Aspect Ratios) */
.img-newspaper {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.img-ratio-1x1 {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    max-width: 400px;
}

.img-ratio-16x9 {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    width: 100%;
}

.img-ratio-9x16 {
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 12px;
    max-width: 320px;
}

/* Visor PDF Embebido */
.pdf-viewer-container {
    width: 100%;
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0C121C;
    border: 1px solid rgba(255, 131, 42, 0.2);
}

.pdf-viewer-frame {
    width: 100%;
    height: 650px;
    border: none;
}
