/* #team-content {
  overflow-y: scroll;
  height: calc(100vh - 160px);
} */

#team-content .about-back::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

#team-content .about-back {
  position: fixed;
  top: 0;
  bottom: 0;
}

#team-modal h1,
#team-modal h2,
#team-modal h3,
#team-modal h4,
#team-modal h5,
#team-modal h6,
#team-content h1,
#team-content h2,
#team-content h3,
#team-content h4,
#team-content h5,
#team-content h6 {
  font-family: Adobe Garamond Pro;
  font-weight: 400;
  text-transform: none;
}

#team-modal h1,
#team-content h1 {
  font-size: 2.8rem;
}

#team-modal h2,
#team-content h2 {
  font-size: 2.2rem;
}

#team-modal h3,
#team-content h3 {
  font-size: 1.6rem;
}

#team-modal h4,
#team-content h4 {
  font-size: 1.45rem;
}

#team-modal h5,
#team-content h5 {
  font-size: 1.2rem;
}

#team-modal h6,
#team-content h6 {
  font-size: 1rem;
}

#team-modal p,
#team-content p {
  text-transform: none;
  font-family: Gotham Book;
  font-size: 1rem;
}

#team-content .headings {
  text-align: center;
}

#team-content .headings > * {
  color: #fff;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 4rem;
}

.mb-8 {
  margin-bottom: 8rem;
}

.pt-4 {
  padding-top: 4rem;
}

.pb-4 {
  padding-bottom: 4rem;
}

.pl-4 {
  padding-left: 4rem;
}

.pr-4 {
  padding-right: 4rem;
}

.py-4 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.px-4 {
  padding-left: 4rem;
  padding-right: 4rem;
}

.pt-2 {
  padding-top: 2rem;
}

.pb-2 {
  padding-bottom: 2rem;
}

.pl-2 {
  padding-left: 2rem;
}

.pr-2 {
  padding-right: 2rem;
}

.py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.px-2 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.team-modal--is-active {
  height: 100vh;
  overflow: hidden;
}

.c-team-members {
  padding: 0;
}

.c-team-members__item {
  cursor: pointer;
}

.c-team-members__inner {
  border: 1px solid black;
  background-color: white;
}

.c-team-modal__background,
.c-team-members__image {
  position: relative;
  height: 0;
  padding-bottom: 100%;
}

.c-team-members__image {
  margin-bottom: 1.5rem;
}

.c-team-modal__background > div,
.c-team-members__image > div {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-size: cover;
  background-position: 50% 50%;
}

.c-team-members__content {
  padding: 0 1rem 1rem;
}

.c-team-modal__email,
.c-team-modal__phone_number,
.c-team-modal__offce_address,
.c-team-members__email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.c-team-members__email,
.c-team-modal__email .icon {
  fill: #86754e;
}

.c-team-modal__phone_number .icon path {
  stroke: #86754e;
}

.c-team-modal__offce_address .icon path {
  fill: #86754e;
}

.c-team-modal__inner .svg,
.c-team-members .svg {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 32px;
  margin-right: 0.5rem;
}

.c-team-modal__inner .logo {
  width: 70px;
  height: auto;
}

.c-team-modal__inner .icon,
.c-team-members .icon {
  height: 24px;
  width: auto;
}

.team-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.2);
  transform-origin: 50% 50%;
  transition: none;
}

.team-modal-overlay.is-active {
  opacity: 1;
  pointer-events: initial;
  transform: scale(1);
  transition: 0.5s all ease-in-out;
}

.team-modal-box {
  background: #fff;
  max-width: 1024px;
  width: 90%;
  padding: 0 2rem 2rem;
  position: relative;
  /* border-radius: 8px; */
  overflow-y: auto;
  max-height: 80vh;
}

.team-modal-close {
  position: absolute;
  top: 16px;
  right: 10px;
  font-size: 2.8rem;
  border: none;
  background: none;
  cursor: pointer;
  font-weight: 300;
  color: #86754e;
  z-index: 100;
}

.c-team-modal__inner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column-reverse;
}

.c-team-modal__content {
  padding-top: 2rem;
}

.c-team-modal__bio {
  font-size: 1rem;
  line-height: 1.4;
}

.c-team-modal__left {
  width: 100%;
}
.c-team-modal__right {
  margin-top: 10px;
  width: 100%;
}

@media (max-width: 1023px) {
  .c-team-modal__background {
    margin-left: -2rem;
    margin-right: -2rem;
  }

  .team-modal-close {
    color: white;
    top: 16px;
    right: 16px;
    font-size: 2.2rem;
  }

  .team-modal-close::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background-color: black;
    width: 42px;
    height: 42px;
    right: -3px;
    z-index: -1;
    top: -6px;
  }
}

@media (min-width: 1024px) {
  .team-modal-close {
    font-size: 3.2rem;
  }
  .c-team-modal__inner-content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .c-team-modal__inner-content .c-team-modal__left > *:last-child {
    margin-bottom: 0;
  }

  .c-team-modal__inner-content {
    padding-top: 1rem;
  }

  .c-team-modal__left {
    width: calc(100% - 100px);
    min-height: 90px;
  }
  .c-team-modal__right {
    width: 90px;
    margin-left: 10px;
    margin-top: 0;
  }

  .team-modal-box {
    padding: 3.5rem;
  }
  .c-team-modal__inner {
    flex-direction: row;
    align-items: center;
  }

  .c-team-modal__background {
    padding-bottom: 50%;
    width: 50%;
  }

  .c-team-modal__content {
    padding-right: 2rem;
    width: calc(50% - 2rem);
    padding-top: 0;
  }
}
