.team .title,
    .team .content {
  flex: 1;
}

.team .title h3 {
    color: #000;
    font-family: Cinzel;
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: 126.7%;
    text-align: center;
}

.team .content h5 {
  font-size: 16px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.team .content p {
  font-size: 14px;
}

.team main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 50px;
  row-gap: 70px;
  padding: 50px 0px;
  width: 80%;
}

main .profile {
  display: flex;
  justify-content: center;
  position: relative;
}

.team main .profile figure {
  width: 85%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.team main .profile figure img {
  width: 80%;
}

.team main .profile figure figcaption {
  font-size: 16px;
  font-weight: 500;
  margin-top: 12px;
  text-transform: capitalize;
  cursor: pointer;
}

.team main .profile figure::after {
  content: attr(data-value);
  width: 100%;
  transform-origin: 0 0;
  transform: rotate(90deg);
  position: absolute;
  text-transform: uppercase;
  font-size: 12px;
  right: -92%;
}

.team main .profile:nth-child(2) {
  margin-top: 70px;
}

.team main .profile:nth-child(4) {
  margin-top: -70px;
}

.team main .profile:nth-child(6) {
  margin-top: -70px;
}



@media screen and (max-width: 1440px) {
 

  .team main {
    column-gap: 50px;
  }
}

@media screen and (max-width: 1024px) {
 

    .team main {
    column-gap: 35px;
  }
}

@media screen and (max-width: 768px) {
 

  .team main {
    column-gap: 25px;
  }
}

@media screen and (max-width: 600px) {

 

  .team.title {
    align-self: flex-start;
  }

  header .title h3 {
    font-size: 30px;
  }

  .team main {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0px;
    row-gap: 0px;
  }

  .team main .profile:nth-child(2),
  .team main .profile:nth-child(4),
  .team main .profile:nth-child(6) {
    margin-top: 50px;
  }

 .team  main .profile:nth-child(3),
 .team main .profile:nth-child(5) {
    margin-top: 0px;
  }
}