.ufm-quote-banner {
  position: relative;
  height: 250px;
  background: #000;
  color: #fff;
  overflow: hidden;
  --ufm-quote-ms: 8000ms;
}

.ufm-quote-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms ease;
}

.ufm-quote-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.ufm-quote-portrait {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 42%;
  max-width: 620px;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(1) contrast(1.2) brightness(1.35);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 100%);
  pointer-events: none;
  user-select: none;
}

.ufm-quote-slide.is-banner .ufm-quote-portrait {
  left: 0;
  width: 100%;
  max-width: none;
  object-position: center center;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.ufm-quote-slide.is-banner .ufm-quote-copy {
  align-items: flex-start;
  padding-right: 42%;
  padding-left: 8%;
}

.ufm-quote-slide.is-banner .ufm-quote-text,
.ufm-quote-slide.is-banner .ufm-quote-attr {
  text-align: left;
  max-width: 460px;
}

.ufm-quote-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 34% 36px 72px;
}

.ufm-quote-portrait[data-focus="top"] {
  object-position: center 6%;
}

.ufm-quote-text {
  max-width: 520px;
  margin: 0;
  color: #fff;
  line-height: 1.65;
  text-align: center;
}

.ufm-quote-attr {
  max-width: 520px;
  margin: 16px 0 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.ufm-quote-attr a {
  color: inherit;
  text-decoration: none;
}

.ufm-quote-attr a:hover,
.ufm-quote-attr a:focus {
  color: #fff;
}

.ufm-quote-controls {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 2;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}

.ufm-quote-controls button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.ufm-quote-controls button:hover,
.ufm-quote-controls button:focus {
  color: #fff;
  outline: none;
}

.ufm-quote-controls button:focus-visible {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.ufm-quote-prev::before,
.ufm-quote-next::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.ufm-quote-prev::before {
  transform: rotate(-135deg);
  margin-left: 12px;
}

.ufm-quote-next::before {
  transform: rotate(45deg);
  margin-right: 12px;
}

.ufm-quote-pause::before,
.ufm-quote-pause::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 10px;
  margin: 0 1px;
  background: currentColor;
  vertical-align: middle;
}

.ufm-quote-banner.is-paused .ufm-quote-pause::before {
  width: 0;
  height: 0;
  margin: 0 0 0 2px;
  background: transparent;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}

.ufm-quote-banner.is-paused .ufm-quote-pause::after {
  display: none;
}

.ufm-quote-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  width: 0;
  background: rgba(255, 255, 255, 0.55);
}

.ufm-quote-banner.is-playing .ufm-quote-progress {
  animation: ufmQuoteProgress var(--ufm-quote-ms) linear;
}

@keyframes ufmQuoteProgress {
  from { width: 0; }
  to { width: 100%; }
}

@media (max-width: 991px) {
  .ufm-quote-copy {
    padding-right: 28%;
    padding-left: 56px;
  }
}

@media (max-width: 767px) {
  .ufm-quote-banner {
    height: 280px;
  }

  .ufm-quote-portrait {
    width: 68%;
    max-width: none;
    opacity: 0.72;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 48%, #000 100%);
  }

  .ufm-quote-copy {
    padding: 28px 22px 48px;
    align-items: flex-start;
    text-align: left;
  }

  .ufm-quote-text,
  .ufm-quote-attr {
    max-width: 78%;
  }

  .ufm-quote-slide.is-banner .ufm-quote-portrait {
    width: 100%;
    opacity: 1;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ufm-quote-slide.is-banner .ufm-quote-copy {
    align-items: flex-start;
    padding: 28px 28% 48px 22px;
  }

  .ufm-quote-slide.is-banner .ufm-quote-text,
  .ufm-quote-slide.is-banner .ufm-quote-attr {
    max-width: 100%;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ufm-quote-slide,
  .ufm-quote-banner.is-playing .ufm-quote-progress {
    transition: none;
    animation: none;
  }
}
