.testimonials {
  width: 100%;
  padding: 8rem 0;
  background-color: #f5f5f5;
  background-image: var(--testimonial-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.testimonials:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: rgba(61, 37, 25, 0.58);
}

.testimonials-title {
  text-align: center;
  z-index: 1;
  position: relative;
}

.testimonials-title p {
  color: var(--body-color);
}

.testimonials-title h2 {
  color: var(--body-color);
  font-size: 2.25em;
}


.testimonials-wrapper{
  margin:3rem 0;
  display: flex;
  gap: 30px;
  width: 100%;
 
}

.testimonials-wrapper .testimonial {
  width: calc(33.333% - 20px);
  max-width: 640px;
  min-width:320px;
  margin: 0;
  text-align: center;
  transition:opacity 0.3s;
  background: rgba(255, 255, 255, 0.85);
  z-index: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem 2rem;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonials-wrapper .testimonial.is-selected{
  opacity:1;
}

.testimonials-wrapper .testimonial .smaller {
  font-size: 0.875rem;
  color: var(--dark-brown-color);
  font-weight: 500;
  text-wrap: balance;
}

.read-more {
  font-family: var(--main-font);
  font-size: 0.875rem;
  font-weight: 500;
  display: block;
}

div.star-rating{
  display: flex;
  gap: .25rem;
  justify-content: center;
  color:rgb(195, 174, 120);
}

.testimonials-wrapper .testimonial p.bodytext {
  font-family: var(--script-font);
  font-size: 1.5rem;
  line-height: 1.75rem;
  text-wrap: balance;
  color: var(--dark-teal);
}

.testimonials-wrapper:after {
    content: '';
    display: none;
}



@media (max-width: 1149px) {
    .testimonials-wrapper:after {
        content: 'flickity';
        display: none;
    }
    .testimonials-wrapper .testimonial {
        width: 100%;
        margin: 0 1.5rem 0;
        max-width: 100%;
    }
    
    .testimonials-wrapper .flickity-viewport {
      overflow: hidden;
    }
    
    .testimonials-wrapper {
        display: block;
    }

}