.list-of-team-block {
    position: relative;
}
.list-of-team-block + .list-of-team-block {
    margin: 10rem 0 0;
}
.list-of-team-block .row {
    --row-default: 148rem;
}
.list-of-team-block :is(.filters, .cards, .full-box) {
    flex: 0 1 100%;
    max-width: 100%;
}
.list-of-team-block .filters {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    margin: 0 0 2.2rem;
    position: relative;
    z-index: 2;
}
.list-of-team-block .filters__controls {
    -webkit-box-flex: 0; 
    -ms-flex: 0 0 auto; 
    flex: 0 0 auto; 
    width: 100%; 
    max-width: none;
    display: flex;
    align-items: center;
    justify-content: space-between;

    display: none;
}
.list-of-team-block .filters__actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    column-gap: 2rem;
}
.list-of-team-block .filters__subtitle {
    color: var(--dark-yellow, #625D34);
    font-family: var(--montserratFont);
    font-size: 1.7rem;
    font-style: normal;
    font-weight: 500;
    line-height: 145%;
    text-transform: uppercase;
}
.list-of-team-block .filters__button {
    border-radius: 1rem;
    background: rgba(84, 96, 100, 0.20);
    backdrop-filter: blur(2rem);
    -webkit-backdrop-filter: blur(2rem); 
    background-clip: padding-box;
    width: 100%;
    height: 4.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--blue, #546064);
    font-family: var(--robotoFont);
    font-size: 1.4rem;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: .01em;
    text-transform: capitalize;
    padding: 1.5rem;
    column-gap: 1.5rem;
    transition: all .7s;
}
.list-of-team-block .filters__button--active {
    color: var(--gray);
    background: var(--rust);
}
.list-of-team-block .cards__item {
    display: none;
}
.list-of-team-block .cards__item > a {
    display: block;
}
.list-of-team-block .cards__item.active {
    display: block;
}
.list-of-team-block .cards__item .img-box {
    border-radius: 1rem;
    aspect-ratio: 1/1;
    margin: 0 0 2rem;
}
.list-of-team-block .cards__item .name {
    margin: 0 0 1.25rem;
}
.list-of-team-block .cards__item .icon-arrow-right {
    margin-left: 1rem;
    font-size: 2rem;
}
.list-of-team-block .load-more {
    display: none;
    color: var(--rust, #8A3F22);
    font-family: var(--robotoFont);
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: .01em;
    text-transform: capitalize;
    margin: 6rem auto 0;
}
.list-of-team-block .load-more i {
    margin-left: 1rem;
    font-size: 2rem;
}
.list-of-team-block .load-more.active {
    display: block;
}
.list-of-team-block .no-matches-message {
    display: none;
    padding: 5rem 0;
}
.list-of-team-block .no-matches-message.active {
    display: block;
}
@media only screen 
and (min-width: 961px) {
    .list-of-team-block + .list-of-team-block {
        margin: 10rem 0 0;
    }
    .list-of-team-block .filters {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
        z-index: 2;
        margin: 0 0 2.3rem;
    }
    .list-of-team-block .filters__subtitle {
        font-size: 1.8rem;
    }
    .list-of-team-block .filters__label {
        margin-right: 5rem;
    }
    .list-of-team-block .filters__button {
        font-size: 1.6rem;
        line-height: 120%;
        letter-spacing: .0087em;
        height: 4.9rem;
    }
    .list-of-team-block .filters__controls {
        width: auto;
        justify-content: flex-start;
    }
    .list-of-team-block .cards {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        column-gap: 3.5rem;
        row-gap: 3rem;
    }
    .list-of-team-block .cards__item {
        margin: 0
    }
    .list-of-team-block .cards__item .icon-arrow-right {
        transition: all .3s;
        display: inline-block;
    }
    .list-of-team-block .cards__item a:hover .icon-arrow-right {
        translate: .5rem;
    }
    .list-of-team-block .cards__item .position {
        margin: 0 0 1rem;
    }
}
@media only screen 
and (min-width: 0) 
and (max-width: 960px) {
    .list-of-team-block .cards__item:not(:last-child) {
        margin: 0 0 3rem;
    }
}


/* Animations
------------------------------------ */
:where(#wrapper) .list-of-team-block {
    opacity: 0;
    --duration: 1s;
}
:where(#wrapper) .list-of-team-block.animateActive  {
    animation: fade var(--duration) forwards;
    animation-delay: var(--delay, 0);
}

.team-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: var(--z-index-modal);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.team-popup.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.team-popup__inner {
    position: relative;
    border-radius: 1rem;
    background: var(--blue);
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.10);
    width: 100%;
    height: 100%;
}
.team-popup__close {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
}
.team-popup__close i {
    color: var(--gray, #E8E3DC);
    font-size: 2.4rem;
}
.team-popup__image {
    flex: 0 1 100%;
    height: 40rem;
    margin: 0 0 2rem;
    background-color: #ffffff;
}
.team-popup__content {
    align-items: flex-start;
    padding: 5rem 4.7rem 5rem;
    overflow-y: auto;
    height: 100svh;
}
.team-popup__info {
    display: flex;
    flex-direction: column;
    row-gap: 3rem;
    overflow-y: auto;
}
.team-popup__name, 
.team-popup__bio,
.team-popup__office {
    color: var(--gray, #E8E3DC);
    font-family: var(--montserratFont);
    font-weight: 400;
    font-style: normal;
}
.team-popup__name {
    font-size: 3.2rem;
    line-height: 115%;
    text-transform: capitalize;
}
.team-popup__bio {
    font-size: 1.6rem;
    line-height: 170%;
}
.team-popup__office {
    margin: 0 0 1rem;
    font-size: 2rem;
    font-style: normal;
    line-height: 100%;
}
.team-popup__contact {
    color: var(--gray, #E8E3DC);
    font-family: var(--robotoFont);
    font-size: 1.6rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.65em;
    letter-spacing: .01em;
}
@media only screen 
and (min-width: 961px) {
    .team-popup__inner {
        width: 100%;
        max-width: 148rem;
        height: 78rem;
    }
    .team-popup__image {
        flex: 0 1 45rem;
        max-width: 45rem;
        height: 60rem;
        margin: 0 2rem 0 0;
    }
    .team-popup__info {
        flex: 1;
        row-gap: 5rem;
        overflow: hidden;
        height: calc(78rem - 10rem);
        overflow-y: auto;
    }
    .team-popup__content {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        overflow: visible;
        height: auto;
    }
    .team-popup__name {
        font-size: 4.5rem;
        line-height: 120%;
        text-transform: capitalize;
    }
    .team-popup__bio {
        font-size: 2rem;
        line-height: 140%;
    }
    .team-popup__office {
        font-size: 2.5rem;
        line-height: 100%;
    }
    .team-popup__close {
        top: 3rem;
        right: 3rem;
    }
    .team-popup__close i {
        font-size: 2.7rem;
    }
}