.section-team {
  padding: 4rem 0;
  position: relative;
  margin: 0;
  background-color: var(--black);
}
.section-team .container {
  position: relative;
  max-width: 1000px;
  color: var(--white);
}
.section-team .container .subheading {
  width: -moz-max-content;
  width: max-content;
  margin: 0 auto;
}
.section-team .container h1, .section-team .container h2 {
  max-width: 900px;
  margin: 20px auto;
  text-align: center;
  font-size: 4em;
}
.section-team .container .text, .section-team .container .text-bottom {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}
.section-team .container > .buttons {
  justify-content: center;
  margin-top: 30px;
}
.section-team .container .team {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  grid-gap: 40px;
  margin-top: 75px;
}
.section-team .container .team .block {
  text-align: center;
  width: calc(33% - 28px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}
.section-team .container .team .block img {
  width: 80%;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
}
.section-team .container .team .block .content {
  position: relative;
  padding: 0 25px 35px;
  width: 100%;
}
.section-team .container .team .block .content:before {
  content: "";
  position: absolute;
  top: -200px;
  left: 0;
  height: calc(100% + 200px);
  width: 100%;
  background-image: linear-gradient(to bottom, rgba(var(--primary-rgb), 0.5), rgba(var(--primary-rgb), 0.9));
}
.section-team .container .team .block h3 {
  font-size: 1.3em;
  margin: 0 0 10px;
  position: relative;
}
.section-team .container .team .block p.position {
  margin: 0 0 10px;
  position: relative;
}
.section-team .container .team .block .text {
  position: relative;
  margin: 15px 0 0;
  opacity: 0.75;
  line-height: 1.5em;
}
.section-team .container .team .block .text *:first-child {
  margin-top: 0;
}
.section-team .container .team .block .text *:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .section-team .container .team .block {
    width: calc(50% - 20px);
  }
}
@media (max-width: 600px) {
  .section-team .container .team {
    justify-content: center;
  }
  .section-team .container .team .block {
    width: 100%;
    max-width: 400px;
  }
}
/*

Scroll Animations

*/
.section-team .block {
  margin-top: -50px;
  opacity: 0;
  transition: all 1s;
}
.section-team.scrolled-to .block {
  margin-top: 0;
  opacity: 1;
}