#team-modal{
    position:fixed;
    inset:0;
    z-index:99999;
    display:none;
}

#team-modal.active{
    display:block;
}

.team-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
}

.team-modal-panel{
    position:absolute;
    top:0;
    right:-430px;
    width:418px;
    max-width:100%;
    height:100vh;
    background:#fff;
    transition:right .35s ease;
    overflow-y:auto;
    box-shadow:-10px 0 40px rgba(0,0,0,.18);
}

#team-modal.active .team-modal-panel{
    right:0;
}

.team-close{
   position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  border: 0;
  cursor: pointer;
  background: none;
  font-size: 28px;
  color: #000;
  display: block;
  padding: 0px;

}
.team-close:hover{ background:none !important; transform:rotate(0deg) !important; position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  border: 0;
  cursor: pointer;
  background: none;
  font-size: 28px;
  color: #000;
  display: block;
  padding: 0px;
  box-shadow: 0 5px 10px rgba(0,0,0,0);
}
.team-modal-content{
    padding:60px 35px;
}

#team-image{
    width:100%;
    margin-bottom:25px;
}

#team-name{
    margin:0 0 10px;
}

#team-position{
    font-weight:600;
}

#team-company{
    margin-bottom:25px;
    color:#777;
}

body.team-modal-open{
    overflow:hidden;
}
.team-open-modal{
    border-radius: 16px 0 16px 0 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  padding: 12px 24px !important;
  white-space: nowrap !important;
  border:1px solid rgb(9, 27, 70) !important;
  color: rgb(9, 27, 70) !important; display: inline-block;

}
.team-open-modal:hover{
    border-radius: 16px 0 16px 0 !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 24px !important;
  padding: 12px 24px !important;
  white-space: nowrap;
  border-color: rgb(9, 27, 70) !important;
  color: #fff !important;
  background-color: rgb(9, 27, 70) !important;
}
.team-grid{
    display: flex;
  gap: 20px;
  justify-content: space-between; text-align: center;
  margin-top: 30px;
}
@media handheld, only screen and (max-width: 700px) {
    .team-grid{flex-wrap:wrap; gap:10px}
    }
.team-grid h3{
    color: rgb(9, 27, 70);
    margin:0px; padding:0px;
    margin-top: 16px;
    font-family: "Source Sans 3", sans-serif;
font-feature-settings: normal;
font-weight: 600;
letter-spacing: -1.2px;
line-height: 32px;font-size: 24px;
}
.team-grid .position{
    color: rgb(69, 85, 96);
    font-family: "Source Sans 3", sans-serif;
    font-weight: 600;
line-height: 24px;font-size: 16px
}
@media handheld, only screen and (max-width: 700px) {
    .team-card{flex-wrap:wrap; width: calc(50% - 10px)}
    }
.team-btn{ margin-top:16px }
.team-card__image{
    width:100%;
    aspect-ratio:323 / 480;
    overflow:hidden;
    background:#f3f3f3;
    margin-bottom:20px;
    border-bottom-right-radius: 16px;
  border-top-left-radius: 16px;
  overflow: hidden;
}

.team-card__image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    object-position:bottom center;
}
.team-modal-image{
    width:100%;
    aspect-ratio:323 / 480;
    overflow:hidden;
    margin-bottom:24px;
    background:#f3f3f3;
     border-bottom-right-radius: 16px;
  border-top-left-radius: 16px;
  overflow: hidden;
}

.team-modal-image img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    object-position:bottom center;
}
#team-bio p{ display:block; margin-bottom:16px }
