main {
  margin: auto;
  overflow-x: clip;
}
#news {
  padding-left: 0.3em;
  padding-right: 0.3em;
}
.news-message {
  grid-column: 1/-1;
  text-align: center;
  color: #888;
  padding: 2rem;
}
.news-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}
.news-container .news-banner {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  cursor: pointer;
  text-decoration: none;
}
.news-container .news-banner .banner-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.news-container .news-banner .banner-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.news-container .news-banner .banner-image .banner-excerpt {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.7;
  padding: 1rem;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.news-container .news-banner .banner-text {
  color: #222;
  font-size: 0.95rem;
  font-weight: bold;
  padding: 0.6rem 0.8rem;
  background: #fff;
  line-height: 1.5;
}
.news-container .news-banner:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.news-container .news-banner:hover .banner-image .banner-excerpt {
  opacity: 1;
}
@media (max-width: 1200px) {
  .news-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .news-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .news-container {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
