:root {
  --corner-radius: 4rem;
  --corner-radius-sm: 2rem;
}

@media (min-width: 782px) {
  :root {
    --corner-radius: 5rem;
    --corner-radius-sm: 2.4rem;
  }
}
.team {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: var(--wp--preset--spacing--small);
  align-items: start;
}
@media (min-width: 880px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
  }
}
.team__member {
  text-align: center;
  padding: 2.5rem;
  background: #fff;
  border: 1px solid rgba(14, 14, 38, 0.1);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.team__member .bio-content {
  display: none;
}
.team__member:hover {
  background: #FE7051;
}
.team__member:hover .profile h3, .team__member:hover .profile .meta {
  color: #fff;
}
.team__member:hover .li {
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.team__member:hover .li path {
  fill: #fff;
}
.team .profile img {
  width: 100%;
  max-width: 220px;
  height: auto;
  aspect-ratio: 1/1;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 100%;
}
.team .profile h3 {
  font-size: var(--wp--preset--font-size--font-24);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.1ch 0;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.team .profile .meta {
  font-size: var(--wp--preset--font-size--font-24);
  line-height: 1.2;
  color: #FE7051;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.team .profile .title {
  padding: 2.5rem 0 var(--wp--preset--spacing--xxl) 0;
}
.team .li {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: var(--wp--preset--font-size--font-15);
  font-weight: 500;
  text-transform: uppercase;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(14, 14, 38, 0.1);
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), border 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.team .li svg {
  width: 20px;
  height: 20px;
}
.team .li svg path {
  transition: fill 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.team .li:hover path {
  fill: #0E0E26;
}
@media (min-width: 1200px) {
  .team .team__member {
    padding: 4rem 4rem 2.5rem 4rem;
  }
  .team .profile .title {
    padding-top: 4.5rem;
  }
}

html.modal-opened {
  overflow: hidden;
}

#team__modal {
  background: rgba(99, 69, 102, 0.2);
  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: 640px;
  height: 100%;
  padding: 40px;
  border-radius: 40px 0 0 40px;
  background: #fff;
  position: absolute;
  right: 0;
  transform: translateX(100%);
  transition: 0.5s ease;
  pointer-events: all;
  overflow: auto;
}
@media (max-width: 659px) {
  #team__modal .modal-inner {
    border-radius: 0;
  }
}
@media (min-width: 1024px) {
  #team__modal .modal-inner {
    padding: 80px;
  }
}
#team__modal .modal-inner::-webkit-scrollbar {
  width: 10px;
}
#team__modal .modal-inner::-webkit-scrollbar-thumb {
  background: rgba(14, 14, 38, 0.3);
  border-radius: 8px;
  border: none;
  -webkit-transition: 0.2s ease;
  transition: 0.2s ease;
  opacity: 0;
}
#team__modal .modal-inner::-webkit-scrollbar-track {
  background: rgba(14, 14, 38, 0.1);
}
#team__modal .modal-inner:hover::-webkit-scrollbar-thumb {
  opacity: 1;
}
#team__modal .modal-content img {
  width: 210px;
}
#team__modal .modal-content #title {
  padding: var(--wp--preset--spacing--normal) 0 var(--wp--preset--spacing--m) 0;
}
#team__modal .modal-content #title h3 {
  font-size: var(--wp--preset--font-size--font-32);
  font-weight: 500;
  margin: 0 0 0.2ch 0;
}
#team__modal .modal-content #title p {
  font-size: var(--wp--preset--font-size--font-24);
  color: #FE7051;
}
#team__modal .modal-content #bio p {
  font-size: var(--wp--preset--font-size--font-18);
  line-height: 1.3;
}
#team__modal .modal-content .li {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
  font-size: var(--wp--preset--font-size--font-15);
  font-weight: 500;
  text-transform: uppercase;
  padding-top: var(--wp--preset--spacing--normal);
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#team__modal .modal-content .li svg {
  width: 20px;
  height: 20px;
}
#team__modal .modal-content .li svg path {
  transition: fill 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#team__modal .modal-content .li:hover path {
  fill: #0E0E26;
}
@media (min-width: 1024px) {
  #team__modal .modal-content img {
    width: 340px;
  }
}
#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 {
  width: 56px;
  position: absolute;
  top: var(--wp--preset--spacing--small);
  right: var(--wp--preset--spacing--small);
}
#team__modal #close {
  display: block;
  width: 56px;
  height: 56px;
  font-size: 46px;
  font-weight: 300;
  line-height: 1;
  text-align: center;
  color: #fff;
  background: #FE7051;
  border: none;
  border-radius: 100%;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background 0.25s ease-in-out;
}
#team__modal #close:hover {
  background: #0E0E26;
}
#team__modal .swiper-button-prev,
#team__modal .swiper-button-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(14, 14, 38, 0.1);
  border-radius: 100%;
  margin: 0;
  transition: background 0.25s 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: 9px;
  height: 14px;
  transition: transform 0.25s ease-in-out;
}
#team__modal .swiper-button-prev svg circle,
#team__modal .swiper-button-next svg circle {
  transition: fill 0.25s ease-in-out;
}
#team__modal .swiper-button-prev:hover,
#team__modal .swiper-button-next:hover {
  background: #FE7051;
}
#team__modal .swiper-button-prev:hover svg,
#team__modal .swiper-button-next:hover svg {
  transform: scale(1.3);
}
#team__modal .swiper-button-prev:hover circle,
#team__modal .swiper-button-next:hover circle {
  fill: #fff;
}
#team__modal .swiper-button-next {
  top: 65px;
  right: 0;
}
#team__modal .swiper-button-prev {
  top: 130px;
  left: 0;
}

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