:root {
  --sidebar-width: 31rem;
  --layout-gap: 4rem;
  --wp--style--block-gap: clamp(3.5rem, 2.737rem + 1.404vw, 4rem);
}

@media (min-width: 1300px) {
  :root {
    --sidebar-width: 34rem;
    --layout-gap: 6rem;
  }
}
.team {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 4rem;
  align-items: start;
}
@media (min-width: 650px) {
  .team {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1250px) {
  .team {
    grid-template-columns: repeat(4, 1fr);
  }
}
.team__member {
  margin-bottom: 5rem;
  cursor: pointer;
  transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.team__member .bio-content {
  display: none;
}
.team .profile img {
  width: 100%;
  height: auto;
  aspect-ratio: 32/25;
  object-fit: cover;
  margin-bottom: var(--wp--preset--spacing--small);
  border-radius: 5px;
}
.team .profile .title {
  padding-right: 40px;
  position: relative;
}
.team .profile h3 {
  font-size: var(--wp--preset--font-size--font-23);
  line-height: 1.25;
  margin: 0 0 0.4ch 0;
  color: #86F1A7;
}
.team .profile .meta {
  font-size: var(--wp--preset--font-size--font-17);
  line-height: 1.2;
  color: #D6DBE7;
  transition: color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.team .profile .li {
  display: block;
  position: absolute;
  top: 6px;
  right: 0;
}
.team .profile .li svg {
  width: 26px;
  height: 26px;
}
.team .profile .li svg path {
  fill: #AEB6C6;
}

html.modal-opened {
  overflow: hidden;
}

#team__modal {
  background: linear-gradient(114deg, rgba(0, 37, 148, 0.9) 5%, rgba(134, 241, 167, 0.9) 95%);
  opacity: 0;
  visibility: hidden;
  inset: 0;
  position: fixed;
  z-index: 9999;
  transition: 0.5s ease 0.2s;
  pointer-events: all;
}
#team__modal .modal-inner {
  max-width: 500px;
  height: 100%;
  background: #021032;
  position: absolute;
  right: 0;
  transform: translateX(100%);
  transition: 0.5s ease;
  pointer-events: all;
  z-index: 200;
}
#team__modal .modal-content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  height: 100%;
}
#team__modal .modal-content img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
#team__modal .modal-content #title {
  width: 100%;
  padding: 3rem 3.5rem 2rem 3.5rem;
}
#team__modal .modal-content #title h3 {
  font-size: var(--wp--preset--font-size--font-23);
  margin: 0 0 0.15ch 0;
  color: #FFF;
}
#team__modal .modal-content #title p {
  font-size: var(--wp--preset--font-size--font-17);
  color: #86F1A7;
}
#team__modal .modal-content #bio {
  width: 100%;
  height: calc(100% - 530px);
  padding: 0 3.5rem 1rem 3.5rem;
  position: relative;
  overflow: auto;
}
#team__modal .modal-content #bio p {
  font-size: var(--wp--preset--font-size--font-18);
}
#team__modal .modal-content #bio::-webkit-scrollbar {
  width: 8px;
  border-radius: 8px;
}
#team__modal .modal-content #bio::-webkit-scrollbar-thumb {
  background: rgba(0, 77, 188, 0.55);
  border-radius: 8px;
  border: none;
  transition: 0.2s ease;
  opacity: 0;
  border-radius: 8px;
}
#team__modal .modal-content #bio::-webkit-scrollbar-track {
  background: rgba(214, 219, 231, 0.25);
  border-radius: 8px;
}
#team__modal .modal-content #bio:hover::-webkit-scrollbar-thumb {
  opacity: 1;
}
#team__modal .modal-content .li {
  display: flex;
  flex-wrap: wrap;
  gap: 1ch;
  align-items: center;
  font-size: var(--wp--preset--font-size--font-16);
  font-weight: 300;
  text-transform: uppercase;
  margin-top: 3.5rem;
  color: #FFF;
}
#team__modal .modal-content .li svg {
  width: 22px;
  height: 22px;
}
#team__modal .modal-content .li svg path {
  fill: #AEB6C6;
}
#team__modal .modal-content .li em {
  font-style: normal;
}
#team__modal.active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0;
}
#team__modal.active .modal-inner {
  transform: translateX(0);
  transition-delay: 0.2s;
  opacity: 1;
}
#team__modal .modal-controls {
  height: 44px;
  position: absolute;
  bottom: 2rem;
  left: 3.5rem;
  right: 3.5rem;
  z-index: 9;
}
#team__modal #close {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 30px;
  font-weight: 200;
  line-height: 5px;
  text-align: center;
  padding-top: 18px;
  color: #fff;
  background: transparent;
  border: 1px solid #86F1A7;
  border-radius: 100%;
  -webkit-appearance: none;
  cursor: pointer;
  position: absolute;
  top: 0;
  right: 0;
  transition: color 0.45s ease-in-out, background 0.45s ease-in-out;
}
#team__modal #close:hover {
  color: #000A24;
  background: #86F1A7;
}
#team__modal .swiper-button-prev,
#team__modal .swiper-button-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #86F1A7;
  border-radius: 100%;
  margin: 0;
  transition: background 0.45s ease-in-out;
}
#team__modal .swiper-button-prev.disabled,
#team__modal .swiper-button-next.disabled {
  opacity: 0.3;
  cursor: text;
}
#team__modal .swiper-button-prev:after,
#team__modal .swiper-button-next:after {
  display: none;
}
#team__modal .swiper-button-prev svg,
#team__modal .swiper-button-next svg {
  width: 13px;
  height: 12px;
}
#team__modal .swiper-button-prev svg path,
#team__modal .swiper-button-next svg path {
  transition: stroke 0.45s ease-in-out;
}
#team__modal .swiper-button-prev:hover,
#team__modal .swiper-button-next:hover {
  background: #86F1A7;
}
#team__modal .swiper-button-prev:hover path,
#team__modal .swiper-button-next:hover path {
  stroke: #000A24;
}
#team__modal .swiper-button-next {
  top: 0;
  left: 54px;
}
#team__modal .swiper-button-prev {
  top: 0;
  left: 0;
}

html.menu-opened #team__modal {
  pointer-events: all;
}

.is-hidden {
  display: none;
}
