.team .title {
  position: relative;
}

.team .title::before {
  content: "";
  position: absolute;
  bottom: -50px;
  right: 19.5%;
  width: 84px;
  height: 102px;
  transform: rotate(266deg);
  z-index: -1;
  animation: float-2 8s ease-in-out alternate-reverse infinite;
  background: url(/images/shape-13.png) no-repeat;
  background-size: 30px;
}

@media (max-width: 600px) {
  .team .title::before {
    right: 0%;
  }
}

.team .title::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 20%;
  width: 84px;
  height: 102px;
  z-index: -1;
  animation: float-2 8s ease-in-out alternate infinite;
  background: url(/images/shape-5.png) no-repeat;
  background-size: 35px;
}

@media (max-width: 600px) {
  .team .title::after {
    left: 10%;
  }
}

@media (max-width: 600px) {
  .team .title {
    font-size: 3rem;
  }
}

@media (max-width: 430px) {
  .team .title {
    font-size: 2.5rem;
  }
}

@media (max-width: 375px) {
  .team .title {
    font-size: 1.9rem;
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 75px;
  margin-top: 5rem;
  margin-bottom: 5rem;
  position: relative;
}

@media (max-width: 774px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

.team-grid .member {
  position: relative;
}

.team-grid .member:hover {
  cursor: pointer;
}

.team-grid .member:hover .overlay {
  opacity: 1;
}

.team-grid .member a {
  color: inherit;
}

.team-grid .member ul li {
  display: inline-block;
  transition: 0.3s ease all;
}

.team-grid .member ul li:not(:last-child) {
  margin-right: 10px;
}

.team-grid .member ul li:hover {
  color: var(--primary);
}

.team-grid .member .overlay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: -webkit-linear-gradient(bottom right, #122038, #162643);
  color: white;
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: 0.3s ease all;
}

