.ek-quotes-slider {
  --ekq-gap: 28px;
  --ekq-visible: 3;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 0 24px;
}

.ek-quotes-viewport {
  overflow: hidden;
  flex: 1 1 auto;
  width: 100%;
}

.ek-quotes-track {
  display: flex;
  gap: var(--ekq-gap);
  will-change: transform;
  transition: transform 0.45s ease;
}

.ek-quotes-card {
  box-sizing: border-box;
  flex: 0 0 calc((100% - (var(--ekq-gap) * (var(--ekq-visible) - 1))) / var(--ekq-visible));
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  padding: 32px 24px 28px;
  background: #f4efe6;
  color: #3f332c;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.ek-quotes-name {
  margin: 0 0 18px;
  font-family: Sanchez-Regular, Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: #3f332c;
}

.ek-quotes-text {
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  font-family: Sanchez-Regular, Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.55;
  color: #4a3d35;
}

.ek-quotes-more {
  appearance: none;
  margin: 14px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: Sanchez-Regular, Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1;
  color: #1a9263;
  text-decoration: underline;
  cursor: pointer;
}

.ek-quotes-more:hover,
.ek-quotes-more:focus {
  color: #3f332c;
  outline: none;
}

.ek-quotes-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ek-quotes-modal[hidden] {
  display: none;
}

.ek-quotes-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(63, 51, 44, 0.55);
}

.ek-quotes-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: min(80vh, 640px);
  overflow: auto;
  padding: 40px 36px 36px;
  background: #f4efe6;
  color: #3f332c;
  text-align: center;
  box-shadow: 0 16px 40px rgba(63, 51, 44, 0.25);
}

.ek-quotes-modal-name {
  margin: 0 0 18px;
  font-family: Sanchez-Regular, Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 400;
  color: #3f332c;
}

.ek-quotes-modal-text {
  margin: 0;
  font-family: Sanchez-Regular, Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.6;
  color: #4a3d35;
}

.ek-quotes-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #3f332c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.ek-quotes-modal-close:hover,
.ek-quotes-modal-close:focus {
  color: #1a9263;
  outline: none;
}

body.ek-quotes-modal-open {
  overflow: hidden;
}

.ek-quotes-nav {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #3f332c;
  color: #f4efe6;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
}

.ek-quotes-nav:hover,
.ek-quotes-nav:focus {
  background: #1a9263;
  outline: none;
}

.ek-quotes-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.Quotes_Box.ek-quotes-is-empty,
.wpb_row.Quotes_Box.ek-quotes-is-empty,
.vc_row.Quotes_Box.ek-quotes-is-empty {
  display: none !important;
}

@media (max-width: 991px) {
  .ek-quotes-slider {
    --ekq-visible: 2;
    --ekq-gap: 18px;
  }

  .ek-quotes-card {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    padding: 26px 18px 22px;
  }

  .ek-quotes-text {
    -webkit-line-clamp: 5;
    line-clamp: 5;
  }

  .ek-quotes-name {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .ek-quotes-slider {
    --ekq-visible: 1;
    --ekq-gap: 0px;
    gap: 8px;
  }

  .ek-quotes-card {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
    padding: 24px 20px 20px;
  }

  .ek-quotes-text {
    -webkit-line-clamp: 6;
    line-clamp: 6;
  }

  .ek-quotes-name {
    font-size: 22px;
    margin-bottom: 14px;
  }

  .ek-quotes-text {
    font-size: 15px;
  }
}
