/* Media page (/media): one row per article (.news-row). */

.news-row {
  display: grid;
  grid-template-columns: 150px 1fr 300px 60px;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  padding: 1.875rem var(--pad-x);
  border-block-start: 1px solid var(--gray-line);
  transition: background 0.35s;
}

.news-row:last-of-type {
  border-block-end: 1px solid var(--gray-line);
}

.news-row__date {
  font-family: var(--disp);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.news-row__title {
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color 0.3s;
}

.news-row__media {
  aspect-ratio: 16/9;
  border-radius: var(--radius-12);
  overflow: hidden;
  position: relative;
}

.news-row__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.7s var(--e-spring);
}

.news-row__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(var(--navy-rgb) / 35%), transparent 60%);
}

.news-row__arrow {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  border: 1px solid var(--gray);
  color: var(--navy);
  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s var(--e-spring);
}

.news-row:is(:hover, :focus-visible) {
  background: var(--paper);
}

.news-row:is(:hover, :focus-visible) .news-row__title {
  color: var(--blue);
}

.news-row:is(:hover, :focus-visible) .news-row__img {
  transform: scale(1.1);
}

.news-row:is(:hover, :focus-visible) .news-row__arrow {
  background: var(--blue);
  color: var(--white);
  transform: translateX(4px);
}

@media (max-width: 1100.98px) {
  .news-row {
    grid-template-columns: 1fr 60px;
    grid-template-areas: 'd d' 't arr' 'pic pic';
  }

  .news-row__date {
    grid-area: d;
  }

  .news-row__title {
    grid-area: t;
  }

  .news-row__media {
    grid-area: pic;
  }

  .news-row__arrow {
    grid-area: arr;
  }
}

@supports not (aspect-ratio: 16/9) {
  .news-row__media {
    height: 220px;
  }
}
