.flex_layout.testimonials_switcher{
    padding-block: 9rem;
    background-color: var(--mahogany);
    color: var(--ivory);

    position: relative;
    isolation: isolate;
    overflow: clip;
}

.flex_layout.testimonials_switcher::before{
    content: '';
    width: 200%;
    aspect-ratio: 1;
    background-image: url(/wp-content/themes/bb-theme-child/assets/images/circle.png);
    background-size: contain; background-position: center;
    position: absolute;
    z-index: -1;
    top: 0; left: 60%;

    transform: translate(-50%, -50%);
}

.flex_layout.testimonials_switcher::after{
    content: '';
    width: 125%;
    aspect-ratio: 1;
    background-image: url(/wp-content/themes/bb-theme-child/assets/images/circle.png);
    background-size: contain; background-position: center;
    position: absolute;
    z-index: -1;
    top: 100%; left: 20%;

    transform: translate(-50%, -50%);
}

.flex_layout.testimonials_switcher .navigation{
    place-self: start;
    display: flex;
    gap: .75rem;
    align-items: center;
}

.flex_layout.testimonials_switcher .navigation .separator{
    display: block;
    width: 1.5rem; height: 1px;
    background-color: currentColor;
}


.flex_layout.testimonials_switcher .testimonials{
    max-width: 100%;
    grid-column: 4 / span 8;
}

.flex_layout.testimonials_switcher .buttons{
    margin-top: 5rem;
    grid-column: 4 / span 7;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flex_layout.testimonials_switcher .buttons button{
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    aspect-ratio: 1;
    background-color: transparent;
    /* border: 1px solid var(--sandstone); */
    outline: 1px solid var(--sandstone);
    border: none;
    border-radius: 0;

    transition: background-color 300ms ease-in-out;
}

.flex_layout.testimonials_switcher .buttons button span{
    display: block;
    width: 40%; aspect-ratio: 1;
    background-color: var(--sandstone);
    mask: var(--mask-url) no-repeat center /contain;
    -webkit-mask: var(--mask-url) no-repeat center /contain;
    pointer-events: none;
}

.flex_layout.testimonials_switcher .buttons button::before{
    content: '';
    position: absolute;
    background-color: var(--sandstone);
    top: 0; left: 0;
    height: 4px; width: 100%;
    opacity: 0;
    
    transition: opacity 300ms ease-in-out;
}

.flex_layout.testimonials_switcher .buttons button.active,
.flex_layout.testimonials_switcher .buttons button:is(:hover,:active,:focus){
    background-color: var(--mahogany);
}

.flex_layout.testimonials_switcher .buttons button.active::before{
    opacity: 1;
}

.flex_layout.testimonials_switcher .text{
    font-size: var(--heading-2);
    font-weight: var(--body-semibold);
    line-height: 1.2;
    letter-spacing: -0.04em;

    margin-bottom: 5rem;
}

.flex_layout.testimonials_switcher .info{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex_layout.testimonials_switcher .name{
    font-weight: var(--body-semibold);
}

.flex_layout.testimonials_switcher .companies{

    display: flex;

}

@media only screen and (max-width: 1024px){
    .flex_layout.testimonials_switcher .navigation{
        margin-bottom: 1.5rem;
    }

    .flex_layout.testimonials_switcher{
        padding-block: 0;
    }
    .flex_layout.testimonials_switcher .testimonials,
    .flex_layout.testimonials_switcher .buttons{
        grid-column: 1 / -1;
    }

    .flex_layout.testimonials_switcher .buttons{
        margin-top: 2.5rem;
    }

    .flex_layout.testimonials_switcher .text{
        margin-bottom: 2rem;
    }

    .flex_layout.testimonials_switcher .info{
        flex-direction: column;
        align-items: start;
        gap: 1.5rem;
    }

}