/* Homepage additions: featured posts, project grid and partner logos. */
#projects .projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

#projects .projects-grid--featured {
  margin-bottom: 2rem;
}

#projects .project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 1.5rem;
  overflow-wrap: break-word;
}

#projects .project-card__header {
  margin-bottom: 1.25rem;
}

#projects .project-card .title {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.25;
  hyphens: auto;
  overflow-wrap: anywhere;
}

#projects .project-card .subtitle {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  line-height: 1.45;
  hyphens: auto;
}

#projects .project-card .content {
  margin-top: 1.25rem;
  text-align: center;
  line-height: 1.65;
  hyphens: auto;
}

#projects .project-card .content:last-child {
  margin-bottom: 0;
}

#projects .project-card a {
  overflow-wrap: anywhere;
}

#projects .project-card > .image img {
  object-fit: contain;
}

#projects .project-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22rem;
  margin: 0;
  background: #fff;
}

#projects .project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#projects .project-card__media a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#projects .project-card a:focus-visible {
  outline: 3px solid #1758b6;
  outline-offset: 4px;
}

#projects .project-card iframe {
  max-width: 100%;
}

#donators .partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

#donators .partner-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 8.5rem;
  padding: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#donators .partner-grid img {
  display: block;
  width: 100%;
  height: 6rem;
  max-width: 17rem;
  object-fit: contain;
}

#donators .partner-grid .partner-logo--esi img {
  max-width: 12rem;
}

#donators .partner-grid .partner-logo--wide img {
  max-width: 100%;
}

#donators .partner-order-note {
  max-width: 42rem;
  margin: -0.5rem auto 1.75rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media screen and (min-width: 700px) {
  #projects .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #projects .project-card__header {
    min-height: 5.5rem;
  }

  #projects .projects-grid--featured .project-card .title {
    font-size: 1.5rem;
  }

  #projects .projects-grid--featured .project-card__header {
    min-height: 7.5rem;
  }

  #donators .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #donators .partner-grid li {
    min-height: 10rem;
    padding: 1.5rem;
  }

  #donators .partner-grid img {
    height: 7rem;
  }
}

@media screen and (min-width: 1024px) {
  #projects .projects-grid--archive,
  #projects .projects-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 399px) {
  #projects .project-card {
    padding: 1.1rem;
  }

  #projects .project-card__media {
    height: 19rem;
  }

  #donators .partner-grid {
    gap: 0.75rem;
  }

  #donators .partner-grid li {
    min-height: 7.5rem;
    padding: 0.75rem;
  }
}
