.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 64px;
  padding-bottom: 80px;
}
@media (max-width: 670px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 670px) and (max-width: 1023px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.news-item {
  text-decoration: none;
}
.news-item:hover .news-title {
  color: var(--color-primary);
}
.news-item img {
  display: block;
  width: 100%;
  border: 1px solid hsl(0 0 100 / 6%);
  border-radius: 16px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.news-text {
  margin-top: 12px;
  margin-inline: 12px;
  padding-top: 12px;
  border-top: 1px solid #333;
}
.news-date:before { content: "/ " }
.news-date:after  { content: " /" }
.news-date {
  color: #888;
  font-family: "Fragment Mono", monospace;
  font-size: 18px;
  text-transform: uppercase;
}
.news-title {
  margin-block: 12px 0;
  font-size: 22px;
  line-height: 1.2;
  text-wrap: pretty;
  transition: color .2s;
}



/* Article page */
.page-news-item {
  padding-block: 48px 64px;
}
.page-news-header {
  display: grid;
  margin-bottom: 64px;
  padding-block: 24px;
  border-top: 1px solid #333;
  border-bottom: 3px solid #333;
}
.news-header-text {
  display: flex;
  flex-direction: column;
  padding-right: 10%;
}
@media (min-width: 900px) {
  .news-header-text {
    grid-column: 1/3;
  }
  .page-news-header img {
    grid-column: 3/6;
  }
}
@media (max-width: 900px) {
  .news-header-text h1 {
    font-size: 24px;
  }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .news-header-text h1 {
    font-size: 24px;
  }
}
.news-back-button {
  margin-bottom: auto;
  color: #888;
  font-family: "Fragment Mono", monospace;
  font-size: 18px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .2s;
}
.news-back-button:hover {
  color: var(--color-primary);
}
@media (max-width: 900px) {
  .news-back-button {
    margin-bottom: 64px;
  }
}
