/* Telegram preview thumbnails can be only 320px wide. Keep them near native size. */
.post-hero.tn-tg-hero--small-source figure {
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background: #101426;
}

.post-hero.tn-tg-hero--small-source .tn-tg-hero-backdrop {
  position: absolute;
  inset: -20px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(22px) brightness(.42);
}

.post-hero.tn-tg-hero--small-source .tn-tg-hero-img {
  position: relative;
  z-index: 1;
  width: auto !important;
  max-width: min(100%, 420px);
  object-fit: contain;
}

/* A 320px Telegram frame should not be stretched across the article column. */
.tn-tg-video-link__preview {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: clamp(180px, 22vw, 240px);
  background: #0d1323;
}

.tn-tg-video-link__preview > img {
  width: auto !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: contain !important;
}
