.mj-home-reviews {
    padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 4vw, 54px);
    color: #252329;
}

.mj-home-reviews h2 {
    margin: 0 0 clamp(18px, 2.5vw, 30px);
    font-size: clamp(24px, 3.8vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
}

.mj-home-reviews .mj-home-reviews-track {
    --review-gap: clamp(12px, 2vw, 24px);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * var(--review-gap)) / 3);
    gap: var(--review-gap);
    position: relative;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    margin: 0;
    padding: 2px 0 8px;
    list-style: none;
}

.mj-home-reviews-track > li {
    margin: 0;
    min-width: 0;
    scroll-snap-align: start;
}

.mj-home-review {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e6e0dd;
    border-radius: 4px;
    background: #fbf9f7;
}

.mj-home-review > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #eee9e5;
}

.mj-home-review-body {
    padding: clamp(14px, 2vw, 23px);
    font-size: 15px;
    line-height: 1.5;
}

.mj-home-review .mj-home-review-stars {
    margin: 0 0 8px;
    color: #765322;
    font-size: 17px;
    letter-spacing: .12em;
}

.mj-home-review blockquote {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    color: inherit;
    font: inherit;
}

.mj-home-review .mj-home-review-author {
    margin: 0 0 4px;
    font-weight: 600;
}

.mj-home-review a {
    color: #54435a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mj-home-reviews-controls:not([hidden]) {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.mj-home-reviews-controls button {
    width: 44px;
    height: 44px;
    border: 1px solid #c5bcc4;
    border-radius: 2px;
    background: #fff;
    color: #252329;
    font-size: 20px;
}

.mj-home-reviews-controls button[aria-disabled="true"] { opacity: .45; cursor: default; }
.mj-home-reviews-controls button:hover:not([aria-disabled="true"]) { background: #f3edf1; }
.mj-home-reviews :focus-visible { outline: 2px solid #54435a; outline-offset: -2px; }

@media (max-width: 950px) {
    .mj-home-reviews .mj-home-reviews-track { grid-auto-columns: 44%; }
}

@media (max-width: 600px) {
    .mj-home-reviews .mj-home-reviews-track { grid-auto-columns: 86%; }
}
