.section-reviews {
  margin: 5rem 0;
}
.section-reviews .container {
  position: relative;
}
.section-reviews .container :is(h1, h2) {
  margin: 20px auto;
  position: relative;
  max-width: 600px;
  text-align: center;
}
.section-reviews .reviews-outer {
  padding: 40px 20px;
  overflow: hidden;
}
.section-reviews .reviews-outer .reviews {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  grid-gap: 20px;
  transition: all 0.5s;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

/*

Review

*/
.section-reviews .review {
  background-image: var(--background-gradient-primary);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
  padding: 50px 40px;
  width: calc(33% - 14px);
  display: flex;
  flex-wrap: wrap;
  border-radius: 14px;
}
.section-reviews .review img.logo {
  height: 35px;
  max-width: 100%;
  margin: 0 auto 30px;
}
.section-reviews .review .read-more-text {
  margin-bottom: 40px;
}
.section-reviews .review .read-more-text .text {
  width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 4;
}
.section-reviews .review .read-more-text p.read-more {
  cursor: pointer;
  font-size: 0.9em;
  color: rgba(0, 0, 0, 0.5);
  width: -moz-max-content;
  width: max-content;
  margin: 10px 0 0;
}
.section-reviews .review .read-more-text p.read-more:hover {
  color: var(--black);
}
.section-reviews .review .read-more-text.expanded .text {
  -webkit-line-clamp: unset;
}
.section-reviews .review .read-more-text.expanded .read-more {
  display: none;
}
.section-reviews .review .person {
  width: 100%;
  align-self: flex-end;
  text-align: center;
}
.section-reviews .review .person p {
  margin: 0;
}
.section-reviews .review .person p:first-child {
  font-size: 1.1em;
  font-weight: 500;
  margin-bottom: 5px;
}
.section-reviews .review .person p:last-child {
  margin-bottom: 0;
}
.section-reviews .review .person p:nth-child(2) {
  font-size: 0.7em;
  opacity: 0.75;
}

@media (max-width: 1100px) {
  .section-reviews .review {
    width: calc(50% - 10px);
  }
}
@media (max-width: 820px) {
  .section-reviews .review {
    width: 100%;
    max-width: 400px;
  }
}
/*

Dots

*/
.section-reviews .dots {
  display: flex;
  justify-content: center;
  grid-gap: 5px;
  align-items: center;
  display: none;
}
.section-reviews .dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 100%;
  cursor: pointer;
  background-color: var(--black);
}

.section-reviews .dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 100%;
  cursor: pointer;
  background-color: var(--black);
}
.section-reviews .dots .dot.active {
  background-color: var(--primary);
  width: 21px;
  border-radius: 5px;
  transition: all 0.2s;
}

/*

Options - Review Background Gradient Secondary

*/
.section-reviews[options~=review-background-gradient-secondary] .subheading {
  background-color: rgba(var(--secondary-rgb), 0.2);
  color: var(--secondary);
}
.section-reviews[options~=review-background-gradient-secondary] .review {
  background-image: var(--background-gradient-secondary);
}

/*

Options - Background Gradient

*/
.section-reviews[options~=background-gradient] {
  background-image: var(--background-gradient-primary);
  margin: 0;
  padding: 7rem 0;
}
.section-reviews[options~=background-gradient] .subheading {
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.2);
}
.section-reviews[options~=background-gradient] .review {
  background-image: unset;
  background-color: var(--white);
}

/*

Scroll Animations

*/
.section-reviews {
  opacity: 0;
  transition: all 1s;
}
.section-reviews .reviews .review {
  margin: 0 50px 0 -50px;
  opacity: 0;
}
.section-reviews.scrolled-to {
  opacity: 1;
}
.section-reviews.scrolled-to .reviews .review {
  animation: reviewsAppear 1s ease-out forwards;
}
.section-reviews.scrolled-to .reviews .review:nth-child(1) {
  animation-delay: 0s;
}
.section-reviews.scrolled-to .reviews .review:nth-child(2) {
  animation-delay: 0.2s;
}
.section-reviews.scrolled-to .reviews .review:nth-child(3) {
  animation-delay: 0.4s;
}
.section-reviews.scrolled-to .reviews .review:nth-child(4) {
  animation-delay: 0.6s;
}
.section-reviews.scrolled-to .reviews .review:nth-child(5) {
  animation-delay: 0.8s;
}
.section-reviews.scrolled-to .reviews .review:nth-child(6) {
  animation-delay: 1s;
}
.section-reviews.scrolled-to .reviews .review:nth-child(7) {
  animation-delay: 1.2s;
}
.section-reviews.scrolled-to .reviews .review:nth-child(8) {
  animation-delay: 1.4s;
}
.section-reviews.scrolled-to .reviews .review:nth-child(9) {
  animation-delay: 1.6s;
}
.section-reviews.scrolled-to .reviews .review:nth-child(10) {
  animation-delay: 1.8s;
}
.section-reviews.scrolled-to .reviews .review:nth-child(11) {
  animation-delay: 2s;
}
.section-reviews.scrolled-to .reviews .review:nth-child(12) {
  animation-delay: 2.2s;
}

@keyframes reviewsAppear {
  to {
    margin: 0;
    opacity: 1;
  }
}