/**
 * Shared by the editor and the live page so they match.
 */
html body .arvaix-blocks,
.editor-styles-wrapper .is-root-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: min-content;
  align-content: start;
  align-items: start;
  justify-items: stretch;
  gap: 1.5rem;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin-inline: 0;
  display: block !important;
  box-sizing: border-box;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #e7e4dc;
}

.editor-styles-wrapper .is-root-container {
  width: min(100%, var(--wide, 1200px));
  max-width: 1200px !important;
  margin-inline: auto;
}

html body .arvaix-blocks > *,
html body .arvaix-blocks .wp-block,
.editor-styles-wrapper .is-root-container > .wp-block {
  margin: 0 !important;
  border: 0 !important;
  outline: none;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  background: transparent;
}

html body .arvaix-blocks h1,
html body .arvaix-blocks h2,
html body .arvaix-blocks h3,
html body .arvaix-blocks h4,
.editor-styles-wrapper .is-root-container h1,
.editor-styles-wrapper .is-root-container h2,
.editor-styles-wrapper .is-root-container h3,
.editor-styles-wrapper .is-root-container h4 {
  font-family: Syne, sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  color: #e7e4dc;
}

html body .arvaix-blocks h1,
.editor-styles-wrapper .is-root-container h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
html body .arvaix-blocks h2,
.editor-styles-wrapper .is-root-container h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
html body .arvaix-blocks h3,
.editor-styles-wrapper .is-root-container h3 { font-size: 1.25rem; }

html body .arvaix-blocks p,
html body .arvaix-blocks li,
.editor-styles-wrapper .is-root-container p,
.editor-styles-wrapper .is-root-container li {
  color: #e7e4dc;
  margin: 0;
}

html body .arvaix-blocks a,
.editor-styles-wrapper .is-root-container a { color: #8fbfb5; }

html body .arvaix-blocks > ul,
html body .arvaix-blocks > ol,
.editor-styles-wrapper .is-root-container > ul,
.editor-styles-wrapper .is-root-container > ol {
  padding-inline-start: 1.25rem;
}

html body .arvaix-blocks .wp-block-image img,
html body .arvaix-blocks .wp-block-gallery img,
.editor-styles-wrapper .wp-block-image img,
.editor-styles-wrapper .wp-block-gallery img {
  max-width: 100% !important;
  height: auto !important;
}

html body .arvaix-blocks figure,
html body .arvaix-blocks .wp-block-image,
html body .arvaix-gallery,
html body .arvaix-gallery figure,
html body .arvaix-gallery__open,
html body .arvaix-record__figure,
.editor-styles-wrapper .wp-block-image,
.editor-styles-wrapper figure.wp-block-image {
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

html body .arvaix-app,
html body .arvaix-page,
html body .arvaix-record,
html body .arvaix-app > .arvaix-app__body,
html body .arvaix-gallery,
html body .arvaix-carousel .arvaix-gallery {
  align-content: start !important;
  min-height: 0 !important;
  height: auto;
}

html body .arvaix-blocks .wp-block-image,
html body .arvaix-gallery figure,
html body .arvaix-gallery__open,
.editor-styles-wrapper .wp-block-image {
  max-width: 100% !important;
  height: auto !important;
}

html body .arvaix-blocks .wp-block-video,
html body .arvaix-blocks .wp-block-embed,
.editor-styles-wrapper .wp-block-video,
.editor-styles-wrapper .wp-block-embed {
  width: 100%;
  max-width: 100%;
}

html body .arvaix-blocks .wp-block-video video,
.editor-styles-wrapper .wp-block-video video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

html body .arvaix-blocks .wp-block-embed:not([class*="wp-embed-aspect"]) .wp-block-embed__wrapper,
.editor-styles-wrapper .wp-block-embed:not([class*="wp-embed-aspect"]) .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

html body .arvaix-blocks .wp-block-embed:not([class*="wp-embed-aspect"]) iframe,
.editor-styles-wrapper .wp-block-embed:not([class*="wp-embed-aspect"]) iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

html body .arvaix-blocks .wp-block-spacer,
.editor-styles-wrapper .wp-block-spacer {
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.editor-styles-wrapper .wp-block.is-selected,
.editor-styles-wrapper .wp-block.is-highlighted {
  outline: 1px solid #8fbfb5;
  outline-offset: 4px;
}

/* Live and editor use the same page width and the same gap. No stretched rows. */
html body .arvaix-app,
html body .arvaix-page,
html body .arvaix-record {
  width: min(100% - (2 * var(--gutter)), var(--wide)) !important;
  max-width: var(--wide) !important;
  height: auto !important;
  min-height: 0 !important;
}

html body .arvaix-prose,
html body .arvaix-record__body,
html body .arvaix-record__title,
html body .arvaix-app .arvaix-hero--app .arvaix-hero__copy,
html body .arvaix-app > .arvaix-app__body,
html body .arvaix-app > .arvaix-app__body > .arvaix-section {
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
}

html body .arvaix-app > .arvaix-app__body,
html body .arvaix-blocks,
html body .arvaix-app .arvaix-section,
.editor-styles-wrapper .is-root-container {
  display: block !important;
  align-content: normal;
}

html body .arvaix-blocks > *:not(.wp-block-image):not(.wp-block-gallery),
html body .arvaix-blocks > .wp-block:not(.wp-block-image):not(.wp-block-gallery),
.editor-styles-wrapper .is-root-container > .wp-block:not(.wp-block-image):not(.wp-block-gallery) {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 1.5rem 0 !important;
}

html body .arvaix-blocks > .wp-block-image:not([style*="width"]),
html body .arvaix-blocks > .wp-block-gallery:not([style*="width"]),
.editor-styles-wrapper .wp-block-image:not([style*="width"]),
.editor-styles-wrapper .wp-block-gallery:not([style*="width"]) {
  display: block;
  width: fit-content !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 1.5rem 0 !important;
}

html body .arvaix-blocks > .wp-block-image[style*="width"],
.editor-styles-wrapper .wp-block-image[style*="width"] {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 0 1.5rem 0 !important;
}

html body .arvaix-blocks > :last-child,
.editor-styles-wrapper .is-root-container > .wp-block:last-child {
  margin-bottom: 0 !important;
}

html body .arvaix-blocks .wp-block-image img,
html body .arvaix-blocks .wp-block-gallery img,
.editor-styles-wrapper .wp-block-image img,
.editor-styles-wrapper .wp-block-gallery img {
  max-width: 100% !important;
  height: auto !important;
}
