/*
 * Mobile content contract.
 * Loaded last so card dimensions have one authoritative mobile definition.
 * Advertising components are intentionally outside the scope of this file.
 */

@media (max-width: 780px) {
  .tl-home-grid,
  .tl-editorial,
  .tl-home-widgets,
  .tl-home-widgets article,
  .tl-home-widgets article > a,
  .tl-home-widgets article > div {
    min-width: 0;
  }

  .tl-home-widgets .grid {
    gap: 12px !important;
  }

  .tl-home-widgets .grid.grid-cols-1 > li article > a,
  .tl-home-widgets ul.grid > li article > a {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .tl-home-widgets ul.grid > li article > a > figure,
  .tl-home-widgets ul.grid > li article > a > .relative {
    width: 112px !important;
    height: 84px !important;
    min-height: 84px !important;
    margin: 0 !important;
    overflow: hidden;
  }

  .tl-home-widgets ul.grid > li article > a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  .tl-home-widgets ul.grid > li article > a > div,
  .tl-home-widgets ul.grid > li article > a > section {
    width: auto !important;
    min-width: 0 !important;
  }

  .tl-home-widgets h2,
  .tl-home-widgets h3,
  .tl-home-widgets article a {
    overflow-wrap: anywhere;
  }

  .text__content img,
  .text__content figure img {
    max-width: 100% !important;
    height: auto !important;
  }

  .text__content figure,
  .text__content iframe,
  .text__content video,
  .text__content .wp-block-embed,
  .text__content .wp-block-embed__wrapper {
    max-width: 100% !important;
  }

  .text__content table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 520px) {
  .tl-news,
  .tl-support,
  .tl-card {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 11px !important;
  }

  .tl-news__img,
  .tl-news__photo,
  .tl-support__img,
  .tl-card__image {
    width: 104px !important;
    height: 78px !important;
    min-height: 78px !important;
  }

  .tl-news__photo,
  .tl-news__img img,
  .tl-support__img img,
  .tl-card__image img {
    object-fit: cover !important;
    object-position: center !important;
  }

  .tl-home-widgets .grid.grid-cols-1 > li article > a,
  .tl-home-widgets ul.grid > li article > a {
    grid-template-columns: 104px minmax(0, 1fr) !important;
  }

  .tl-home-widgets ul.grid > li article > a > figure,
  .tl-home-widgets ul.grid > li article > a > .relative {
    width: 104px !important;
    height: 78px !important;
    min-height: 78px !important;
  }
}
