/* Crown Pools layout components. Apply the named CSS classes in Divi. */

/* Native Divi 5 sections retain their shared library synchronization references. */
#page-container #main-content :is(
  .crown-custom-intro, .crown-custom-trust, .crown-custom-gallery, .crown-custom-options,
  .crown-custom-reasons, .crown-custom-shotcrete, .crown-custom-benefits, .crown-custom-consultation
) {
  padding: var(--crown-section-space) 0 !important;
}
#page-container #main-content :is(
  .crown-custom-intro, .crown-custom-trust, .crown-custom-gallery, .crown-custom-options,
  .crown-custom-reasons, .crown-custom-shotcrete, .crown-custom-diagram, .crown-custom-process, .crown-custom-benefits, .crown-custom-consultation
) > .et_pb_row {
  width: min(calc(100% - 2 * var(--crown-gutter)), 1200px) !important;
  max-width: 1200px !important;
  padding: 0 !important;
}
#page-container #main-content :is(
  .crown-custom-intro, .crown-custom-gallery, .crown-custom-options, .crown-custom-reasons, .crown-custom-shotcrete,
  .crown-custom-process, .crown-custom-benefits, .crown-custom-consultation
) :is(.et_pb_text, .et_pb_blurb_description) {
  color: var(--crown-text);
  font: 400 16px/1.62 var(--crown-site-font);
}
#page-container #main-content :is(
  .crown-custom-intro h1, .crown-custom-gallery h2, .crown-custom-options > .et_pb_row:first-child h2,
  .crown-custom-reasons .et_pb_blurb:first-child .et_pb_module_header,
  .crown-custom-shotcrete .et_pb_module_header, .crown-custom-process > .et_pb_row:first-child h2,
  .crown-custom-benefits > .et_pb_row:first-child h2, .crown-custom-consultation h2
) {
  margin: 0;
  padding: 0;
  color: var(--crown-ink) !important;
  font: 400 var(--crown-title-size)/1.08 Georgia, serif !important;
  letter-spacing: -.03em;
  text-wrap: balance;
}
#page-container #main-content :is(
  .crown-custom-intro > .et_pb_row:nth-child(2), .crown-custom-shotcrete, .crown-custom-consultation
) :is(.et_pb_text_inner p, h3, .et_pb_blurb_description p) {
  font: 400 17px/1.6 var(--crown-site-font) !important;
  color: var(--crown-text) !important;
}
#page-container #main-content :is(
  .crown-custom-intro > .et_pb_row:nth-child(2),
  .crown-custom-gallery > .et_pb_row:first-child .et_pb_text_inner,
  .crown-custom-options > .et_pb_row:first-child .et_pb_text_inner,
  .crown-custom-shotcrete .et_pb_text,
  .crown-custom-consultation > .et_pb_row:first-child
) {
  max-width: 69ch !important;
  margin-inline: auto !important;
}
#page-container #main-content .crown-custom-intro > .et_pb_row:nth-child(2) {
  width: min(calc(100% - 2 * var(--crown-gutter)), 69ch) !important;
  margin-block: 16px 25px !important;
}
#page-container #main-content .crown-custom-intro p,
#page-container #main-content .crown-custom-gallery p {
  font: 400 clamp(16px, 1.5vw, 18px)/1.62 var(--crown-site-font) !important;
  color: var(--crown-text) !important;
}
#page-container #main-content :is(
  .crown-custom-intro > .et_pb_row:nth-child(3), .crown-custom-trust > .et_pb_row,
  .crown-custom-consultation > .et_pb_row:nth-child(2)
) {
  align-items: start;
}
#page-container #main-content :is(
  .crown-custom-intro > .et_pb_row:nth-child(3), .crown-custom-trust > .et_pb_row,
  .crown-custom-consultation > .et_pb_row:nth-child(2), .backyard-cta-row,
  .crown-custom-benefits > .et_pb_row:nth-child(2)
) > .et_pb_column {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
}
#page-container #main-content :is(
  .crown-custom-intro > .et_pb_row:nth-child(3), .crown-custom-trust > .et_pb_row,
  .crown-custom-consultation > .et_pb_row:nth-child(2), .backyard-cta-row,
  .crown-custom-benefits > .et_pb_row:nth-child(2)
)::after { display: none; }
#page-container #main-content :is(
  .crown-custom-intro > .et_pb_row:nth-child(3), .crown-custom-trust,
  .crown-custom-benefits > .et_pb_row:nth-child(2), .crown-custom-consultation > .et_pb_row:nth-child(2)
) .et_pb_module_header {
  padding: 0;
  color: var(--crown-ink) !important;
  font: 650 15px/1.42 var(--crown-site-font) !important;
}
#page-container #main-content :is(
  .crown-custom-intro, .crown-custom-trust, .crown-custom-benefits, .crown-custom-consultation
) .et_pb_blurb .et-pb-icon { color: var(--crown-action) !important; }

#page-container #main-content :is(.crown-custom-trust, .crown-custom-reasons, .crown-custom-consultation) {
  background: var(--crown-wash) !important;
}
#page-container #main-content .entry-content .crown-custom-trust {
  padding-block: clamp(24px, 3vw, 36px) !important;
  border-block: 1px solid #e1e8f4;
}
#page-container #main-content .crown-custom-gallery {
  background: var(--crown-paper) !important;
  padding-bottom: clamp(22px, 2.2vw, 32px) !important;
}
#page-container #main-content .crown-custom-gallery > .et_pb_row:first-child > .et_pb_column {
  row-gap: 12px;
}
#page-container #main-content .crown-custom-gallery > .et_pb_row:first-child .et_pb_text {
  margin-bottom: 0 !important;
  padding-top: 0 !important;
}
#page-container #main-content .crown-custom-gallery p { margin-top: 0; }
#page-container #main-content .crown-custom-gallery > .et_pb_row + .et_pb_row { margin-top: 20px !important; }
#page-container #main-content .crown-custom-gallery .three-column-gallery .et_pb_gallery_items {
  display: grid;
}
#page-container #main-content .crown-custom-gallery .three-column-gallery .et_pb_gallery_item {
  width: 100% !important;
  margin: 0 !important;
  clear: none !important;
  float: none !important;
}
#page-container #main-content .crown-custom-gallery .et_pb_gallery_image img {
  display: block;
  width: 100%;
  border-radius: 6px;
}
#page-container #main-content .crown-custom-gallery .et_pb_gallery_pagination {
  margin-top: 14px;
  padding-bottom: 0;
  border-color: var(--crown-line);
}
#page-container #main-content .crown-custom-gallery .et_pb_gallery_pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  column-gap: 2px;
  margin: 0;
  padding: 0;
}
#page-container #main-content .crown-custom-gallery .et_pb_gallery_pagination ul li {
  padding-block: 0;
}
#page-container #main-content .crown-custom-gallery .et_pb_gallery_pagination a {
  display: inline-flex;
  min-width: 33px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--crown-action) !important;
}
#page-container #main-content .crown-custom-gallery .et_pb_gallery_pagination a.active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#page-container #main-content .crown-custom-options > .et_pb_row:first-child .et_pb_text {
  margin-bottom: 0 !important;
}
#page-container #main-content .crown-custom-options > .et_pb_row:first-child p {
  margin-top: 12px;
}
#page-container #main-content .crown-custom-options .backyard-cta-row {
  margin-block: 20px !important;
}
#page-container #main-content .backyard-cta-row .et_pb_promo {
  display: grid;
  align-content: center;
  min-height: clamp(215px, 28vw, 340px);
  padding: 24px 19px !important;
}
#page-container #main-content .backyard-cta-row .et_pb_module_header {
  padding-bottom: 7px;
  color: #fff !important;
  font: 400 clamp(28px, 3.3vw, 45px)/1.05 Georgia, serif !important;
}
#page-container #main-content .backyard-cta-row .et_pb_promo_description p {
  font: 500 15px/1.45 var(--crown-site-font) !important;
  color: #fff !important;
}
#page-container #main-content .backyard-cta-row .et_pb_button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 15px !important;
  border: 1px solid #fff !important;
  border-radius: 4px;
  background: #142045dc !important;
  color: #fff !important;
  font: 650 14px/1.35 var(--crown-site-font) !important;
  text-decoration: none;
}
#page-container #main-content .backyard-cta-row .et_pb_button:hover {
  background: #fff !important;
  color: var(--crown-ink) !important;
}
#page-container #main-content .crown-custom-options > .et_pb_row:last-child .et_pb_text_inner {
  max-width: 69ch;
  margin-inline: auto;
}
#page-container #main-content .crown-custom-options > .et_pb_row:last-child p {
  padding: 0;
  color: var(--crown-text) !important;
  font: 400 16px/1.6 var(--crown-site-font) !important;
  text-align: start;
}
#page-container #main-content .crown-custom-options > .et_pb_row:last-child p + p { margin-top: 10px; }
#page-container #main-content .crown-custom-reasons > .et_pb_row > .et_pb_column {
  row-gap: 18px;
}
#page-container #main-content .crown-custom-reasons .et_pb_blurb { margin-block: 0 !important; }
#page-container #main-content .crown-custom-reasons .et_pb_blurb_description { margin-top: 4px; }
#page-container #main-content .crown-custom-reasons .et_pb_text h4 {
  padding-bottom: 2px;
  color: var(--crown-ink);
  font: 675 17px/1.4 var(--crown-site-font);
}
#page-container #main-content .crown-custom-reasons .et_pb_image_wrap { border-radius: 8px; }
#page-container #main-content .crown-custom-reasons .et_pb_image img { width: 100%; }
#page-container #main-content .crown-custom-shotcrete { padding-bottom: 24px !important; }
#page-container #main-content .crown-custom-shotcrete > .et_pb_row > .et_pb_column {
  row-gap: 16px;
}
#page-container #main-content .crown-custom-shotcrete .et_pb_blurb { margin-block: 0 !important; }
#page-container #main-content .crown-custom-shotcrete .et_pb_blurb_description { margin-top: 8px; }

#page-container #main-content .crown-custom-process > .et_pb_row:first-child {
  margin-bottom: 8px !important;
}
#page-container #main-content .crown-custom-process > .et_pb_row:first-child p {
  margin-top: 8px;
  color: var(--crown-text) !important;
  font: 400 16px/1.5 var(--crown-site-font) !important;
}
#page-container #main-content .crown-custom-process > .et_pb_row:not(:first-child) > .et_pb_column {
  row-gap: 14px;
}
#page-container #main-content .crown-custom-process > .et_pb_row:not(:first-child) :is(
  .et_pb_text, .et_pb_image, .et_pb_icon
) { margin: 0 auto !important; }
#page-container #main-content .crown-custom-process > .et_pb_row:not(:first-child) h3 {
  padding: 0 0 4px;
  color: var(--crown-action) !important;
  font: 750 12px/1.4 var(--crown-site-font) !important;
  letter-spacing: .12em;
}
#page-container #main-content .crown-custom-process > .et_pb_row:not(:first-child) h2 {
  padding: 0;
  color: var(--crown-ink) !important;
  font: 700 19px/1.25 var(--crown-site-font) !important;
  text-transform: none !important;
}
#page-container #main-content .crown-custom-process > .et_pb_row:not(:first-child) .et_pb_text p {
  width: min(100%, 35ch);
  margin: 0 auto;
  color: var(--crown-text) !important;
  font: 400 15px/1.55 var(--crown-site-font) !important;
}
#page-container #main-content .crown-custom-process .et_pb_image {
  width: min(100%, 216px) !important;
}
#page-container #main-content .crown-custom-process .et_pb_image .et_pb_image_wrap {
  display: block;
  width: 100% !important;
  aspect-ratio: 1;
  border: 2px solid var(--crown-line) !important;
  border-radius: 50%;
}
#page-container #main-content .crown-custom-process .et_pb_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#page-container #main-content .crown-custom-process .et_pb_icon .et-pb-icon {
  color: var(--crown-action) !important;
  font-size: 32px !important;
}
#page-container #main-content .crown-custom-benefits > .et_pb_row:nth-child(2) {
  --benefit-gap: 14px;
  max-width: 850px !important;
  margin: 24px auto !important;
  row-gap: var(--benefit-gap);
}
#page-container #main-content .crown-custom-benefits > .et_pb_row:nth-child(2) > .et_pb_column {
  row-gap: var(--benefit-gap);
}
#page-container #main-content .crown-custom-benefits > .et_pb_row:nth-child(2) :is(.et_pb_blurb, .et_pb_main_blurb_image) {
  margin: 0 !important;
}
#page-container #main-content .crown-custom-benefits > .et_pb_row:nth-child(2) .et_pb_blurb_container {
  padding-inline-start: 12px;
}
#page-container #main-content .crown-custom-benefits > .et_pb_row:nth-child(2) .et-pb-icon {
  font-size: 18px !important;
  line-height: 1.18;
}
/* Give this callout its own spacing within the full-width section. */
#page-container #main-content .entry-content .crown-custom-benefits > .et_pb_row:last-child {
  max-width: 72ch !important;
  padding: clamp(16px, 2.5vw, 30px) !important;
  background: var(--crown-paper);
  border-inline-start: 3px solid #edc751;
}
#page-container #main-content .crown-custom-benefits > .et_pb_row:last-child .et_pb_blurb {
  margin-block: 0 !important;
}
#page-container #main-content .crown-custom-benefits > .et_pb_row:last-child h4 {
  padding-bottom: 6px;
  color: var(--crown-ink);
  font: 400 25px/1.1 Georgia, serif;
}

#page-container #main-content .crown-custom-consultation > .et_pb_row:first-child { text-align: center; }
#page-container #main-content .crown-custom-consultation > .et_pb_row:first-child .et_pb_text { margin-top: 0 !important; }
#page-container #main-content .crown-custom-consultation > .et_pb_row:first-child h3 {
  margin-top: 10px;
  padding: 0;
}
#page-container #main-content .crown-custom-consultation > .et_pb_row:nth-child(2) {
  max-width: 880px !important;
  margin-block: 18px !important;
}
#page-container #main-content .crown-custom-consultation > .et_pb_row:last-child { max-width: 900px !important; }
/* The white consultation panel is a layout treatment. The controls use the sitewide form styles. */
#page-container #main-content .crown-custom-consultation .gform_wrapper {
  margin: 0;
  padding: clamp(15px, 3vw, 35px);
  background: #fff;
  border: 1px solid var(--crown-line);
  border-radius: 12px;
  box-shadow: 0 5px 24px rgba(20, 32, 69, .06);
}
#page-container #main-content :is(.crown-custom-gallery, .backyard-cta-row) a:focus-visible {
  outline: 2px solid var(--crown-action) !important;
  outline-offset: 3px;
}

@media (min-width: 700px) and (max-width: 980px) {
  #page-container #main-content .crown-custom-reasons > .et_pb_row {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 24px;
  }
  #page-container #main-content .crown-custom-reasons > .et_pb_row > .et_pb_column {
    width: 100% !important;
    margin: 0 !important;
  }
  #page-container #main-content .crown-custom-reasons > .et_pb_row::after { display: none; }
}
@media (max-width: 600px) {
  #page-container #main-content :is(
    .crown-custom-intro > .et_pb_row:nth-child(3), .crown-custom-consultation > .et_pb_row:nth-child(2),
    .backyard-cta-row, .crown-custom-benefits > .et_pb_row:nth-child(2)
  ) {
    grid-template-columns: 1fr;
  }
  #page-container #main-content .crown-custom-gallery .et_pb_gallery_pagination ul li { padding: 0 2px; }
  #page-container #main-content .crown-custom-consultation .et_pb_row:first-child {
    width: min(calc(100% - 2 * var(--crown-gutter)), 69ch) !important;
  }
}

/* Native Grid generates the tracks. Give the published row a grid container. */
#page-container #main-content .crown-custom-native-grid.et_pb_row { display: grid !important; }

/* The retired Divi gallery uses floats without its optional layout class. */
@media (min-width: 981px) {
  .et_d4_element.three-column-gallery .et_pb_gallery_items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .et_d4_element.three-column-gallery .et_pb_gallery_item {
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
    float: none !important;
  }
}
