:root {
    --topmusic-scroller-element-width: 320px;
    --topmusic-scroller-element-height: 240px;
    --topmusic-scroller-element-margin: 10px;
    --topmusic-scroller-element-width-with-margin: 340px;
}
.topmusic-rest-testimonials {
    padding-top: 20px;
    padding-bottom: 20px;
}
.topmusic-rest-testimonials-group {
    width: calc(var(--topmusic-scroller-element-width-with-margin) * 6 * 3);
    height: var(--topmusic-scroller-element-height);
    transform: translate3d(0, 0, 0);
    position: absolute;
    top:0;
    left:0;
}
.topmusic-rest-testimonials-group.animate-left {
    animation: topmusic-css-scroller-animation-left 120s ease-in-out infinite;
}
.topmusic-rest-testimonials-group.animate-right {
    left: calc(var(--topmusic-scroller-element-width-with-margin) * 6 * 2 * -1);
    animation: topmusic-css-scroller-animation-right 120s ease-in-out infinite;
}

.topmusic-rest-testimonials-group:hover,
.topmusic-rest-testimonials-group.animate-right:hover,
.topmusic-rest-testimonials-group.animate-left:hover {
    animation-play-state: paused;
}
.topmusic-rest-testimonial-avatar {
    height: 52px !important;
    width: 52px !important;
    border-radius: 100%;
    margin-right: 10px;
    object-fit: cover;
}
.topmusic-rest-testimonial {
    width:var(--topmusic-scroller-element-width);
    margin: 0 var(--topmusic-scroller-element-margin);
    display: inline-block;
    white-space: normal;
    overflow:hidden;
    border-radius: var(--border-radius-l);
    padding: 30px;
    background-color: white;
    height:95%;
    box-shadow: var(--box-shadow);
    position: relative;
}
.topmusic-rest-testimonial-text *, .topmusic-rest-testimonial-author {
    line-height: 110%!important;
    font-size:var(--font-xs)!important;
}
.topmusic-rest-testimonial-author {
    display: flex;
    align-items: center;
    vertical-align: middle;
    padding: 0 30px;
    left:0;
}
.topmusic-rest-testimonial h3 {
    position: absolute;
    bottom:5px;
}
.topmusic-rest-testimonial-text {
    max-height: 135px;
    overflow: hidden;
}
.dark .topmusic-rest-testimonial {
    background-color: var(--dark);
    border: 1px solid var(--cool-teal);
    box-shadow: var(--box-shadow-dark);
}
.dark .topmusic-rest-testimonial .topmusic-rest-testimonial-text p,.dark .topmusic-rest-testimonial .topmusic-rest-testimonial-text h4 {
    color: var(--almost-white) !important;
}