/* Ảnh trong nội dung soạn ở CMS (<figure><img><figcaption>): co theo khung, không tràn ngang trên điện thoại */
.content figure{margin:0}
.content figure img{display:block;max-inline-size:100%;block-size:auto;border-radius:.5rem}
.content figcaption{margin-block-start:.25rem;font-size:.875rem;color:var(--on-surface-variant)}
/* Ảnh bìa bài viết (modules/content-post.php): khung 16:9, ảnh dọc / vuông cắt giữa */
.tv-post-cover{inline-size:100%;aspect-ratio:16/9;object-fit:cover}
/* Link nội bộ trong câu (bài CMS, bài vé dựng sẵn): màu chính + gạch chân để nhận ra; nút / thẻ có class riêng không bị ảnh hưởng */
:is(.content, .tv-airticket) :is(p, li, td) a:not([class]){color:var(--primary);text-decoration:underline;text-underline-offset:.15em}

.content .expand-less-btn,
.content.active .expand-more-btn{
display: none;
}

.content.active .expand-less-btn{
display: block;
}

.content .content-body{
  display: -webkit-box;
  -webkit-line-clamp: 10;           /* Number of lines to show before truncating */
  -webkit-box-orient: vertical;
  overflow: hidden;
 position: relative;
  /* Giữ rõ 60% trên, 40% dưới mờ dần về trong suốt */
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.content.active .content-body{
  display: unset;
  -webkit-line-clamp: unset;           /* Number of lines to show before truncating */
  -webkit-box-orient: unset;
  overflow: unset;
 position: unset;
  /* Giữ rõ 60% trên, 40% dưới mờ dần về trong suốt */
  -webkit-mask-image: unset;
  mask-image: unset;
}
