.team-card {
    cursor: pointer;
    position: relative;
    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}
.team-card__about {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
    z-index: 2;
    pointer-events: none;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.team-card .elementor-image-box-img {
    position: relative;
    overflow: hidden;
}
.team-card .elementor-image-box-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
    
}

.team-card:hover .elementor-image-box-img img {
    transform: scale(1.08);
}
.team-card:hover .team-card__image img {
    transform: scale(1.05);
    filter: brightness(0.85);
}
.team-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}
.team-modal.is-active {
    pointer-events: auto;
}
.team-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.team-modal.is-active .team-modal__overlay {
    opacity: 1;
}
.team-modal__info {
    width: 56%;
}
.team-modal__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    max-width: 670px;
    height: 100%;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.team-modal.is-active .team-modal__panel {
    transform: translateX(0);
}
.team-modal__close {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    background: none;
    border: 0;
    color: #131313;
    cursor: pointer;
    background: none;
    padding: 0px;
    line-height: 0px;
}
.team-modal__close:hover {
    background-color: #13131300;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #131313ba;
} /* header */
.team-modal__header {
    display: flex;
    gap: 32px;
    align-items: end;
    justify-content: space-between;
}
.team-modal__photo {
    height: 280px;
    width: 255px;
    display: block;
}
.team-modal__photo img {
    display: block;
    position: relative;
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    object-position: top;
}
.team-modal__icons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.team-modal__icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}
.team-modal__icons a:hover {
    transform: translateY(-2px) scale(1.05);
    background-color: rgba(0, 0, 0, 0.05);
}
.team-modal__bio {
    margin-top: 70px;
    p {
        margin-bottom: 0px !important;
        color: #131313;
        font-size: 20px;
        font-weight: 400;
        line-height: 150%;
    }
}
h3.team-modal__name {
    color: #131313;
    font-size: 36px;
    font-weight: 400;
    margin: 0;
    padding-bottom: 5px;
}
p.team-modal__position {
    margin: 0;
    color: #acacac;
    font-size: 18px;
    font-weight: 400;
}
@media (max-width: 1024px) {
    .team-modal__panel {
        width: 65%;
        max-width: none;
        padding: 28px;
    }
    .team-modal__photo {
        width: 200px;
        height: 200px;
    }
    h3.team-modal__name {
        font-size: 30px;
    }
    .team-modal__bio p {
        font-size: 18px;
    }
}
@media (max-width: 768px) {
    .team-modal__panel {
        width: 100%;
        height: 100%;
        padding: 32px 20px;
        overflow: scroll;
    }
.team-card__about {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    background: #111;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    border-radius: 999px;
    z-index: 2;
    pointer-events: none;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}
.team-modal__info {
    width: 100%;
}
    .team-modal__header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 20px;
    }
    .team-modal__photo {
        width: 100%;
        height: 100%;
    }
    .team-modal__photo img {
        height: auto;
    }
    h3.team-modal__name {
        font-size: 26px;
    }
    .team-modal__bio {
        margin-top: 32px;
    }
    .team-modal__bio p {
        font-size: 16px;
    }
    .team-modal__close {
        top: 16px;
        right: 18px;
        left: auto;
    }
}
@media (max-width: 480px) {
    .team-modal__photo {
        width: 100%;
        height: 380px;
    }
}