.top-stories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-template-areas:
    "featured featured"
    "card1 card2"
    "card3 card4";
  gap: 20px;
  padding: 20px;
  margin: 1.2em auto;
  max-width: 1000px !important;
  background-color: #f8f8f8;
}

.story-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
  transition: transform 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
}

.story-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.image-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 62.5%; /* 250 / 400 = 0.625 = 62.5% / 16:10 aspect ratio */ 
  /*padding-bottom: 56.25%;*/ /* 16:9 Aspect Ratio */
  /*padding-bottom: 30%;*/
  overflow: hidden;
}

.image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
}

.story-content {
  padding: 16px;
}

.headline {
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.story-card .headline {
  font-size: 1.1rem;
}

.featured .headline {
  font-size: 1.4rem;
}

.timestamp {
  font-size: 0.85rem;
  color: #777777;
}

/* Layout positioning */
.featured {
  grid-column: span 2;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .top-stories {
    grid-template-areas: unset;
    grid-template-columns: 1fr;
    min-width: 95%;
    margin: auto;
  }

  .featured {
    grid-column: span 1;
  }
}
