.team_layout_three {
  margin: 30px 0;
}

.our-team {
  text-align: center;
  transition: all 0.5s ease 0s;
  padding-bottom: 20px;
}

.our-team .pic {
  overflow: hidden;
  position: relative;
}

.our-team .pic:before,
.our-team .pic:after {
  content: "";
  width: 200%;
  height: 80%;
  background: rgba(38, 37, 37, 0.8);
  position: absolute;
  top: -100%;
  left: -4%;
  transform: rotate(45deg);
  transition: all 0.5s ease 0s;
}

.our-team .pic:after {
  background: rgba(8, 75, 77, 0.8);
  top: auto;
  left: auto;
  bottom: -100%;
  right: -4%;
}

.our-team:hover .pic:before {
  top: 0;
}

.our-team:hover .pic:after {
  bottom: 0;
}

.our-team .pic img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.our-team .social {
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  position: absolute;
  bottom: 45%;
  left: 0;
  opacity: 0;
  z-index: 2;
  transition: all 0.5s ease 0.3s;
}

.our-team:hover .social {
  opacity: 1;
}

.our-team .social li {
  display: inline-block;
  margin-left: 12px;
}

.our-team .social li a {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 20px;
  color: #fff;
  position: relative;
  transition: all 0.3s ease 0s;
  text-decoration: none;
}

.our-team .social li a:last-child {
  margin-right: 0;
}

.our-team .social li a:after {
  content: "";
  width: 100%;
  height: 100%;
  background: #db162f;
  border-radius: 0 20px 20px 20px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.3s ease 0s;
}

.our-team .social li a:hover:after {
  transform: rotate(180deg);
}

.our-team .team-content {
  padding: 20px;
}

.our-team .title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #047168;
  text-transform: uppercase;
  margin-bottom: 7px;
  margin-top: 10px;
}

.our-team .post {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #707070;
  text-transform: capitalize;
}

#customer_details > div {
  max-width: 100%;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .team_layout_three .col-md-3 {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}
