.projects-grid {
  --cols: 1;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: calc(2 * var(--l--global-gap)) var(--l--global-gap);
}
.projects-grid article {
  container-type: inline-size;
  color: var(--c--low);
}
.projects-grid article[data-fully-clickable] {
  cursor: pointer;
}
.grid-project-title {
  font-size: 1.2rem;
  text-transform: none;
  line-height: 1;
  min-height: 2em;
  font-weight: 400;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-end;
  transition: color 0.3s;
}
.grid-project-title svg {
  width: 1.1em;
}
.grid-project-title a {
  color: inherit;
  text-decoration: none;
  display: block;
  padding-right: 3rem;
  flex-grow: 1;
}
.projects-grid figure {
  overflow: hidden;
  margin: 1rem 0 0.67rem;
}
.projects-grid img {
  width: 100%;
  aspect-ratio: 70/47;
  transition: transform 0.3s;
}

.grid-project-meta {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
}

.projects-grid p {
  font-size: 1.2rem;
  margin: 0;
  line-height: 1.45;
}
p.grid-project-category {
  border-top: 1px solid;
  margin-top: 0.25rem;
  padding-top: 0.25rem;
}

.projects-grid article[data-fully-clickable]:hover img,
.projects-grid article[data-fully-clickable]:focus-within img {
  transform: scale(1.08);
}

.projects-grid article[data-fully-clickable]:hover {
  color: var(--c--lowest);
}
.projects-grid article[data-fully-clickable] a:focus {
  outline: none;
}
.projects-grid article[data-fully-clickable]:focus-within {
  outline: 3px solid;
  outline-offset: 0.25rem;
}

@media (min-width: 32rem) {
  .projects-grid {
    --cols: 2;
  }
  .see-also .projects-grid > :nth-child(5) {
    display: none;
  }
}
@media (min-width: 40rem) {
  .grid-project-title {
    font-size: 1.67rem;
  }
}

@media (min-width: 52rem) {
  .projects-grid {
    --cols: 3;
  }
  .see-also .projects-grid > :nth-child(4) {
    display: none;
  }
  .grid-project-title,
  .projects-grid p {
    font-size: 0.933rem;
  }
  .projects-grid img {
    aspect-ratio: 1;
  }
}
@media (min-width: 80rem) {
  .projects-grid {
    --cols: 5;
  }
  .see-also .projects-grid > :nth-child(4),
  .see-also .projects-grid > :nth-child(5) {
    display: block;
  }
}
@media (min-width: 96rem) {
  .projects-grid {
    gap: calc(1.25 * var(--l--global-gap)) var(--l--global-gap);
  }
}
