.realtime-hit-feed__card--quote {
  min-height: 216px;
  width: 100%;
  height: 100%;
  padding: 0;
  background: var(--ks-home-quote-card-surface, var(--ks-home-card-surface, var(--ks-theme-surface-raised)));
  color: var(--ks-home-quote-body-color);
  border-radius: inherit;
  border: 0;
  box-shadow: none;
}

.realtime-hit-feed__quote-card {
  position: relative;
  display: grid;
  min-height: 100%;
  height: 100%;
  align-items: stretch;
  justify-items: center;
  padding:
    var(--ks-home-quote-card-padding-block)
    var(--ks-home-quote-card-padding-inline)
    var(--ks-home-quote-card-padding-bottom);
  box-sizing: border-box;
  overflow: hidden;
  transition: var(--ks-home-quote-card-transition);
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: auto;
}

.realtime-hit-feed__quote-content {
  display: grid;
  gap: var(--ks-home-quote-author-gap);
  align-content: center;
  justify-items: center;
  max-width: min(100%, var(--ks-home-quote-body-max-width));
  margin: auto;
  padding-inline: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.realtime-hit-feed__quote-text {
  margin: 0;
  color: var(--ks-home-quote-body-color);
  font-size: var(--ks-home-quote-body-size);
  line-height: var(--ks-home-quote-body-line-height);
  font-weight: var(--ks-home-quote-body-weight);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.realtime-hit-feed__quote-card--dense .realtime-hit-feed__quote-text {
  font-size: var(--ks-home-quote-body-size-dense);
}

.realtime-hit-feed__quote-card--tight .realtime-hit-feed__quote-text {
  font-size: var(--ks-home-quote-body-size-tight);
}

.realtime-hit-feed__quote-author {
  margin: 0;
  color: var(--ks-home-quote-author-color);
  font-size: var(--ks-home-quote-author-size);
  line-height: var(--ks-home-quote-author-line-height);
  font-style: italic;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.realtime-hit-feed__quote-author-dash {
  font-style: normal;
  font-weight: 500;
}

.realtime-hit-feed__quote-author cite {
  font-style: italic;
}

.realtime-hit-feed__quote-mark {
  position: absolute;
  display: block;
  width: var(--ks-home-quote-mark-size) !important;
  min-width: var(--ks-home-quote-mark-size);
  max-width: var(--ks-home-quote-mark-size) !important;
  height: var(--ks-home-quote-mark-size) !important;
  min-height: var(--ks-home-quote-mark-size);
  max-height: var(--ks-home-quote-mark-size) !important;
  background-color: var(--ks-home-quote-mark-color);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 1;
  flex: 0 0 auto;
}

.realtime-hit-feed__quote-mark--open {
  top: var(--ks-home-quote-mark-top);
  left: var(--ks-home-quote-mark-left);
  -webkit-mask-image: url('/images/story-actions/left_quotes.svg');
  mask-image: url('/images/story-actions/left_quotes.svg');
}

.realtime-hit-feed__quote-mark--close {
  right: var(--ks-home-quote-mark-right);
  bottom: var(--ks-home-quote-mark-close-bottom);
  -webkit-mask-image: url('/images/story-actions/right_quotes.svg');
  mask-image: url('/images/story-actions/right_quotes.svg');
}

.realtime-hit-feed__quote-browse {
  position: absolute;
  left: 50%;
  width: var(--ks-home-quote-browse-hit-size);
  height: var(--ks-home-quote-browse-hit-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.realtime-hit-feed__quote-browse[hidden] {
  display: none;
}

.realtime-hit-feed__quote-browse-shape {
  width: 0;
  height: 0;
  border-left: calc(var(--ks-home-quote-browse-size) / 2) solid transparent;
  border-right: calc(var(--ks-home-quote-browse-size) / 2) solid transparent;
}

.realtime-hit-feed__quote-browse--newer {
  top: var(--ks-home-quote-browse-top);
}

.realtime-hit-feed__quote-browse--newer .realtime-hit-feed__quote-browse-shape {
  border-bottom: var(--ks-home-quote-browse-size) solid var(--ks-home-quote-browse-color);
}

.realtime-hit-feed__quote-browse--older {
  bottom: var(--ks-home-quote-browse-bottom);
}

.realtime-hit-feed__quote-browse--older .realtime-hit-feed__quote-browse-shape {
  border-top: var(--ks-home-quote-browse-size) solid var(--ks-home-quote-browse-color);
}

.realtime-hit-feed__card.is-active .realtime-hit-feed__quote-browse:not([hidden]) {
  opacity: 0.78;
  pointer-events: auto;
  animation: ks-home-quote-browse-pulse var(--ks-home-quote-browse-blink-duration) ease-in-out infinite;
}

.realtime-hit-feed__quote-date {
  position: absolute;
  right: var(--ks-home-quote-date-right);
  bottom: var(--ks-home-quote-date-bottom);
  color: var(--ks-home-quote-date-color);
  font-size: var(--ks-home-quote-date-size);
  line-height: var(--ks-home-quote-date-line-height);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: right;
  z-index: 1;
}

@keyframes ks-home-quote-browse-pulse {
  0%,
  100% {
    opacity: 0.25;
  }

  50% {
    opacity: 0.72;
  }
}
