@font-face {
  font-family: "Source Sans Pro";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: local('Source Sans Pro Light'), url(/font/SourceSansPro-Light.woff2) format('woff2');
}

main {
  margin-top: 18vh;
  margin-bottom: 6vh;
  padding: 0 2vw;

  display: grid;
  grid-template-columns: repeat(7, 11.8vw);
  grid-auto-rows: 11.8vw;
  grid-gap: 2vw;
}
main a {
  border: 1px solid #e1e1e1;
  text-decoration: none;
  color: #6a6a6a;
}
.client {
  height: 100%;
  padding: 1rem;

  display: grid;
  place-items: center;
  /* align-content: center; */
  /* display: flex;
  flex-direction: column;
  align-items: center;
  align-content: center; */
}
.client .name {
  display: none;
  font-size: 1vw;
  text-align: center;
  /* flex: 1 1 30%; */
}
.client.text-only .name {
  display: block;
}
.client.with-name {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.client.with-name .name {
  margin-top: 2rem;
  display: block;
}
.client .icon {
  width: 100%;
  height: 100%;
  order: -1;
  overflow: hidden;
}
.client .icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.icon.transparent img {
  background-color: black;
}

/* Customizations */
.client.gouvernement .name {
  font-family: "Source Sans Pro";
  font-weight: 300;
  font-size: 0.9vw;
}
#entente-moselle .name {
  margin-top: 0.5rem;
  /* font-size: 0.7vw; */
}
#esch2022 img {
  --esch-2022-red: #ed1d24;
  background-color: var(--esch-2022-red);
  padding-left: 1rem;
  padding-right: 1rem;
}
#unesco {
  background-color: #77b3e5;
}
#mullerthal {
  background-color: #5E9865;
}



/* mobile */
@media screen and (max-width: 860px) {
  main {
    padding: 0 2vw;
    grid-template-columns: repeat(2, 45.5vw);
    grid-auto-rows: 45.5vw;
    grid-gap: 3vw;
  }
  .client .name {
    font-size: 2.7vw;
  }
  .client.gouvernement .name {
    font-size: 2.7vw;
  }
}
