/*********************************************/
/****************** Team *********************/
/*********************************************/
.team .gallery {
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0;
}
.team figure {
  position: relative;
  width: 25%;
  padding: 8px;
}
.team figure img {
  width: 100%;
  height: auto;
}
.team figcaption {
  position: absolute;
  width: 100%;
  bottom: 2px;
  left: 0;
}
.team h3 {
  align-self: flex-end;
  margin: 0;
  padding-bottom: 10px;
  font-size: 3rem;
  background-color: #fff;
}
.team .gallery div {
  line-height: 1.3;
  width: 25%;
  align-self: center;
  padding: 8px;
  text-align: right;
  font-size: 2rem;
}

.team figcaption h2 {
  margin: 0;
  padding: 0 18px;
  font-weight: bold;
  font-size: 3rem;
  -webkit-transform: translate3d(0, 60px, 0);
  transform: translate3d(0, 60px, 0);
  -webkit-transition: -webkit-transform 0.35s;
  transition: transform 0.35s;
}
.team figcaption p {
  padding: 20px;
  margin: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: rgba(0, 0, 0, 1);
  font-family: "Montserrat", sans-serif;
  opacity: 0;
  -webkit-transition:
    opacity 0.2s,
    -webkit-transform 0.35s;
  transition:
    opacity 0.2s,
    transform 0.35s;
  cursor: default;
}
.team figure:hover p {
  opacity: 1;
}
.team figure:hover h2 {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
