.wp-block-quote {
  padding-left: var(--wp--preset--spacing--4-xl);
  position: relative;
}

.wp-block-quote::before {
  content: "";
  position: absolute;
  border-left: 4px solid var(--wp--custom--color--accent--orange);
  height: 100%;
  left: var(--wp--preset--spacing--xl);
}

.nc-wide-quote .wp-block-quote {
  padding-left: initial;
}

.nc-wide-quote .wp-block-quote::before {
  display: none;
}

.nc-wide-quote {
  container-type: inline-size;
}

.nc-wide-quote .nc-wide-quote-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "quote"
    "meta";
  column-gap: var(--wp--preset--spacing--xl);
  row-gap: var(--wp--preset--spacing--lg);
  align-items: start;
  position: relative;
  padding-top: var(--wp--preset--spacing--xl);
  padding-left: var(--wp--preset--spacing--4-xl);
}

.nc-wide-quote .nc-wide-quote-content:has(> figure.wp-block-image) {
  grid-template-columns: minmax(0, 1fr) minmax(6rem, 7.5rem);
  grid-template-areas:
    "quote quote"
    "meta image";
}

.nc-wide-quote-content figure.wp-block-image {
  grid-area: image;
  margin: 0;
  justify-self: end;
  align-self: start;
  width: clamp(6rem, 22vw, 7.5rem);
  aspect-ratio: 1;
  overflow: hidden;
}

.nc-wide-quote-content figure.wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nc-wide-quote .nc-wide-quote-content > p {
  grid-area: quote;
  margin-bottom: 0;
}

.nc-wide-quote .nc-wide-quote-content::before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  display: block;
  width: 3rem;
  height: 3rem;
  background-color: var(--wp--custom--color--brand--bright-blue);
  -webkit-mask-image: url(../icons/icon-quote.svg);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url(../icons/icon-quote.svg);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.nc-wide-quote .nc-wide-quote-meta {
  grid-area: meta;
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--base);
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  align-items: flex-end;
  text-align: right;
  margin: 0 !important;
}

.nc-wide-quote .nc-wide-quote-meta .wp-block-buttons {
  margin: 0 !important;
}

.nc-wide-quote .nc-wide-quote-attribution {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 0;
  font-size: var(--wp--preset--font-size--lg);
  font-weight: var(--wp--custom--font-weight--regular);
  font-family: var(--wp--preset--font-family--primary);
}

.nc-wide-quote .nc-wide-quote-attribution::before {
  content: "";
  flex: 1 1 auto;
  border-top: 2px solid var(--wp--custom--color--brand--superlight-blue-a);
  margin-right: var(--wp--preset--spacing--base);
}

.nc-wide-quote .nc-wide-quote-attribution strong {
  font-weight: var(--wp--custom--font-weight--semi-bold);
  margin-right: 0.25em;
}

@container (max-width: 599px) {

  .nc-wide-quote .nc-wide-quote-attribution {
    display: block;
    width: auto;
  }

  .nc-wide-quote .nc-wide-quote-attribution::before {
    content: none;
  }

  .nc-wide-quote .nc-wide-quote-attribution strong {
    margin-right: 0;
  }

  .nc-wide-quote .nc-wide-quote-content {
    text-indent: 3rem each-line;
    padding-top: initial;
    padding-left: initial;
  }
  .nc-wide-quote .nc-wide-quote-content::before {
    top: -1rem;
  }


  .nc-wide-quote .nc-wide-quote-content:has(> figure.wp-block-image) {
    grid-template-areas:
      "quote quote"
      "meta image"
      "buttons buttons";
  }

  .nc-wide-quote .nc-wide-quote-content:has(> figure.wp-block-image) .nc-wide-quote-meta {
    display: contents;
  }

  .nc-wide-quote .nc-wide-quote-content:has(> figure.wp-block-image) .nc-wide-quote-attribution {
    grid-area: meta;
  }

  .nc-wide-quote .nc-wide-quote-content:has(> figure.wp-block-image) .nc-wide-quote-meta > .wp-block-buttons {
    grid-area: buttons;
    width: 100%;
    justify-content: flex-end;
    margin-top: var(--wp--preset--spacing--none) !important;
  }
}


@container (min-width: 760px) {

  .nc-wide-quote .nc-wide-quote-content:has(> figure.wp-block-image) {
    grid-template-columns: minmax(0, 1fr) clamp(17rem, 30vw, 24rem);
    grid-template-areas:
      "quote image"
      "meta image";
    column-gap: var(--wp--preset--spacing--xl);
    row-gap: var(--wp--preset--spacing--xl);
  }

  .nc-wide-quote-content figure.wp-block-image {
    width: 100%;
    max-width: none;
  }
}



.is-style-gray-200 .nc-wide-quote .nc-wide-quote-attribution::before,
.is-style-gray-200 .nc-wide-quote .nc-wide-quote-content::before {
  background-color: var(--wp--custom--color--accent--gold);
  border-color: var(--wp--custom--color--accent--gold);
}

.is-style-gray-400 .nc-wide-quote .nc-wide-quote-attribution::before,
.is-style-gray-400 .nc-wide-quote .nc-wide-quote-content::before {
  border-color: var(--wp--custom--color--neutral--500);
}

.is-style-light-blue-pattern .nc-wide-quote .nc-wide-quote-attribution::before,
.is-style-light-blue-pattern .nc-wide-quote .nc-wide-quote-content::before,
.is-style-light-blue .nc-wide-quote .nc-wide-quote-attribution::before,
.is-style-light-blue .nc-wide-quote .nc-wide-quote-content::before {
  border-color: var(--wp--custom--color--brand--superlight-blue-a);
}

.is-style-powder-blue-pattern .nc-wide-quote .nc-wide-quote-attribution::before,
.is-style-powder-blue-pattern .nc-wide-quote .nc-wide-quote-content::before,
.is-style-powder-blue .nc-wide-quote .nc-wide-quote-attribution::before,
.is-style-powder-blue .nc-wide-quote .nc-wide-quote-content::before {
  border-color: var(--wp--preset--color--base);
}

.is-style-jwu-blue-pattern .nc-wide-quote .nc-wide-quote-attribution::before,
.is-style-jwu-blue-pattern .nc-wide-quote .nc-wide-quote-content::before,
.is-style-jwu-blue .nc-wide-quote .nc-wide-quote-attribution::before,
.is-style-jwu-blue .nc-wide-quote .nc-wide-quote-content::before {
  background-color: var(--wp--custom--color--brand--superlight-blue-a);
  border-color: var(--wp--custom--color--brand--bright-blue-aa);
}

.is-style-bright-blue-pattern .nc-wide-quote .nc-wide-quote-attribution::before,
.is-style-bright-blue-pattern .nc-wide-quote .nc-wide-quote-content::before,
.is-style-bright-blue .nc-wide-quote .nc-wide-quote-attribution::before,
.is-style-bright-blue .nc-wide-quote .nc-wide-quote-content::before {
  background-color: var(--wp--custom--color--brand--superlight-blue-a);
  border-color: var(--wp--custom--color--brand--superlight-blue-a);
}