/* Lượt 5L–5M. Separate file on purpose: showcase.css and engage-5h.css (TYPO-5K block) are not modified. */

/* ---- News cards: featured image fills a 16:10 frame; focal point and fit come from the post (inline style). */
.tp-showcase .tpb-news .wp-block-post-featured-image{margin:0;aspect-ratio:16/10;overflow:hidden;background:#f4f6f8}
.tp-showcase .tpb-news .wp-block-post-featured-image a{display:block;width:100%;height:100%}
.tp-showcase .tpb-news .wp-block-post-featured-image img{display:block;width:100%;height:100%;object-fit:cover}
.tp-showcase .tpb-news .wp-block-post-featured-image.tp5l-fit-contain img{object-fit:contain}

/* ---- Single news post: images the author placed in the content keep their ratio and never exceed the column. */
.tp-showcase.single-post .wp-block-post-content img{max-width:100%;height:auto}
.tp-showcase.single-post .wp-block-post-content figure{max-width:100%}
.tp-showcase.single-post .wp-block-post-content .wp-block-image{margin-block:1.5rem}
.tp-showcase.single-post .wp-block-post-content .wp-block-image.aligncenter,.tp-showcase.single-post .wp-block-post-content .wp-block-image .aligncenter{margin-inline:auto;text-align:center}
.tp-showcase.single-post .wp-block-post-content .wp-block-image figcaption,.tp-showcase.single-post .wp-block-post-content .wp-element-caption{font-size:var(--tp5k-meta,14px);line-height:1.5;color:#52677a;text-align:center;margin-top:.5rem}
.tp-showcase.single-post .wp-block-post-content .alignfull,.tp-showcase.single-post .wp-block-post-content .alignwide{max-width:100%}
.tp-showcase.single-post .wp-block-post-title{overflow-wrap:break-word}
@media(max-width:600px){
 .tp-showcase.single-post .wp-block-post-content .wp-block-image.alignleft,.tp-showcase.single-post .wp-block-post-content .wp-block-image.alignright,
 .tp-showcase.single-post .wp-block-post-content .wp-block-image .alignleft,.tp-showcase.single-post .wp-block-post-content .wp-block-image .alignright{float:none;margin-inline:auto;max-width:100%}
}

/* ---- Popup: optional image, offer terms, admin preview note. */
.tpc-media{margin:0 48px 14px 0}
.tpc-media img{display:block;max-width:100%;width:auto;height:auto;max-height:180px;border-radius:6px;object-fit:contain}
.tpc-terms{margin:0 0 18px;padding:12px 14px;border:1px solid #d8e2ea;border-left:3px solid #0b5a8a;border-radius:4px;background:#f6f9fb;font-size:var(--tp5k-meta,14px);line-height:1.55;color:#33485a}
.tpc-terms-h{margin:0 0 4px;font-weight:600;color:#0b2540}
.tpc-terms ul{margin:0;padding-left:1.1em}
.tpc-terms li{margin:0 0 2px;overflow-wrap:anywhere}
.tpc-admin-note{margin:0 48px 12px 0;padding:6px 10px;border-radius:4px;background:#fff8e1;color:#6b4e00;font-size:13px;line-height:1.4}
.tpc-dialog--promo .tpc-box h2{margin-right:48px}
@media(max-width:600px){.tpc-media img{max-height:130px}.tpc-terms{padding:10px 12px}}
.tp-showcase .tpb-news .wp-block-post-featured-image .tpim-center-frame{display:block;width:100%;height:100%}
/* 5L-b: long unbroken text typed in a post (hashtag rows, links) wraps instead of widening the page. */
.tp-showcase.single-post .wp-block-post-content :is(p,li,h2,h3,h4,figcaption,blockquote){overflow-wrap:anywhere}
