/* .layer--team-cards */
.layer--team-cards p {
    width: 900px;
    max-width: 100%;
}
.team-cards.grid {
    padding: 40px 0; 
    gap: 60px 40px;
}
.team-cards .card {
    border-radius: 20px;
}
.team-cards .card {
    grid-column: span 6;
    flex-direction: row;
}
@media screen and (max-width: 800px) {
    .team-cards.grid {
        grid-template-columns: repeat(3,1fr);
        gap: 20px;
    }
    .team-cards .card {
    grid-column: span 3;
    align-items: flex-start;
}
}
.team-cards .card .avatar {
    width: 127px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1/1.25;
}
@media screen and (max-width: 640px) {
    .team-cards .card .avatar {
        width: 90px;
    }
}
.team-cards .card h3,
#team-bio-drawer h3 {
    font-size: 3.3rem;
    margin-bottom: 10px;  
}

.team-cards .card .pronouns,
#team-bio-drawer .pronouns {
    font-size: 2.3rem;   
    font-weight: 400;
    text-wrap: nowrap;
}
.team-cards .card .job-title,
#team-bio-drawer .job-title {
    font-weight: 500;
    font-size: 2.3rem;   
    font-weight: 500;
    display: block;
        margin-bottom: 10px;

}
.team-cards .card .connect {
    display: flex;
    gap: 10px;
    padding: 5px 0;
}
.team-cards .card .bio-link {
    font-size: 1.8rem;
    font-weight: 500;

    position: relative;
    padding: 0;
}
.team-cards .social-menu li  {
    line-height: 1;
}
.team-cards .social-menu li a {
    width: 40px;
  height: 40px;
}

#team-bio-drawer {
    display: block !important;
    overflow-y: scroll;
    position: fixed !important;
    top: 0;
    right: -601px; 
    width: 600px;
    max-width: 90%;
    color: black;
    padding: 60px;
    text-align: left;
    height: 100vh;
    transition: right 0.3s ease; 
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    z-index: 1000;
}


#team-bio-drawer.open {
    right: 0; /* slide in */
}


#team-bio-drawer .close {
    position: absolute;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 30px;
    right: 30px;

    z-index: 1000000000000;
    background-image: url("../../img/close.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100%;
}
#team-bio-drawer .close:hover {
    opacity: 0.66;
}

@media screen and (max-width: 800px) {
    #team-bio-drawer {
        padding: 30px;
    }
    #team-bio-drawer .close {
        top: 30px;
        right: 30px;
    }
}

@media screen and (max-width: 480px) {
    #team-bio-drawer {
        width: 100%;
        max-width: 100%;

    }
    #team-bio-drawer .close {
        top: 4vw;
        right: 4vw;
    }
}

