/* Gutenberg inserts layout wrappers and sibling margins around imported sections. */
.wp-block-post-content > section.wp-block-group + section.wp-block-group,
.energy-page.wp-block-group > section.wp-block-group + section.wp-block-group {
  margin-block-start: 0;
}

.wp-block-group:is(.reference-project-grid, .catalog-featured-grid) > article.wp-block-group {
  margin-block: 0 !important;
  min-width: 0;
  align-self: stretch;
}

.reference-project-grid > article.wp-block-group > :is(figure, div),
.reference-project-grid > article.wp-block-group > div > :first-child {
  margin-block-start: 0 !important;
}

.wp-block-group.builder-band > figure.builder-photo {
  border-radius: 40% 60% 53% 47% / 54% 43% 57% 46%;
}

footer.wp-block-group .footer-top > figure.wp-block-image {
  margin: 0;
  width: 150px;
  max-width: 100%;
}

footer.wp-block-group .footer-top > figure.wp-block-image img {
  filter: brightness(0) invert(1);
}

.campaign-ribbon.wp-block-group {
  background: #b62c35 !important;
  color: #fff !important;
}

.campaign-ribbon.wp-block-group :is(.campaign-tag, .campaign-story, .campaign-controls, strong, small) {
  color: #fff !important;
}

.campaign-ribbon.wp-block-group .campaign-story :is(strong, small) {
  white-space: normal;
  overflow: visible;
}

.energy-page .energy-faq .button-row .text-link {
  color: #fff !important;
  border-color: #fff !important;
}

.energy-page .catalog-featured-energy .catalog-price .catalog-detail-button {
  color: #30383b !important;
}

/* Template parts may be wrapped in a footer by the WordPress site editor. */
footer.wp-block-template-part {
  padding: 0 !important;
  background: transparent;
}

.brand-strip.wp-block-group > figure.wp-block-image {
  margin: 0;
  min-width: 0;
  justify-self: center;
}

.brand-strip.wp-block-group > figure:first-child { justify-self: start; }
.brand-strip.wp-block-group > figure:last-child { justify-self: end; }

footer.wp-block-group .footer-top > *,
footer.wp-block-group .footer-bottom,
footer.wp-block-group .footer-bottom .wp-block-buttons {
  margin-block: 0;
}

footer.wp-block-group .footer-bottom > .wp-block-group {
  column-gap: 28px;
  row-gap: 8px;
}

footer.wp-block-group .footer-bottom .wp-block-button__link {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  font: inherit;
  text-decoration: none;
}

footer.wp-block-group :is(.footer-bottom a, .footer-top a):hover {
  text-decoration: underline;
  text-underline-offset: .2em;
}

footer.wp-block-group .footer-top .text-link {
  gap: 12px;
}
