.hover-card {
  /*padding: 2em;*/
}

.min-image-height {
  min-height: 300px !important;
}

@media (min-width: 60em) {

  .min-image-height {
    min-height: 350px !important;
  }  
}


/* Common style */
/*min-height: 260px; If the content is surrounded, we could avoid miscaling images this way*/
.hover-card figure {
  position: relative;
  float: left;
  overflow: hidden;
  margin: 10px 1%;
  min-width: 320px;
  /*max-width: 600px;*/
  /*max-height: 360px;*/
  /*width: 48%;*/
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.hover-card figure img {
  position: relative;
  display: block;
  min-height: 100%;
  max-width: 100%;
  opacity: 0.3;
}

.hover-card figure figcaption {
  padding: 0 1.2em;
  color: #fff;
  /*color: #212529;*/
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /*text-transform: uppercase;
  font-size: 1.25em;*/
}

.hover-card figure figcaption h2 {
  text-transform: uppercase;
  /*font-size: 1.25em;*/
}

.hover-card figure figcaption::before,
.hover-card figure figcaption::after {
  pointer-events: none;
}

.hover-card figure figcaption,
.hover-card figure figcaption > a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.hover-card figure figcaption > a {
  z-index: 1000;
  text-indent: 200%;
  white-space: nowrap;
  font-size: 0;
  opacity: 0;
}

.hover-card figure h2 {  
  line-height: 1.5;
  font-weight: 300;
}

.hover-card figure h2 span {
  font-size: 1.4em;
  font-weight: 800;
  /*word-spacing: -0.05em;*/
}

.hover-card figure h2,
.hover-card figure p {
  margin: 0;
}

.hover-card figure p {
  color: #212529;
  line-height: 1.5;
  font-family: "serif"
}

.enlarge-font {
  font-size: 1.2em;
}


/*---------------*/
/***** Header rise *****/
/*---------------*/

figure.effect-hover {
  background: #80cecc;
}

figure.effect-hover img {
  max-width: none;
  width: -webkit-calc(100% + 20px);
  width: calc(100% + 20px);
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: translate3d(-10px,0,0);
  transform: translate3d(-10px,0,0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

figure.effect-hover:hover img {
  opacity: 0.04;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

figure.effect-hover figcaption {
  text-align: left;
}

figure.effect-hover h2 {
  position: relative;
  overflow: hidden;
  padding: 0.5em 0 0 0;
  text-align: center;
  -webkit-transition: -webkit-transform 0.35s;
  transition: transform 0.35s;
}

figure.effect-hover h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  /*background: #6c757d;*/
  content: '';
  -webkit-transition: -webkit-transform 0.35s;
  transition: transform 0.35s;
  -webkit-transform: translate3d(-100%,0,0);
  transform: translate3d(-100%,0,0);
}

figure.effect-hover:hover h2::after {
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

figure.effect-hover p {
  margin-top: -.7em;
  padding: 0 0 1em 0;  
  opacity: 0;
  -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
  transition: opacity 0.35s, transform 0.35s;
  -webkit-transform: translate3d(100%,0,0);
  transform: translate3d(100%,0,0);
}

figure.effect-hover:hover p {
  opacity: 1;
  -webkit-transform: translate3d(0,0,0);
  transform: translate3d(0,0,0);
}

figure.effect-hover:hover h2 {  
  -webkit-transform: translate3d(0,0,0) translate3d(0,-30%,0);
  transform: translate3d(0,0,0) translate3d(0,-30%,0);
}

@media (max-width: 1200px) {
  .hover-card figure p {    
    color: #ffffff;
    line-height: 1.2;
    font-family: "serif"
  }

  .hover-card figure h2 {
    /*word-spacing: -0.15em;*/
    line-height: .7;
    font-weight: 300;
    
  }

  .enlarge-font {
    font-size: 1em;
  }
}
