.projects-grid {
  display: grid;
  grid-auto-rows: auto;
  gap: var(--wp--preset--spacing--40);
  margin-bottom: var(--wp--preset--spacing--60);
}
.projects-grid h2 {
  font-weight: 400;
  font-size: var(--wp--preset--font-size--medium);
  margin: 0;
}
.projects-grid a {
  text-decoration: none;
  color: inherit;
}
.projects-grid img {
  margin-bottom: var(--wp--preset--spacing--30);
}
@media screen and (min-width: 42rem) {
  .projects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .projects-grid article {
    position: relative;
    background-color: var(--wp--preset--color--contrast);
    color: var(--wp--preset--color--base);
  }
  .projects-grid img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .projects-grid .project-grid-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: var(--wp--preset--spacing--40);
    opacity: 0;
  }
  .projects-grid img,
  .projects-grid .project-grid-content {
    transition: opacity 0.2s;
  }
  .projects-grid a:hover img,
  .projects-grid a:focus img {
    opacity: 0.2;
  }
  .projects-grid a:hover .project-grid-content,
  .projects-grid a:focus .project-grid-content {
    opacity: 1;
  }
  .projects-grid article:nth-child(3n + 1) {
    aspect-ratio: 1.45;
    grid-column: span 4;
  }
  .projects-grid article:nth-child(3n + 2),
  .projects-grid article:nth-child(3n + 3) {
    aspect-ratio: 1;
    grid-column: span 2;
  } /* Cas particuliers : projets 1, 2 et 3 */
  .projects-grid article:nth-child(1) {
    grid-column: 1/4;
    grid-row: 1/3; /*aspect-ratio: 0.78;*/
    aspect-ratio: 1.3;
  }
  .projects-grid article:nth-child(2),
  .projects-grid article:nth-child(3) {
    grid-column: 4/5;
    aspect-ratio: auto;
    width: 100%;
    height: 100%;
  }
  .projects-grid article:nth-child(2):last-child {
    aspect-ratio: 1;
  }
} /* @media screen and (min-width: 48rem) {  .projects-grid h2 {    font-size: var(--wp--preset--font-size--large);  }} */
@media screen and (min-width: 64rem) {
  .projects-grid h2 {
    font-size: var(--wp--preset--font-size--x-large);
  }
}
