/* Full images in the central feed. Natural height preserves every image edge. */
.main-news .story-row > div { min-width: 0; }
.main-news .story-thumb { display: block; width: 100%; min-width: 0; height: auto; align-self: start; }
.main-news .story-thumb img,
.main-news .lead-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 10px;
}
.main-news .lead-image { background: transparent; }
.main-content .article-thumb {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  background: transparent;
}
.main-content .article-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
.article-main .featured-img-wrap { aspect-ratio: auto; }
.article-main .featured-img-wrap img { width: 100%; height: auto; object-fit: contain; }

/* Featured articles and manually uploaded promotions. */
.tih-featured { width: 100%; max-width: 260px; min-width: 0; margin: 0 0 24px; padding: 0; border: 0; box-shadow: none; }
.tih-featured__heading { color: #e21b23; font-size: 18px; font-weight: 800; line-height: 1.35; margin: 0 0 18px; padding: 0; border: 0; }
.tih-featured__feed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.tih-featured__article { display: flex; flex-direction: column; gap: 7px; max-width: 260px; min-width: 0; border: 0; outline-offset: 4px; box-shadow: none; padding: 0; margin: 0; background: transparent; text-decoration: none; color: #171717; }
.tih-featured__image { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 12px; box-shadow: none; }
.tih-featured__title { font-size: 13px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.tih-featured__article:hover .tih-featured__title { color: #e21b23; }
.tih-featured__article:focus-visible { outline: 2px solid #e21b23; }
.tih-featured__fallback { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #f3f4f6; font: 800 20px/1.3 system-ui,sans-serif; }
.tih-featured__fallback > span { color: #e21b23; }
.tih-promo { grid-column: 1 / -1; width: 100%; max-width: 260px; justify-self: center; min-width: 0; padding: 0; border: 0; }
.tih-promo__label { display: block; text-align: center; margin-bottom: 7px; color: #777; font-size: 10px; font-weight: 500; letter-spacing: .03em; }
.tih-promo > a { display: block; }
.tih-promo img { display: block; width: 100%; max-width: 100%; height: auto; border: 0; border-radius: 12px; }
.tih-featured [hidden] { display: none !important; }

/* Keep featured content reachable when the desktop side rail moves down. */
@media (min-width: 1121px) {
  .tih-home .news-layout { grid-template-columns: 260px minmax(0, 1fr) 280px; }
}
@media (max-width: 1120px) {
  .tih-featured { max-width: 560px; }
  .news-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .news-layout > .right-sidebar,
  .article-layout > .right-rail { display: block; position: static; grid-column: 1 / -1; min-width: 0; }
  .tih-featured__feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-layout > .right-sidebar,
  .article-layout > .right-rail { order: 3; }
}
@media (max-width: 600px) {
  .tih-featured { max-width: 260px; }
  .tih-featured__feed { grid-template-columns: minmax(0, 1fr); }
}
