/* Trang chi tiết tin — bố cục Cổng Tỉnh uỷ (không Viettel TTS) */
#articleZoomRoot {
    --article-font-scale: 1;
}

#articleZoomRoot > .news-title {
    font-size: calc(1.65rem * var(--article-font-scale, 1));
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 10px;
}

#articleZoomRoot > .news-summary {
    font-size: calc(1.05rem * var(--article-font-scale, 1));
    line-height: 1.65;
    font-style: italic;
    color: #555;
}

#articleZoomRoot > .news-content {
    font-size: calc(1rem * var(--article-font-scale, 1));
    line-height: 1.75;
    text-align: justify;
}

#articleZoomRoot > .news-meta,
#articleZoomRoot .news-meta-top {
    font-size: 1rem;
}

#articleZoomRoot > .news-meta .news-font-btns .btn {
    min-width: 2.1rem;
    padding: 0.15rem 0.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.news-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.news-meta div {
    display: flex;
    align-items: center;
}

.news-meta-main {
    flex: 1 1 auto;
    min-width: 0;
}

.news-meta-fonts-wrap {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 0.75rem;
    border-left: 1px solid rgba(0, 0, 0, 0.12);
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .news-meta-fonts-wrap {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 0.35rem;
        margin-top: 0.15rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
}

/* Ảnh trong bài: luôn 90% khung nội dung — desktop / tablet / mobile */
.news-content img {
    width: 90% !important;
    max-width: 90% !important;
    height: auto !important;
    display: block !important;
    margin: 0.85rem auto 0.35rem !important;
    float: none !important;
}

.news-content figure,
.news-content figure.image,
.news-content figure.table,
.news-content table.image,
.news-content table.contentimg {
    width: 90% !important;
    max-width: 90% !important;
    margin: 0.85rem auto 0.35rem !important;
    border: 0 !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.news-content figure img,
.news-content table img,
.news-content td img {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 0.25rem !important;
}

.news-content figcaption,
.news-content .image-caption,
.news-content td.desc,
.news-content p:has(> em:only-child),
.news-content p:has(> i:only-child) {
    width: 90%;
    max-width: 90%;
    margin: 0.1rem auto 0.9rem !important;
    padding: 0 !important;
    text-align: center !important;
    font-style: italic;
    color: #555;
    border: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.news-content figure figcaption,
.news-content table td.desc,
.news-content figure.table td {
    width: 100% !important;
    max-width: 100% !important;
}

.news-content figcaption::before,
.news-content figcaption::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
}

#articleZoomRoot .news-content table,
#articleZoomRoot .news-content table.table,
#articleZoomRoot .news-content table.table-bordered,
#articleZoomRoot .news-content table.table-sm {
    --bs-table-border-color: transparent;
    --bs-border-color: transparent;
    border: 0 !important;
    border-collapse: collapse !important;
    background: transparent !important;
    box-shadow: none !important;
}

#articleZoomRoot .news-content table > :not(caption) > * > *,
#articleZoomRoot .news-content table td,
#articleZoomRoot .news-content table th {
    border: 0 !important;
    border-top: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0.15rem 0;
    vertical-align: top;
    text-align: center !important;
}

.news-content .news-embed-16x9 {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 1rem auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #111;
}

.news-content .news-embed-16x9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#newsAttachModal .modal-dialog {
    max-width: min(96vw, 1100px);
}

#newsAttachModal .news-attach-iframe {
    width: 100%;
    min-height: 72vh;
    border: 0;
    display: block;
    background: #f8f9fa;
}

