.mbsz-testimonials {
    --mbsz-ts-ink: var(--wp--preset--color--atheltes-black, #000);
    --mbsz-ts-paper: var(--wp--preset--color--light, #fff);
    --mbsz-ts-accent: var(--wp--preset--color--ci-red, #dd0029);
    --mbsz-ts-gap: clamp(1rem, 2.4vw, 2rem);
    background: var(--mbsz-ts-ink);
    color: var(--mbsz-ts-paper);
    font-family: var(--wp--preset--font-family--main, inherit);
    padding: clamp(3rem, 6vw, 6rem) 0;
}

.mbsz-testimonials *,
.mbsz-testimonials *::before,
.mbsz-testimonials *::after {
    box-sizing: border-box;
}

.mbsz-testimonials__inner {
    /*width: min(100% - 6rem, 100% - 9rem);*/
    width: var(--wp--style--global--content-size);
    margin-inline: auto;
}

.mbsz-testimonials__heading {
    color: inherit;
    font: inherit;
    font-size: clamp(1.65rem, 3vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
   
    text-transform: uppercase;
    max-width: var(--wp--style--global--content-size);

    margin-top: 0;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 2rem !important;
}

.mbsz-testimonials__shell {
    position: relative;
}

.mbsz-testimonials__track {
    display: flex;
    gap: var(--mbsz-ts-gap);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: .25rem 0 1rem;
}

.mbsz-testimonials__track::-webkit-scrollbar {
    display: none;
}

.mbsz-testimonials__track:focus-visible,
.mbsz-testimonials button:focus-visible {
    outline: 3px solid var(--mbsz-ts-accent);
    outline-offset: 4px;
}

.mbsz-testimonials__card {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.mbsz-testimonials__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.mbsz-testimonials__quote {
    margin: 1.25rem 0 0;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    line-height: 1.55;
}

.mbsz-testimonials__quote p {
    margin: 0;
}

.mbsz-testimonials__byline {
    margin: 1.25rem 0 0;
    line-height: 1.4;
}

.mbsz-testimonials__byline strong,
.mbsz-testimonials__byline span {
    display: block;
}

.mbsz-testimonials__byline strong {
    font-weight: 700;
}

.mbsz-testimonials__arrow {
    display: none;
    position: absolute;
    top: clamp(90px, 12vw, 165px);
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: var(--mbsz-ts-ink);
    color: var(--mbsz-ts-paper);
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.mbsz-testimonials--ready .mbsz-testimonials__arrow:not([hidden]) {
    display: grid;
    place-items: center;
}

.mbsz-testimonials__arrow--prev {
    left: -3.5rem;
}

.mbsz-testimonials__arrow--next {
    right: -3.5rem;
}

.mbsz-testimonials__arrow:hover:not(:disabled) {
    color: var(--mbsz-ts-accent);
    border-color: var(--mbsz-ts-accent);
}

.mbsz-testimonials__arrow:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.mbsz-testimonials__dots {
    display: none;
    justify-content: center;
    gap: .65rem;
    margin-top: 1.5rem;
}

.mbsz-testimonials--ready .mbsz-testimonials__dots:not([hidden]) {
    display: flex;
}

.mbsz-testimonials__dot {
    width: .7rem;
    height: .7rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--mbsz-ts-paper);
    opacity: .45;
    cursor: pointer;
}

.mbsz-testimonials__dot[aria-current="true"] {
    background: var(--mbsz-ts-accent);
    opacity: 1;
}

.mbsz-testimonials [hidden] {
    display: none !important;
}

@media (min-width: 640px) {
    .mbsz-testimonials__card {
        flex-basis: calc((100% - var(--mbsz-ts-gap)) / 2);
    }
}

@media (min-width: 1024px) {
    .mbsz-testimonials__card {
        flex-basis: calc((100% - 2 * var(--mbsz-ts-gap)) / 3);
    }
}

@media (max-width: 639px) {
    .mbsz-testimonials__inner {
        width: min(100% - 4.5rem, 1200px);
    }

    .mbsz-testimonials__arrow {
        top: 32vw;
        width: 2rem;
        height: 2rem;
    }

    .mbsz-testimonials__arrow--prev {
        left: -2.2rem;
    }

    .mbsz-testimonials__arrow--next {
        right: -2.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mbsz-testimonials__track {
        scroll-behavior: auto;
    }
}