:root {
  --black-18: #181D25;
  --grey-6C: #6C727F;
}

.tm_news_items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;

  .tm_news_item {
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    align-self: self-start;
    max-width:300px;
      @media screen and (width <= 980px) {
        max-width:100%;
      }

    .tm_news_item__img {
      max-width: 100%;
      width: 100%;
      border-radius: 12px;
      height: 260px;
      object-fit: contain;
      object-position: center;
    }

    &.big_new {
      grid-column: span 2 / 1;
      min-width: 600px;
      max-width: 600px;

      .tm_news_item__img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        min-height: 500px;
        max-height: 500px;
      }

      @media screen and (width <= 980px) {
        grid-column: span 1;
        min-width: 100%;
      }
    }

    .tm_news_item__title {
      font-weight: 600;
      font-size: 20px;
      line-height: 140%;
      color: var(--black-18);
      margin: 12px 0 16px;
      padding: 0 20px;
    }

    .tm_news_item__desc {}

    .tm_news_item__footer {
      display: flex;
      align-items: center;
      gap: 25px;
      padding: 0 20px 20px;

      .tm_news_item__author {
        font-weight: 400;
        font-size: 12px;
        line-height: 150%;
        color: var(--grey-6C);
      }

      .tm_news_item__date {
        font-weight: 400;
        font-size: 12px;
        line-height: 150%;
        color: var(--grey-6C);
      }
    }
  }
}