.cards {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

/* https://css-tricks.com/snippets/css/a-guide-to-flexbox/ */
.card {
  position: relative;
  flex-grow: 1;
  flex-shrink: 1;
  display: block;
  height: calc(40vh - 2em);
  min-height: 20em;
  width: 25%;
}

.card a {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.card h2 {
  position: absolute;
  left: 2em;
  top: 0;
  z-index: 1;
  font-family: EncodeSansSC_SemiExpanded_Medium;
  font-weight: 400;
  font-size: 1.25em;
  display: none;
}

.card:hover h2 {
  display: block;
}

@media screen and (max-width: 1680px) {
  .card {
    height: calc(40vh - 2em);
    min-height: 20em;
    width: 33.333333%;
  }
}
@media screen and (max-width: 1280px) {
  .card {
    height: calc(40vh - 2em);
    min-height: 20em;
    width: 50%;
  }
}
@media screen and (max-width: 980px) {
  .card {
    height: calc(28.57143vh - 1.33333em);
    min-height: 18em;
    width: 50%;
  }
}
@media screen and (max-width: 480px) {
  .card {
    height: calc(40vh - 2em);
    min-height: 18em;
    width: 100%;
  }
}

/*# sourceMappingURL=cards.css.map */
