/* The first three projects in the curated football listing are full-width features. */
#listing-football-projects .list > :nth-child(-n+3) {
  grid-column: 1 / -1;
}
#listing-football-projects .list > :nth-child(-n+3) .card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  min-height: 16rem;
  background: var(--feature-background, #f4f7f1);
  border-color: var(--feature-border, #cedbd1);
}
#listing-football-projects .list > :nth-child(-n+3) .card-img-top {
  display: grid;
  align-items: center;
  margin: 0;
  background: var(--feature-image-background, #0d322b);
  border: 0;
}
#listing-football-projects .list > :nth-child(-n+3) .card-img {
  width: 100%;
  height: auto !important;
}
#listing-football-projects .list > :nth-child(-n+3) .card-body {
  align-self: center;
  padding: 1rem 1.25rem;
}
#listing-football-projects .list > :nth-child(-n+3) .card-title {
  font: 500 clamp(1.55rem, 2.5vw, 1.75rem)/1.08 Georgia, serif;
  color: var(--feature-title-color, #14382e);
}
#listing-football-projects .list > :nth-child(-n+3) .listing-description p {
  margin-bottom: 0;
}
#listing-football-projects .list > :nth-child(-n+3) .card-attribution {
  padding-top: 0.4rem;
}
#listing-football-projects a[href*="/after-possession-loss/"] {
  --feature-background: #f7f7f3;
  --feature-border: #d6d5c7;
  --feature-title-color: #142139;
  --feature-image-background: #101e31;
}
#listing-football-projects a[href*="/after-possession-loss/"] .card-img {
  aspect-ratio: 800 / 516;
  object-fit: cover;
  object-position: center top;
}
#listing-football-projects a[href*="/pitch-to-pros-3/"] {
  --feature-background: #f4f6f9;
  --feature-border: #ccd5e2;
  --feature-image-background: #0d1117;
  --feature-title-color: #25384a;
}
@media (min-width: 701px) {
  #listing-football-projects .list { grid-template-rows: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  #listing-football-projects .list > :nth-child(-n+3) .card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
}
