.customer_voices .slider {
display: grid;
overflow: hidden;
}
.customer_voices .slider > * {
grid-column-start: 1;
grid-row-start: 1;
opacity: 0;
pointer-events: none;
transition: all 1s ease;
transform: translateX(-50%);
border-radius: var(--radius);
background-color: var(--lightgrey);
padding: 2rem 2.375em 4rem;
display: flex !important; justify-content: center;
align-items: flex-start;
gap: 2rem 3rem;
}
.customer_voices .slider figure {
flex-grow: 1;
align-self: center;
width: 50%;
}
.customer_voices .slider img {
border-top-right-radius: var(--radius);
border-bottom-right-radius: var(--radius);
align-self: stretch;
margin: -2rem -2.375em -4rem 0;
max-width: 40%;
object-fit: cover;
}
.customer_voices .slider > .active + * {
transform: translateX(50%);
}
.customer_voices .slider > .active {
opacity: 1;
pointer-events: all;
transform: none !important;
}
.customer_voices nav {
display: flex;
justify-content: space-between;
gap: 4rem;
margin: -2em 2.375em;
}
.customer_voices nav button {
padding: 0;
font-weight: 900;
font-size: 2em;
line-height: 1rem;
margin: 0;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
aspect-ratio: 1;
position: relative;
z-index: 1;
width: 2em;
background: none;
box-shadow: none;
padding: 0;
}
.customer_voices nav button:after {
content: '';
display: block;
position: absolute;
left: 50%;
top: 50%;
background-image: var(--gradient);
border-radius: 1rem;
transform: translate(-50%, -50%);
aspect-ratio: 1;
width: 100%;
z-index: -1;
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, .16), 0 3px 6px rgba(0, 0, 0, .23);
}
.customer_voices figure {
margin: 0;
color: var(--lightblue);
}
.customer_voices blockquote {
border: none;
padding: 0;
margin: 0;
font-style: normal;
color: var(--darkblue);
font-size: 1em;
}
.customer_voices blockquote > * {
font-size: inherit;
}
@media screen and (max-width: 781px) {
.customer_voices .slider > * {
flex-direction: column;
}
.customer_voices .slider figure {
width: 100%;
margin: auto;
flex-grow: 0;
}
.customer_voices .slider img {
border-top-right-radius: 0;
border-bottom-right-radius: var(--radius);
border-bottom-left-radius: var(--radius);
margin: 0 -2.375em -4rem;
max-width: calc(100% + 4.75em);
}
}