.layout_team{
    position: relative; isolation: isolate;
    aspect-ratio: 36/67; border-radius: 10px;
    display: flex; flex-direction: column;
    text-decoration: none;
    background-size: cover; background-position: center;
}
.layout_team:is(:hover,:active,:focus){
    text-decoration: none;
}
.layout_team::before{
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(transparent, #1c1c1c);
    z-index: -1;
}
.layout_team .content{
    margin-top: auto;
    display: flex;gap: 20px; justify-content: space-between; align-items: flex-end;
    padding: 20px;
}
.layout_team .info h4{
    color: white;
    margin-bottom: 0;
}
.layout_team .info .role{
    color: white;
    font-weight: 400;
    font-size: 14px;
}
.team_popup .tags,
.layout_team .info .tags{
    display: flex; flex-direction: row; gap: .5rem; flex-wrap: wrap;
}
.team_popup .tags .tag,
.layout_team .info .tags .tag{
    display: block; background-color: var(--sg-purple-400); border-radius: 8px;
    color: white;
    padding: 2px 20px; line-height: 1.5;
    border: 1px solid rgba(255,255,255,0.5);
    text-decoration: none;
}
.layout_team .info .tags .tag{
    font-size: 14px;
}
.layout_team .indicator{
    flex-shrink: 0;
    border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
    background-color: var(--sg-purple-400);
    width: 50px; height: 50px; padding: 10px;
    transition: background-color 300ms ease-in-out;
}
.layout_team .indicator svg{
    width: 100%; height: 100%;
    fill: white;
    transition: fill 300ms ease-in-out,
                rotate 300ms ease-in-out;
}
.layout_team:is(:hover, :active, :focus) .indicator{
    background-color: #fff;
}
.layout_team:is(:hover, :active, :focus) .indicator svg{
    fill: #1c1c1c;
    rotate: -40deg;
}

/* Swiper */
.team_swiper .swiper-slide:has(.layout_testimonials){
    height: auto;
    max-width: 600px;
}

.team_swiper + .swiper-nav{
    margin-top: 50px;
    display: flex; align-items: center; gap: 25px;
    max-width: 900px; margin-inline: auto;
}
.team_swiper + .swiper-nav .btn-next,
.team_swiper + .swiper-nav .btn-prev{
    display: flex; height: 20px; aspect-ratio: 1;
    background-color: var(--sg-purple-400);
    mask: url(https://space-gyms.com/wp-content/uploads/2024/09/East-24dp.svg) no-repeat center / contain;
    -webkit-mask: url(https://space-gyms.com/wp-content/uploads/2024/09/East-24dp.svg) no-repeat center / contain;
}
.team_swiper + .swiper-nav .btn-prev{
    rotate: 180deg;
}
.team_swiper + .swiper-nav .swiper-scrollbar{
    position: relative;
    width: 100%; height: 2px;
    background-color: rgba(217, 217, 217, 0.41);
    bottom: unset; top: unset; left: unset;
    border-radius: 0;
}
.team_swiper + .swiper-nav .swiper-scrollbar-drag{
    background-color: var(--sg-purple-400);
    border-radius: 0;
}

.team_swiper .swiper-slide > a{
    transition: scale 400ms ease-in-out 100ms,
                opacity 500ms ease-in-out,
                translate 300ms ease-in-out;
}
.team_swiper .swiper-slide:not(.swiper-slide-visible) > a{
    opacity: 0;
    scale: .7;
}
.team_swiper .swiper-slide{
    z-index: 2;
}
.team_swiper .swiper-slide-visible:not(.swiper-slide-fully-visible){
    z-index: 1;
}
.team_swiper .swiper-slide-visible:not(.swiper-slide-fully-visible) > a{
    scale: .7;
    opacity: .5;
}
.team_swiper .swiper-slide:nth-child(1 of .swiper-slide-visible:not(.swiper-slide-fully-visible)) > a{
    /* transform-origin: left center; */
    translate: 33%;
}
.team_swiper .swiper-slide:nth-child(2 of .swiper-slide-visible:not(.swiper-slide-fully-visible)) > a{
    /* transform-origin: right center; */
    translate: -33%;
}


.team_popup{
    border-radius: 10px;
    background-image: radial-gradient(circle at 50% 40%, rgba(148, 120, 251, 0.45) 0%, rgba(148, 120, 251, 0) 20%);
}
.team_popup .closeButton{
    background-color: var(--sg-purple-400);
    border-radius: 3px;
    top: 20px; right: 20px;
}
.team_popup .image{
    aspect-ratio: 1;
    border-radius: 3px;
    overflow: clip;
}
.team_popup .image img{
    object-fit: cover; width: 100%; height: 100%;
    object-position: top center;
}
.team_popup .person{
    display: grid; grid-template-columns: repeat(2,1fr);
    align-items: start;
    gap: 40px;
}
.team_popup .details{
    padding-block: 20px;
}
.team_popup .fields{
    margin-top: 20px;
}
.team_popup .quote{
    width: 80%; margin-top: 100px;
    font-family: "integral cf","integral cf Fallback",Verdana,Arial,sans-serif;
    font-size: clamp(24px, 2.5vw, 32px); font-weight: 500;
    line-height: 1.25;
    text-transform: uppercase;
}

@media only screen and (max-width: 992px){
    .team_popup .person{
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .team_popup .quote{
        margin-top: 20px;
        width: 100%;
        opacity: .7;
    }
}