.quotie {
  max-width: 1440px;
  overflow: hidden;
  margin: var(--gutter) auto;
}

.quotie__track {
  display: flex;
  gap: 40px;
  align-items: end;
  transition: transform .8s ease-in-out;
}

.quotie__slide {
  flex: 0 0 calc(100% - 40px);
  box-sizing: border-box;
  transition: flex-basis .5s ease-in-out, background-color .3s ease-in-out;
  padding: 40px;
  text-align: center;
  border-radius: 20px;
  background: rgba(0, 133, 255, .5);
  overflow: hidden;
  @media (min-width: 1200px) {
    flex: 0 0 calc(27.25% - 50px);
  }
}

.quotie__slide.active {
  background-color: var(--bg); 
  overflow: visible;
  color: #112439;
  @media (min-width: 1200px) {
    flex: 0 0 calc(45.5% - 50px);
  }
}

.quotie__content {
  @media (max-width: 1439px) {
    font: var(--demi);
    font-weight: 400;
    line-height: 1.55;
  }
}

.quotie__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 5.5em;
  transition: height 0.3s ease;
}

.quotie__slide:not(.active) .quotie__text {
  -webkit-line-clamp: 3; 
}

.quotie__slide.active.expanded .quotie__text {
  height: var(--text-height);
}

.quotie__slide.active .quotie__toggle {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.quotie__image img {
  border-radius: 100%;
  aspect-ratio: 1/1;
  max-width: 130px;
  @media (min-width: 1440px) {
    max-width: 205px;
  }
}

.quotie__title {
  font: var(--demi);
  font-weight: 400;
  margin: 15px 0 0 0;
}

.quotie__title strong {
  font-weight: 600;
}

.quotie__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 40px 0 0 0;
}

.quotie__arrow {
  font: var(--big);
  padding: 10px 0;
  background-color: transparent;
  border: none;
  cursor: pointer;
  color: var(--pen);
}

.quotie__arrow[disabled] {
  opacity: .3;
}

.quotie__toggle {
  background: none;
  border: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 10px 0 0 0;
  transition: .3s ease-in-out;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 5px;
}

