.ypl-testimonials {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background: #000;
}

.ypl-testimonials__viewport {
  display: flex;
  box-sizing: border-box;
  justify-content: center;
  gap: 36px;
  max-width: 1800px;
  height: 800px;
  margin: 0 auto;
  padding: 0 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}

.ypl-testimonials__col {
  flex: 1 1 0;
  min-width: 0;
  max-width: 640px;
}

.ypl-testimonials__col--tablet {
  display: none;
}

.ypl-testimonials__col--desktop {
  display: none;
}

.ypl-testimonials__track {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: ypl-testimonials-scroll var(--ypl-marquee-duration, 32s) linear infinite;
}

.ypl-testimonials__track,
.ypl-testimonials__card {
  list-style: none !important;
}

.ypl-testimonials__card::marker {
  content: none;
}

@keyframes ypl-testimonials-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.ypl-testimonials__card {
  box-sizing: border-box;
  width: 100%;
  padding: 32px;
  border: 1px solid #262626;
  border-radius: 20px;
  background: #171717;
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
  .ypl-testimonials__card:hover,
  .ypl-testimonials__card:focus-within {
    border-color: #404040;
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55), 0 10px 10px -5px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

.ypl-testimonials__quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.ypl-testimonials__quote::before,
.ypl-testimonials__quote::after {
  content: none;
  border: 0;
}

.ypl-testimonials__quote p {
  margin: 0;
  color: #a3a3a3;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.ypl-testimonials__person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.ypl-testimonials__avatar {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #262626;
  object-fit: cover;
}

.ypl-testimonials__name {
  display: block;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.ypl-testimonials__role {
  display: block;
  margin-top: 2px;
  color: #737373;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
}

@media (min-width: 768px) {
  .ypl-testimonials__col--tablet {
    display: block;
  }
}

@media (min-width: 1024px) {
  .ypl-testimonials__col--desktop {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ypl-testimonials__track {
    animation: none;
    transform: none;
  }

  .ypl-testimonials__card {
    transition: none;
  }

  .ypl-testimonials__card:hover,
  .ypl-testimonials__card:focus-within {
    transform: none;
  }

  .ypl-testimonials__track[data-cloned="true"] > .ypl-testimonials__card:nth-child(n + 4) {
    display: none;
  }
}
