:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) {
  max-width: var(--read-max);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: var(--text-read);
  line-height: var(--text-read-lh);
}

.wordfeed-article__content {
  padding-top: 24px;
}

.wordfeed-feed--standalone-article .wordfeed-article__content,
.wordfeed-modal .wordfeed-article__content {
  padding-top: var(--spacing-20);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) > * {
  margin-top: 0;
  margin-bottom: 1.2em;
}

.editor-styles-wrapper .is-root-container > .wp-block {
  margin-top: 0;
  margin-bottom: 1.2em;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) > :last-child {
  margin-bottom: 0;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(p, li) {
  color: inherit;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(ul, ol) {
  padding-left: 1.35em;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(li + li) {
  margin-top: 0.38em;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--font-serif);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
  line-height: 1.15;
}

.wordfeed-article__content :where(h1, h2, h3, h4, h5, h6):not(.has-text-color),
.editor-styles-wrapper .is-root-container :where(h1, h2, h3, h4, h5, h6):not(.has-text-color) {
  color: var(--text-primary);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(h2, h3, h4, h5, h6) {
  margin-top: 1.8em;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) h2 {
  font-size: 1.45em;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) h3 {
  font-size: 1.22em;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) h4 {
  font-size: 1.08em;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(figure, .wp-block-image, .wp-block-video, .wp-block-embed, .wp-block-jetpack-videopress) {
  margin-right: 0;
  margin-left: 0;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(img, video, iframe, embed, object) {
  max-width: 100%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(img, video, .wp-block-embed iframe, .wp-block-embed__wrapper iframe, .wp-block-jetpack-videopress iframe, .jetpack-videopress-player iframe) {
  border-radius: var(--radius-card);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-video video,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-embed iframe,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-embed__wrapper iframe,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-jetpack-videopress iframe,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .jetpack-videopress-player iframe {
  display: block;
  width: 100%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(.wp-block-jetpack-videopress, .jetpack-videopress-player, .videopress-player) {
  width: 100%;
  max-width: 100%;
  aspect-ratio: var(--wordfeed-media-aspect-ratio, 16 / 9);
  overflow: hidden;
  border-radius: var(--radius-card);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(.wp-block-jetpack-videopress iframe, .jetpack-videopress-player iframe, .videopress-player iframe, .wp-block-jetpack-videopress video, .jetpack-videopress-player video, .videopress-player video) {
  width: 100%;
  height: auto;
  aspect-ratio: var(--wordfeed-media-aspect-ratio, inherit);
  object-fit: contain;
  border-radius: inherit;
}

.wordfeed-modal .wordfeed-article__content :where(.wp-block-jetpack-videopress, .jetpack-videopress-player, .videopress-player) {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--wordfeed-media-aspect-ratio, 16 / 9) !important;
}

.wordfeed-modal .wordfeed-article__content :where(.wp-block-jetpack-videopress iframe, .jetpack-videopress-player iframe, .videopress-player iframe, .wp-block-jetpack-videopress video, .jetpack-videopress-player video, .videopress-player video) {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--wordfeed-media-aspect-ratio, inherit) !important;
  object-fit: contain !important;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-embed__wrapper {
  max-width: 100%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-has-aspect-ratio .wp-block-embed__wrapper {
  position: relative;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-has-aspect-ratio .wp-block-embed__wrapper::before {
  display: block;
  content: "";
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-has-aspect-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-embed-aspect-21-9 .wp-block-embed__wrapper::before {
  padding-top: 42.85%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-embed-aspect-18-9 .wp-block-embed__wrapper::before {
  padding-top: 50%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-embed-aspect-16-9 .wp-block-embed__wrapper::before {
  padding-top: 56.25%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-embed-aspect-4-3 .wp-block-embed__wrapper::before {
  padding-top: 75%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-embed-aspect-1-1 .wp-block-embed__wrapper::before {
  padding-top: 100%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-embed-aspect-9-16 .wp-block-embed__wrapper::before {
  padding-top: 177.77%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(.wp-block-jetpack-story, .wp-block-jetpack-slideshow, .wp-block-jetpack-tiled-gallery, [class*="wp-block-jetpack"][class*="story"], [class*="wp-block-jetpack"][class*="stories"], .wp-story, amp-story-player) {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(.wp-block-jetpack-story, [class*="wp-block-jetpack"][class*="story"], [class*="wp-block-jetpack"][class*="stories"], .wp-story, amp-story-player) :where(img, video, iframe, canvas) {
  max-width: 100%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(figcaption, .wp-element-caption) {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: var(--text-caption);
  line-height: var(--text-caption-lh);
  text-align: left;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery {
  box-sizing: border-box;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.has-nested-images,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery:not(.has-nested-images) {
  display: flex;
  flex-wrap: wrap;
  align-items: normal;
  gap: var(--wp--style--unstable-gallery-gap, 16px);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery:not(.has-nested-images) {
  padding-left: 0;
  list-style: none;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.has-nested-images figure.wp-block-image,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item {
  width: calc(50% - 8px);
  max-width: 100%;
  flex-grow: 1;
  margin: 0;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.columns-1 figure.wp-block-image,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.columns-1 .blocks-gallery-item {
  width: 100%;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.columns-2 figure.wp-block-image,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.columns-2 .blocks-gallery-item {
  width: calc(50% - 8px);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.columns-3 figure.wp-block-image,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.columns-3 .blocks-gallery-item {
  width: calc(33.333% - 11px);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.columns-4 figure.wp-block-image,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.columns-4 .blocks-gallery-item {
  width: calc(25% - 12px);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.has-nested-images figure.wp-block-image {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.has-nested-images figure.wp-block-image img,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.is-cropped figure.wp-block-image img,
:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-gallery.is-cropped .blocks-gallery-item img {
  height: 100%;
  flex: 1 0 0%;
  object-fit: cover;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: normal;
  box-sizing: border-box;
  gap: var(--wp--style--block-gap, 20px);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-columns.are-vertically-aligned-top {
  align-items: flex-start;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-columns.are-vertically-aligned-center {
  align-items: center;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-columns.are-vertically-aligned-bottom {
  align-items: flex-end;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-column {
  min-width: 0;
  flex-grow: 1;
  overflow-wrap: break-word;
  word-break: break-word;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column {
  flex-basis: 0;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-columns.is-not-stacked-on-mobile > .wp-block-column[style*="flex-basis"] {
  flex-grow: 0;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-column.is-vertically-aligned-top {
  align-self: flex-start;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-column.is-vertically-aligned-center {
  align-self: center;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-column.is-vertically-aligned-bottom {
  align-self: flex-end;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-column > :first-child {
  margin-top: 0;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-column > :last-child {
  margin-bottom: 0;
}

@media (max-width: 781px) {
  :where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
  }
}

@media (min-width: 782px) {
  :where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-columns {
    flex-wrap: nowrap;
  }

  :where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 0;
  }

  :where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis"] {
    flex-grow: 0;
  }
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(blockquote, .wp-block-quote) {
  margin-left: 0;
  padding-left: 16px;
  color: var(--text-secondary);
  border-left: 2px solid var(--border-divider);
  font-size: 0.94em;
  line-height: 1.55;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(blockquote, .wp-block-quote) p {
  margin-top: 0;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(blockquote, .wp-block-quote) cite {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: var(--text-caption);
  font-style: normal;
  line-height: var(--text-caption-lh);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-pullquote {
  padding: 20px 0;
  border-top: 1px solid var(--border-divider);
  border-bottom: 1px solid var(--border-divider);
  color: var(--text-secondary);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border-left: 0;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) .wp-block-pullquote p {
  font-size: 1.08em;
  line-height: 1.45;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(code, pre) {
  border-radius: var(--radius-small);
  background: var(--surface-inset);
  font-family: var(--font-mono);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) code {
  padding: 1px 4px;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) pre {
  overflow-x: auto;
  padding: 12px;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(.wp-block-separator, hr) {
  border: 0;
  border-top: 1px solid var(--border-divider);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(table, .wp-block-table table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94em;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(th, td) {
  padding: 8px 10px;
  border: 1px solid var(--border-divider);
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(.wp-block-button__link, .wp-element-button) {
  border-radius: var(--radius-pill);
  background: var(--btn-fill);
  color: var(--btn-text);
  font-size: var(--text-count);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  padding: 8px 14px;
}

:where(.wordfeed-article__content, .editor-styles-wrapper .is-root-container) :where(.wp-block-button__link, .wp-element-button):hover {
  background: var(--btn-fill-hover);
  color: var(--btn-text);
  text-decoration: none;
}

.wordfeed-article__content a[href]:not([href^="#"]):not(.wpcards-inline-reference):not([data-wordfeed-modal-link]):not(.wp-block-button__link)::after {
  display: inline-block;
  width: 0.82em;
  height: 0.82em;
  margin-left: 0.18em;
  background: currentColor;
  content: "";
  opacity: 0.72;
  transform: translateY(0.06em);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

@supports selector(a:has(img)) {
  .wordfeed-article__content a[href]:has(img)::after {
    content: none;
  }
}

.wordfeed-article__content .wpcards-card-times,
.wordfeed-article__content .wpcards-card-times__edited,
.wordfeed-article__content .wpcards-edited-time {
  display: none;
}

.wordfeed-article__content > :where(.alignwide, .alignfull),
.editor-styles-wrapper .is-root-container > .wp-block[data-align="wide"],
.editor-styles-wrapper .is-root-container > .wp-block[data-align="full"] {
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wordfeed-article__content > .alignwide,
.editor-styles-wrapper .is-root-container > .wp-block[data-align="wide"] {
  width: min(calc(100vw - 48px), var(--wp--style--global--wide-size, 1200px));
}

.wordfeed-article__content > .alignfull,
.editor-styles-wrapper .is-root-container > .wp-block[data-align="full"] {
  width: calc(100vw - 48px);
}

@media (max-width: 720px) {
  .wordfeed-feed--standalone-article .wordfeed-article__content,
  .wordfeed-modal .wordfeed-article__content {
    padding-top: 18px;
  }

  .wordfeed-article__content > .alignwide,
  .wordfeed-article__content > .alignfull,
  .editor-styles-wrapper .is-root-container > .wp-block[data-align="wide"],
  .editor-styles-wrapper .is-root-container > .wp-block[data-align="full"] {
    width: calc(100vw - 32px);
  }
}
