/*
CSS for biography bio-squares
Based on tiles from Phantom by HTML5 UP.
*/

.bio-row {
  width: 100%;
  display: -moz-flex;
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -moz-flex-wrap: wrap;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.bio-container {
  width: 33%;
  padding-top: 33%;
}
@media (max-width:1088px) {
  .bio-container {
    width: 50%;
    padding-top: 50%;
  }
}
@media (max-width:670px) {
  .bio-container {
    width: 100%;
    padding-top: 100%;
  }
}

.bio-square {
  padding-top: 90%;
  width: 90%;
  position: relative;
  left: 50%;
  top: 0%;
  margin-top: 5%;
  transform: translate(-50%, 0);
  border-radius: 12px;
  overflow: hidden;
  -moz-transition: width 0.5s ease, padding-top 0.5s ease, margin-top 0.5s ease, border-radius 0.5s ease;
  -webkit-transition: width 0.5s ease, padding-top 0.5s ease, margin-top 0.5s ease, border-radius 0.5s ease;
  -ms-transition: width 0.5s ease, padding-top 0.5s ease, margin-top 0.5s ease, border-radius 0.5s ease;
  transition: width 0.5s ease, padding-top 0.5s ease, margin-top 0.5s ease, border-radius 0.5s ease;
}

.bio-square:hover {
  width: 100%;
  padding-top: 100%;
  margin-top: 0%;
  border-radius: 13.33px;
}

.bio-square img {
  width: 100%;
  top: 0%;
}

.bio-square .bio-name {
  top: 22%;
  width: 100%;
  -moz-transition: top 0.5s ease;
  -webkit-transition: top 0.5s ease;
  -ms-transition: top 0.5s ease;
  transition: top 0.5s ease;
}

.bio-square:hover > .bio-name, .touch .bio-name {
  top: 20%;
}

.bio-square .bio-title {
  top: 34%;
  width: 100%;
  visibility: hidden;
}

.bio-square:hover > .bio-title, .touch .bio-title {
  visibility: visible;
}

.bio-square .bio-name-high {
  top: 22%;
  width: 100%;
  -moz-transition: top 0.5s ease;
  -webkit-transition: top 0.5s ease;
  -ms-transition: top 0.5s ease;
  transition: top 0.5s ease;
}

.bio-square:hover > .bio-name-high, .touch .bio-name-high {
  top: 17%;
}

.bio-square .bio-title-high {
  top: 29%;
  width: 100%;
  visibility: hidden;
}

.bio-square:hover > .bio-title-high, .touch .bio-title-high {
  visibility: visible;
}


.bio-square .bio-additional {
  top: 45%;
  width: 90%;
  left: 5%;
  visibility: hidden;
  font-size: 15px;
  -moz-transition: width 0.5s ease, left 0.5s ease;
  -webkit-transition: width 0.5s ease, left 0.5s ease;
  -ms-transition: width 0.5s ease, left 0.5s ease;
  transition: width 0.5s ease, left 0.5s ease;
}

.bio-additional > p {
  margin: 5px 0px;
}

.bio-square:hover > .bio-additional, .touch .bio-additional {
  visibility: visible;
  width: 81%;
  left: 9.5%;
}

.bio-darkify {
  top: 0%;
  width: 100%;
  padding-top: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  -moz-transition: background-color 0.5s ease;
  -webkit-transition: background-color 0.5s ease;
  -ms-transition: background-color 0.5s ease;
  transition: background-color 0.5s ease;
}

.bio-square:hover > .bio-darkify, .touch .bio-darkify {
  background-color: rgba(50, 50, 50, 0.7);
}
