/* ---- Cover block ---- */

.wp-block-cover.is-light h1:not(.has-text-color),
.wp-block-cover.is-light h2:not(.has-text-color),
.wp-block-cover.is-light h3:not(.has-text-color),
.wp-block-cover.is-light h4:not(.has-text-color),
.wp-block-cover.is-light h5:not(.has-text-color),
.wp-block-cover.is-light h6:not(.has-text-color) {
  color: var(--dark-gray) !important;
}

.wp-block-cover.is-style-rounded,
.wp-block-cover.is-style-rounded-full,
.wp-block-cover.is-style-rounded img,
.wp-block-cover.is-style-rounded-full img,
.wp-block-cover.is-style-rounded .has-background-dim,
.wp-block-cover.is-style-rounded-full .has-background-dim,
.wp-block-cover.is-style-rounded .wp-block-cover__image-background,
.wp-block-cover.is-style-rounded-full .wp-block-cover__image-background,
.wp-block-cover.is-style-rounded .wp-block-cover__image-background.has-parallax,
.wp-block-cover.is-style-rounded-full
  .wp-block-cover__image-background.has-parallax {
  border-radius: 1em;
}

.wp-block-cover.is-style-rounded-full.has-custom-content-position {
  &.is-position-top-left,
  &.is-position-center-left,
  &.is-position-bottom-left,
  &.is-position-top-right,
  &.is-position-center-right,
  &.is-position-bottom-right {
    .wp-block-cover__inner-container {
      width: 50%;
    }
  }
}

.header-hero .wp-block-cover {
  margin-block-start: 0;
}

.header-hero-title-inside
  .wp-block-cover:not(.is-style-rounded):not(.is-style-rounded-full).alignfull {
  margin-left: -1.5em;
  margin-right: -1.5em;
  margin-top: calc((1.5em + var(--wp--style--root--padding-top)) * -1);

  .mxs-card & {
    margin: 0;
  }
}

.header-hero .wp-block-cover.is-style-rounded,
.header-hero .wp-block-cover.is-style-rounded-full {
  margin: 0 1.5em;
}

.mxs-card .wp-block-cover {
  &.alignfull {
    margin-left: 0;
    margin-right: 0;
  }

  &.is-style-rounded.alignfull,
  &.is-style-rounded-full.alignfull {
    margin-left: var(--wp--style--root--padding-left);
    margin-right: var(--wp--style--root--padding-right);
  }
}

/* Color overrides */
.wp-block-cover .has-accent-1-background-color {
  background-color: var(--wp--preset--color--accent-1);
}

.wp-block-cover .has-accent-2-background-color {
  background-color: var(--wp--preset--color--accent-2);
}

.wp-block-cover .has-accent-3-background-color {
  background-color: var(--wp--preset--color--accent-3);
}

.wp-block-cover .has-accent-4-background-color {
  background-color: var(--wp--preset--color--accent-4);
}

.wp-block-cover .has-accent-5-background-color {
  background-color: var(--wp--preset--color--accent-5);
}

.wp-block-cover .has-accent-6-background-color {
  background-color: var(--wp--preset--color--accent-6);
}

.wp-block-cover .has-accent-7-background-color {
  background-color: var(--wp--preset--color--accent-7);
}

.wp-block-cover .has-accent-8-background-color {
  background-color: var(--wp--preset--color--accent-8);
}
