.cards {
  display: flex;
  flex-wrap: wrap;
  margin: -1em 0 1em -1em;
}

.card {
  display: flex;
  flex-direction: column;
  flex: 0 0 25%;
 /* padding: 1em 0 0 1em;*/
 padding: 2px;
 margin: 40px;
 margin-left: auto;
 margin-right: auto;
 height: 560px;
}

.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
  /*padding: 1em;*/
  border: 1px solid #e2e5ea;
}

.card-body {
  flex-grow: 1;
}

@media (max-width: 991px) {
  .card {
    flex: 0 0 33.3333333%;
  }
}
@media (max-width: 767px) {
  .cards {
    justify-content: center;
  }

  .card {
    flex: 0 0 50%;
    max-width: 250px;
  }
}
@media (max-width: 480px) {
  .card {
    flex: 0 0 100%;
  }
}
body {
  background: #fff;
  padding-top: 1em;
}

.card-content {
  background-color: #fff;
  transition: box-shadow 300ms ease-in;
}
.card-content:hover {
  box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.19);
}
.card-content:hover .card-header__image {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}

.card-header {
  overflow: hidden;
  position: relative;
  -webkit-transform: translate3d(0, 0, 0);
          transform: translate3d(0, 0, 0);
  -webkit-perspective: 1000px;
          perspective: 1000px;
  /*margin: -1.1em -1.1em 0;*/
  padding: 20px;
  margin: 0;

}
.card-header:after {
  content: "";
  opacity: 1;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
 /* background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.5) 100%);*/
}

.card-header__image {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  transition: -webkit-transform 600ms ease-out;
  transition: transform 600ms ease-out;
  transition: transform 600ms ease-out, -webkit-transform 600ms ease-out;
  -webkit-transform-origin: center;
          transform-origin: center;
  will-change: transform;
}

.card-body__header {
  font-family: 'Merriweather', serif;
}

.card-footer__date {
  margin-bottom: 10px;
}

.card-footer__btn {
  text-align: center;
  text-decoration: none;
  display: inline-block;
  vertical-align: middle;
  padding: 3px 30px;
  font-size: 14px;
  background: #008CBA;
  border-color: #007095;
  color: white;
  transition: background-color 200ms ease-out;
}
.card-footer__btn:hover {
  color: white;
  background: #009fd4;
  text-decoration: none;
}
.card-footer__btn:focus {
  text-decoration: none;
  color: white;
}
.card-footer__btn:active {
  background: #0079a1;
}
