.testimonial-grid--slider {
    align-items: stretch;
}

.testimonial-grid--slider .testimonial-card--large {
    grid-row: auto;
}

.testimonial-stack-slider {
    display: flex;
    min-width: 0;
    height: 418px;
    gap: 12px;
}

.testimonial-stack-viewport {
    min-width: 0;
    height: 100%;
    flex: 1;
    overflow: hidden;
    border-radius: 14px;
}

.testimonial-stack-track {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 18px;
    transition: transform 650ms cubic-bezier(.22, .75, .25, 1);
    will-change: transform;
}

.testimonial-stack-track .testimonial-card {
    display: flex;
    width: 100%;
    min-height: 200px;
    height: 200px;
    flex: 0 0 200px;
    flex-direction: column;
    padding: 17px 22px;
}

.testimonial-stack-track .testimonial-card blockquote {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 12px;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.testimonial-stack-track .reviewer {
    margin-top: auto;
}

.testimonial-stack-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 9px;
}

.testimonial-stack-controls button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #dbe7ed;
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(6, 38, 69, .1);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.testimonial-stack-controls button:hover,
.testimonial-stack-controls button:focus-visible {
    transform: translateY(-1px);
    background: var(--navy);
    color: #fff;
}

@media (max-width: 700px) {
    .testimonial-stack-slider {
        height: 418px;
    }

    .testimonial-stack-track .testimonial-card {
        padding: 16px 18px;
    }

    .testimonial-stack-controls button {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-stack-track { transition: none; }
}
