.quote {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr auto;
}

.quote__content {
  grid-column: 1/-1;
  grid-row: 1 / 2;

  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  align-items: center;
  gap: var(--spacing);

  color: var(--zevi-quote-content-text);
  z-index: 5;
  padding: var(--spacing-xxxxxlarge) var(--spacing);
  width: 100%;
}

@media screen and (min-width: 48em) {
  .quote__content {
    padding: calc(var(--spacing-xxxxxlarge) * 2) var(--spacing);
  }
}

/* If no background, text color should fallback to default. */
.quote--no-background .quote__content {
  color: var(--zevi-default-body-foreground);
}

.quote__quote {
  font-family: var(--font-family-secondary);
  display: grid;
  grid-template-columns: calc(var(--zevi-quote-quote-icon-width) / 2) auto;
  font-size: var(--font-size-responsive-x-large);
  max-width: var(--width-large);
  font-weight: var(--font-weight-light);
  line-height: 1.125;
  gap: var(--spacing-xlarge);
  margin-bottom: var(--spacing-xxxxlarge);
}

@media screen and (min-width: 48em) {
  .quote__quote {
    font-size: var(--font-size-responsive-xxxx-large);
    grid-template-columns: var(--zevi-quote-quote-icon-width) auto;
  }
}

.quote__quote strong {
  font-weight: var(--font-weight-black);
}

.quote__quote .slimline-icon svg {
  width: 100%;
  height: auto;
  fill: var(--zevi-quote--quote-icon-color);
}

.quote__background {
  grid-column: 1/-1;
  grid-row: 1/3;
  z-index: 1;
  position: relative;
  align-self: normal;
}

.quote__background:after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background: var(--zevi-quote-overlay);
  backdrop-filter: blur(var(--zevi-blur-1));
}

.quote__background img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  position: absolute;
}

.quote__cta a {
  text-decoration: underline;
  text-underline-offset: var(--underline-offset);
  color: var(--zevi-quote-content-text);

  &:hover {
    text-decoration: none;
  }
}

.quote--no-background .quote__cta a {
  color: var(--zevi-default-body-foreground);
}

/* Last quote on the page have no padding bottom. */

.node__content .layout:last-child .block-quote:last-child {
  padding-bottom: 0;
}
