.team-members .members {
  font-size: 0;
  margin-bottom: -40px;
  text-align: center;
}

.team-members .member {
  display: inline-block;
  margin-bottom: 40px;
  max-width: 300px;
  text-align: center;
  vertical-align: top;
  width: 100%;
}

.team-members .member.has-description {
  cursor: pointer;
}

.team-members .description {
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.team-members .avatar {
  background-position: center;
  background-size: cover;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgb(0 0 0 / 16%), 0 3px 6px rgb(0 0 0 / 23%);
  height: 260px;
  margin: 0 auto 20px;
  transition: .2s ease;
  width: 260px;
}

.team-members .member:hover .avatar {
  -moz-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  -o-transform: translateY(-5px);
  -webkit-transform: translateY(-5px);
  transform: translateY(-5px);
  transform: translateY(-5px);
}

.team-members .name {
  display: inline-block;
  font-weight: 400;
  margin: 0 0 5px;
  width: 100%;
}

.team-members .position {
  display: inline-block;
  width: 100%;
  color: rgba(255,255,255,0.7);
}

@media (min-width: 993px) {
  .team-members .name {
    font-size: 24px;
  }
}

.modal-wrapper span.close {
  color: rgba(255,255,255,1) !important;
  font-size: 36px !important;
  position: absolute !important;
  top: 4px !important;
  right: 18px !important;
}

.card {
  display: flex;
  padding: 2.5rem 2rem;
  border-radius: 10px;
  background-color: #272b2f;
  max-width: 820px;
  min-height: 420px;
  min-width: 300px;
  box-shadow: 0 14px 28px rgb(0 0 0 / 25%), 0 10px 10px rgb(0 0 0 / 22%);
  position: relative;
  transform-style: preserve-3d;
  overflow: hidden;
  height: auto;
  margin: 120px auto;
  padding: 40px 50px 60px 50px;
  width: 100%;
  z-index: 999;
}

.card::before,
.card::after {
  content: '';
  position: absolute;
  z-index: -1;
}

.card::before {
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255,255,255, 0.5);
  border-radius: 10px;
  top: -.7rem;
  left: -.7rem;
}

.card::after {
  height: 15rem;
  width: 15rem;
  top: -8rem;
  right: -8rem;
  border-radius: 50%;
  box-shadow: 2rem 6rem 0 -3rem rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.1);
  /*box-shadow: 2rem 6rem 0 -3rem rgba(73, 92, 131, 0.3);
  background-color: rgba(190, 219, 187, 0.2);
  animation: rgbslide 30s ease-out infinite alternate;*/
}

@keyframes rgbslide {
  0%, 100% { box-shadow: 2rem 6rem 0 -3rem rgba(73, 92, 131), 0.3); }
  15% { background-color: rgba(141, 181, 150, 0.2); }
  30% { box-shadow: 2rem 6rem 0 -3rem rgba(122, 134, 182, 0.3); }
  50% { background-color: rgba(94, 170, 168, 0.2); }
  70% { box-shadow: 2rem 6rem 0 -3rem rgba(168, 164, 206, 0.3); }
  85% { background-color: rgba(163, 210, 202, 0.2) }
  
  /*0% { box-shadow: 2rem 6rem 0 -3rem rgba(153, 255, 51, 0.3); }
  8.33% { background-color: rgba(255, 0, 102, 0.3); }
  16.66% { box-shadow: 2rem 6rem 0 -3rem rgba(0, 177, 106, 0.3); }
  24.99% { background-color: rgba(255, 87, 34, 0.3); }
  33.33% { box-shadow: 2rem 6rem 0 -3rem rgba(255, 87, 34, 0.3); }
  41.66% { background-color: rgba(144, 103, 198, 0.3); }
  50.00% { box-shadow: 2rem 6rem 0 -3rem rgba(144, 103, 198, 0.3); }
  58.33% { background-color: rgba(0, 177, 106, 0.3); }
  66.66% { box-shadow: 2rem 6rem 0 -3rem rgba(0, 177, 106, 0.3); }
  75.00% { background-color: rgba(255, 87, 34, 0.3); }
  83.33% { box-shadow: 2rem 6rem 0 -3rem rgba(255, 87, 34, 0.3); }
  91.66% { background-color: rgba(144, 103, 198, 0.3); }*/
}

.card .portrait {
  display: flex;
  justify-content: center;
  align-content: center;
}

.card .portrait .avatar {
  max-width: 100%;
  display: block;
  width: 140px;
  height: 140px;
  min-width: 80px;
  min-height: 80px;
  box-shadow: 0 0 0 5px #000;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
}

.info {
  margin-left: 2.5rem;
}

.name {
  margin-bottom: 1rem;
}

.name h2 {
  font-size: 1.5rem;
  margin: 0;
}

.name h4 {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin: -0.25rem 0 0 0;
}

.text p {
  color: rgba(255,255,255,0.9);
}

.text .light {
  color: rgba(255,255,255,0.7) !important;
}

.text .quote {
  width: 100%;
  color: rgba(255,255,255,0.8) !important;
  margin: 1rem auto;
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.text svg {
  width: 0.8rem;
  height: 0.8rem;
  line-height: 1.25rem;
  fill: rgba(255,255,255,0.7) !important;
  margin-right: 0.5rem !important;
}

.contact p {
  line-height: 1.8em;
}

@media screen and (max-width: 720px) {
  .card {
    display: block;
    width: 100%;
    max-width: 480px;
    padding: 80px 50px 100px 50px;
  }

  .info {
    margin-left: 0;
    margin-top: 1.5rem;
  }
}