.elementor-widget-bbe_team_hover_cards {
    width: 100%;
}

.bbe-team,
.bbe-team * {
    box-sizing: border-box;
}

.bbe-team {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
}

.bbe-team__card {
    -webkit-mask-image: url('../img/team-shape.png');
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    isolation: isolate;
    mask-image: url('../img/team-shape.png');
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    transition: background-color .28s ease, border-color .28s ease;
    width: 100%;
}

.bbe-team--reveal-ready .bbe-team__card {
    opacity: 0;
    transform: translateY(28px) scale(.96);
}

.bbe-team--reveal-ready.bbe-team--visible .bbe-team__card {
    animation: bbe-team-card-reveal .7s cubic-bezier(.2, .75, .25, 1) forwards;
}

.bbe-team--visible .bbe-team__card:nth-child(1) { animation-delay: .1s; }
.bbe-team--visible .bbe-team__card:nth-child(2) { animation-delay: .3s; }
.bbe-team--visible .bbe-team__card:nth-child(3) { animation-delay: .5s; }
.bbe-team--visible .bbe-team__card:nth-child(4) { animation-delay: .7s; }
.bbe-team--visible .bbe-team__card:nth-child(5) { animation-delay: .9s; }
.bbe-team--visible .bbe-team__card:nth-child(6) { animation-delay: 1.1s; }

@keyframes bbe-team-card-reveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.bbe-team__card::after {
    background: url('../img/team-shape.png') center / 100% 100% no-repeat;
    content: "";
    inset: 0;
    mix-blend-mode: multiply;
    pointer-events: none;
    position: absolute;
    z-index: 3;
}

.bbe-team__card:hover,
.bbe-team__card:focus,
.bbe-team__card:focus-within {
    outline: none;
}

.bbe-team__card:focus-visible {
    box-shadow: 0 0 0 3px rgba(13, 42, 97, .28);
}

/* .bbe-team__face, */
.bbe-team__hover {
    height: 100%;
    inset: 0;
    position: absolute;
    transition: opacity .22s ease, transform .28s ease;
    width: 100%;
    z-index: 1;
}

.bbe-team__face {
    display: flex;
    flex-direction: column;
    opacity: 1;
    align-items: center;
    align-content: center;
    text-align: center;
}

.bbe-team__hover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
}

.bbe-team__card:hover .bbe-team__face,
.bbe-team__card:focus .bbe-team__face,
.bbe-team__card:focus-within .bbe-team__face {
    opacity: 0;
    transform: translateY(-8px);
}

.bbe-team__card:hover .bbe-team__hover,
.bbe-team__card:focus .bbe-team__hover,
.bbe-team__card:focus-within .bbe-team__hover {
    opacity: 1;
    transform: translateY(0);
}

.bbe-team__image {
    flex: 0 0 auto;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

.bbe-team__summary {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    text-align: center;
    padding: 10px 10px 0px 10px;
    width: 90%;
}

.bbe-team__name,
.bbe-team__role,
.bbe-team__bio {
    color: inherit;
    margin-bottom: 0;
    margin-top: 0;
}

.bbe-team__name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.bbe-team__role {
    font-size: 8px;
    line-height: 1.25;
}

.bbe-team__bio {
    font-size: 8px;
    line-height: 1.35;
}

@media (max-width: 1024px) {
    .bbe-team {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .bbe-team {
        grid-template-columns: minmax(0, 1fr);
        margin: 0 auto;
        max-width: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .bbe-team__card,
    .bbe-team__face,
    .bbe-team__hover {
        animation: none !important;
        opacity: 1;
        transform: none;
        transition: none;
    }
}
