/* V307 · Doce noticias en computadora; diez en móvil. */
#news-grid.news-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 18px;
  align-items: stretch;
}
#news-grid > .news-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-bottom: 3px solid #d71935;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgb(24 52 80 / 5%);
}
#news-grid > .news-card.p276-pinned { border-color: #d9bd45; }
#news-grid .news-photo {
  flex: 0 0 auto;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}
#news-grid .news-copy,
#news-grid .p276-pinned .news-copy {
  padding: 13px 12px 14px;
}
#news-grid .news-card h3 {
  font-size: 17px;
  line-height: 1.3;
  min-height: 3.9em;
  margin-bottom: 10px;
}
#news-grid .story-excerpt {
  font-size: 12px;
  line-height: 1.5;
  min-height: 6em;
  margin-bottom: 14px;
}
#news-grid .story-meta { flex-wrap: wrap; gap: 4px 8px; }
#news-grid .read-link { margin-top: auto; }
@media (min-width: 761px) and (max-width: 1050px) {
  #news-grid.news-grid { gap: 20px 12px; }
  #news-grid .news-copy,
  #news-grid .p276-pinned .news-copy { padding: 11px 10px 12px; }
  #news-grid .news-card h3 { font-size: 15px; }
  #news-grid .story-excerpt { font-size: 11px; }
  #news-grid .story-meta { font-size: 10px; }
}
@media (max-width: 760px) {
  #news-grid.news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }
  /* Reemplaza el límite móvil anterior de ocho tarjetas. */
  #news-grid > .news-card:nth-child(-n+10) { display: flex; }
  #news-grid > .news-card:nth-child(n+11) { display: none; }
  #news-grid > .news-card { border-radius: 10px; }
  #news-grid .news-copy,
  #news-grid .p276-pinned .news-copy { padding: 10px 9px 12px; }
  #news-grid .news-card h3 { font-size: 15px; }
  #news-grid .story-excerpt { font-size: 11px; }
  #news-grid .story-meta { font-size: 10px; line-height: 1.4; }
  #news-grid .read-link { font-size: 11px; }
}
@media (max-width: 360px) {
  #news-grid.news-grid { gap: 16px 10px; }
  #news-grid .news-card h3 { font-size: 14px; }
  #news-grid .news-copy,
  #news-grid .p276-pinned .news-copy { padding-inline: 8px; }
}
