.slider {
  display: grid;
  grid-template-columns: clamp(180px, 22vw, 300px) 1fr;
  gap: 16px;
  align-items: start;
  width: 100%;
}

.current-slide-num {
  font-size: calc(var(--h1-font-size) * 3.16);
  font-weight: 400;
  line-height: 1;
  opacity: 0.4;
  font-variant-numeric: tabular-nums;
  padding: 0 0 0 24px;
}

.slider-wrapper {
  width: 100%;
}

.slider-container {
  display: grid;
  grid-template-columns: 100%;
  width: 100%;
}

.slide {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  pointer-events: none;
}

.slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.slide-testimonial-rating {
  display: flex;
  margin-bottom: 28px;
}

.slide-testimonial-content {
  margin-bottom: 24px;
}

.slide-divider {
  width: 80px;
  height: 1px;
  background-color: #fff;
  margin-bottom: 24px;
}

.slide-testimonial-author {
  text-transform: uppercase;
  margin-bottom: 8px;
}

.slide-testimonial-info {
  color: var(--inverted-light-text-color);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 32px;
  margin-top: 24px;
}

.slider-btn {
  color: var(--container-bg-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.slider-btn:hover {
  opacity: 0.7;
}

.slider-btn.is-disabled {
  color: color-mix(in srgb, #ffffff 80%, var(--button-bg-color)) !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

@media only screen and (max-width: 767px) {
  .slider {
    grid-template-columns: 1fr;
  }

  .current-slide-num {
    padding: 0;
  }

  .slide-testimonial-rating img {
    width: 24px;
    height: 24px;
  }
}

@media only screen and (max-width: 479px) {
  .slide-divider {
    width: 40px;
  }
  
  .slide-testimonial-rating img {
    width: 20px;
    height: 20px;
  }
  
  .current-slide-num {
    font-size: calc(var(--h1-font-size) * 2.6);
  }
}
