/**
 * Block : Testimonial
 * =================================
 *
 *
 *
 */

.testimonial__items-item {
  height: 286px;
}

.testimonial__items-item-info {
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 24px;
}

.testimonial__items-item-rich-text {
  position: relative;
  font-family: "Comfortaa", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 35px;
}

.testimonial__items-item-info-item-name {
  position: relative;
  color: var(--wp--preset--color--secondary);
}

.testimonial__items-item-logo {
  top: 50%;
  aspect-ratio: 1/1;
  max-width: 172px;
  max-height: 172px;
  transform: translateY(-50%);
}

@media screen and (max-width: 1198px) {
  .testimonial__items-item-logo {
    transform: translateX(-50%);
    top: 20px;
    aspect-ratio: 4/3;
  }

  .testimonial__items-item-info {
    font-size: 0.875rem;
  }

  .testimonial__items-item-rich-text::before {
    top: -80px;
    left: -15px;
  }
}

@media screen and (min-width: 480px) {
  .testimonial__items-item-rich-text {
    line-height: 35px;
    font-size: 1.025rem;
  }
}

.testimonial__items-item-rich-text::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background-image: url("quote.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

@media screen and (min-width: 1199px) {
  .testimonial__items-item-rich-text::before {
    top: -80px;
    left: -80px;
  }
}

.testimonial__items-item-info-wrapper > div:not(:last-child)::after {
  content: "•";
  position: relative;
  margin: 0 6px;
  color: var(--wp--preset--color--tertiary);
}

.testimonial__body {
  position: relative;
}

.testimonial__body .tns-inner {
  padding: 0 100px;
}

@media screen and (max-width: 768px) {
  .testimonial__body .tns-inner {
    padding: 0 30px;
  }
}

.testimonial__body .controls {
  position: absolute;
  top: 50%;
  left: -7.5px;
  transform: translateY(-50%);
  width: calc(100% + 15px);
  z-index: 2;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial__body .controls > button {
  pointer-events: auto;
  width: 30px;
  height: 30px;
}

.testimonial__body .controls > button[disabled] {
  pointer-events: none;
  opacity: 0.3;
}

.testimonial__body .controls > button[disabled] svg path {
  fill: var(--wp--preset--color--tertiary);
}

.testimonial__body .controls > button svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.testimonial__body .controls > button svg path {
  fill: var(--wp--preset--color--secondary);
}
