content.team,
body {
  background-color: var(--color-cream);
  height: auto;
}

.content-header {
  width: 100%;
  height: auto;
  min-height: 300px;
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  column-gap: 200px;
}
.content-header .text-primary {
  width: 450px;
  padding: 80px 0;
}
.content-header .text-secondary {
  width: 450px;
  padding: 80px 0;
}
.content-header h1 {
  color: var(--color-black);
  font-size: 50px;
  line-height: 50px;
}
.content-header .team-image {
  width: 100%;
}

.team-grid {
  width: 1130px;
  margin: 0 auto 80px;  
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 16px;
}
.team-grid .team-employee {
  width: 260px;
  margin: 0 0 24px;
}
.team-grid .team-employee:hover .employee-image {
  filter: grayscale(0%);
  transform: scale(1.02);
  transition: 0.3s;
}
.team-grid .team-employee .employee-image {
  border-radius: 16px;
  width: 100%;
  filter: grayscale(100%);
}
.team-grid .team-employee .employee-name {
  padding: 24px 0 8px;
}
.team-grid .team-employee .employee-name h4 {
  color: var(--color-blue-light);
  font-size: 20px;
  line-height: 20px;
  margin: 0;
}
.team-grid .team-employee .employee-function {

}

.team-modal {
  background-color: rgb(24, 41, 73, 0.8);
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: none;
}
.team-modal.visible {
  display: flex;
  justify-content: center;
  align-items: center;
}
.team-modal .modal-wrapper {
  width: 900px;
  display: none;
  position: relative;
}
.team-modal .modal-wrapper.visible {
  display: flex;
  justify-content: center;
  align-items: center;
}
.team-modal .modal-wrapper .close-modal {
  background-color: var(--color-blue-lightest);
  width: 40px;
  height: 40px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  position: absolute;
  top: -20px;
  right: -20px;
}
.team-modal .modal-wrapper .close-modal img {
  width: 100%;
  height: auto;
}
.team-modal .modal-wrapper .modal-content {
  width: 100%;
  background-color: var(--color-cream);
  color: var(--color-black);
  border-radius: 24px;
  overflow: hidden;
  height: auto;
  display: none;
}
.team-modal .modal-wrapper .modal-content.visible {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.team-modal .modal-wrapper .modal-content h3 {
  color: var(--color-black);
  font-size: 32px;
  line-height: 32px;
}
.team-modal .modal-wrapper .modal-content .modal-image {
  width: 40%;
}
.team-modal .modal-wrapper .modal-content .modal-infos {
  width: 60%;
  padding: 32px;
}
.team-modal .modal-wrapper .modal-content .modal-infos .blue-light {
  font-weight: 600;
}

@media (max-width: 900px) {
  .content-header {
    min-height: auto;
  }
  .content-header {
    
  }
  .content-header .text-primary,
  .content-header .text-secondary {
    width: 100%;
  }
  .content-header .text-primary {
    padding: 80px 40px 24px;
  }
  .content-header .text-secondary {
    padding: 0 40px 0;
  }

  .team-grid {
    width: 100%;
    padding: 40px 40px 0;
  }
  .team-grid .team-employee {
    width: 100%;
  }

  .team-modal .modal-wrapper .modal-content.visible {
    width: 100vw;
    height: 100vh;
    flex-wrap: wrap;
    overflow: scroll;
    border-radius: 0;
  }
  .team-modal .modal-wrapper .close-modal {
    top: 10px;
    right: 10px;
  }
  .team-modal .modal-wrapper .modal-content .modal-image,
  .team-modal .modal-wrapper .modal-content .modal-infos {
    width: 100%;
  }
}