/* Shared article/page block rules, loaded on the site and in the editor.
 * Inline Gutenberg dimensions and spacing remain editable and take precedence.
 * Media & Text deliberately keeps its native two-column behaviour.
 */
:is(.pv-entry, .pv-free-page, .editor-styles-wrapper) {
  display: flow-root;
}
:is(.pv-entry, .pv-free-page, .editor-styles-wrapper) :is(figure.wp-block-image, .wp-block-image > figure).alignleft {
  float: left;
  max-width: 45%;
  margin: 0 1.5rem 1rem 0;
}
:is(.pv-entry, .pv-free-page, .editor-styles-wrapper) :is(figure.wp-block-image, .wp-block-image > figure).alignright {
  float: right;
  max-width: 45%;
  margin: 0 0 1rem 1.5rem;
}
:is(.pv-entry, .pv-free-page, .editor-styles-wrapper) figure.wp-block-image:is(.alignleft, .alignright) img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* A new section must start below the preceding section's illustration. */
:is(.pv-entry, .pv-free-page) > :is(h2, h3) {
  clear: both;
}
/* Pullquote adds its own padding around a blockquote. Avoid double spacing. */
:is(.pv-entry, .pv-free-page, .editor-styles-wrapper) .wp-block-pullquote {
  margin-block: 1.25rem;
  padding-block: 0;
  border-block: 0;
}
:is(.pv-entry, .pv-free-page, .editor-styles-wrapper) .wp-block-pullquote > blockquote {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid #B08A46;
  border-radius: 0 8px 8px 0;
  background: #FAF8F3;
  font-size: inherit;
  line-height: 1.65;
}
:is(.pv-entry, .pv-free-page, .editor-styles-wrapper) .wp-block-pullquote blockquote > p {
  font-size: inherit;
  line-height: inherit;
}
:is(.pv-entry, .pv-free-page, .editor-styles-wrapper) .wp-block-pullquote blockquote > :last-child {
  margin-bottom: 0;
}
@media (max-width: 600px) {
  :is(.pv-entry, .pv-free-page, .editor-styles-wrapper) :is(figure.wp-block-image, .wp-block-image > figure):is(.alignleft, .alignright) {
    float: none;
    max-width: 100%;
    margin: 0 auto 1.25rem;
  }
}

/* Keep the whole quote box (including its background) outside nearby floats.
 * A normal paragraph may wrap line by line; a quote needs one rectangular box.
 * flow-root establishes that box without clipping shadows or setting a width.
 */
:is(.pv-entry, .pv-free-page, .editor-styles-wrapper) :is(.wp-block-pullquote, .wp-block-quote) {
  display: flow-root;
}
