/**
 * @file
 * News teaser.
 */

.news-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 1rem;
  color: #56555a;
}

.news-teaser__media {
  display: block;
  padding-bottom: 0.5rem;
  overflow: hidden;
}

.news-teaser__image {
  max-width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.news-teaser__image:hover {
  transform: scale(1.025);
}

.news-teaser__body {
  display: flex;
  flex-direction: column;
}

.news-teaser__title {
  font-size: calc(1.275rem + 0.3vw);
}

.news-teaser__title-link,
.news-teaser__title-link:hover {
  font-size: 1.25rem;
  font-weight: 700;
  color: #56555a;
}

.news-teaser__date {
  color: var(--imtm-color-text-light);
}

.news-teaser__description {
  margin: 0;
}

.news-teaser__more {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.news-teaser__more-link,
.news-teaser__more-icon {
  font-weight: 700;
  color: var(--imtm-color-darkred);
}

.news-teaser__more-icon .fa {
  margin-left: 0.75rem;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .news-teaser {
    grid-template-columns: 33.3333% 66.6667%;
  }

  .news-teaser__media {
    padding-bottom: 0;
  }

  .news-teaser__body {
    padding-left: 1rem;
  }
}

@media (min-width: 1200px) {
  .news-teaser__title {
    font-size: 1.5rem;
  }
}
