.closecontainer {
  text-align: center;
  margin: 0;
}

/* The Modal (background) */
.team-member-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  padding-top: 0;
}

/* The Close Button (x) */
.close {
  position: relative;
  top: 0;
  left: 0;
  color: #000;
  font-size: 35px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: red;
  cursor: pointer;
}

/* Modal Content/Box */
.team-member-modal .modal-content {
  position: relative;
  background: #cde7f4;
  /* 5% from the top, 15% from the bottom and centered */
  margin: 5% auto 15% auto;
  border-radius: 40px;
  width: 100%;
  max-width: 800px;
  padding: 20px 40px;
  /* Could be more or less, depending on screen size */
  top: 20%;
}

.team-member-modal__team-member {
  display: flex;
  flex: 33%;
  padding: 0 40px 50px 0;
}

.team-member-modal__team-member__photo img {
  margin-right: 40px;
  width: 189px;
  height: 189px;
}

.team-member-modal__team-member__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-member-modal__team-member__info__fullname {
  margin-bottom: 18px;
}

.team-member-modal__team-member__info__fullname h3 {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-size: 36px;
  line-height: 44px;
  color: #121215;
}

.team-member-modal__team-member__info__position {
  margin-bottom: 20px;
}

.team-member-modal__team-member__info__position span {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
}

.team-member-modal__team-member__info__description p {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000;
}

.team-member__info__modal__parallax-ellipse {
  position: absolute;
  width: 500px;
  height: 250px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: var(--cst_red);
  opacity: 0.3;
  filter: blur(100px);
  top: 0;
  left: 0;
  z-index: 0;
}

@media (max-width: 768px) {
  .team-member-modal .modal-content {
    max-width: 688px;
  }

  .team-member-modal__team-member__photo img {
    margin-right: 20px;
  }

  .team-member-modal__team-member__info__fullname {
    margin-bottom: 0;
  }

  .team-member-modal__team-member__info__fullname h3 {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
  }
  .team-member-modal__team-member__info__position span {
    font-size: 16px;
    line-height: 19px;
  }
  .team-member-modal__team-member__info__description p {
    font-size: 14px;
    line-height: 18px;
  }
}

@media (max-width: 600px) {
  .team-member-modal__team-member {
    padding-right: 0;
  }

  .team-member-modal__team-member {
    flex-direction: column;
  }

  .team-member-modal__team-member__photo {
    margin-bottom: 20px;
  }

  .team-member-modal__team-member__info__fullname {
    margin-bottom: 0px;
  }

  .team-member-modal__team-member__info__fullname h3 {
    font-size: 16px;
    line-height: 19px;
  }

  .team-member-modal__team-member__info__position span {
    font-size: 14px;
    line-height: 18px;
  }
}

@media (max-width: 425px) {
  .team-member-modal .modal-content {
    top: 50px;
    padding: 30px 20px;
  }
  
  .team-member-modal__team-member__info__fullname h3 {
    font-size: 14px;
    line-height: 17px;
  }

  .team-member-modal__team-member__info__position span {
    font-size: 14px;
    line-height: 17px;
  }
}
