.crown-m3-row.et_pb_row {
  width: min(calc(100% - 96px), 1280px) !important;
  max-width: 1280px !important;
  padding: 0 !important;
}
#page-container #main-content .crown-m3-offer.et_pb_section {
  padding: 0 !important;
  background: #eaf0fb !important;
  border-block: 1px solid #d5dfef;
}
.crown-m3-offer .et_pb_text, .crown-m3-offer p { margin: 0 !important; padding: 0 !important; }
.crown-m3-offer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  min-height: 52px;
  padding: 7px 0;
  color: var(--crown-ink) !important;
  font: 400 14px/1.35 system-ui, sans-serif;
}
.crown-m3-offer-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; }
.crown-m3-offer-copy strong { font-weight: 750; }
.crown-m3-offer-copy > span { color: var(--crown-text); font-size: 13px; }
.crown-m3-offer-action {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: .28rem .65rem;
  border: 1px solid #aebcdb;
  border-radius: 6px;
  color: var(--crown-action);
  background: #fff;
  font-size: .82rem;
  font-weight: 750;
}
.crown-m3-offer a:focus-visible .crown-m3-offer-action {
  color: #fff;
  background: var(--crown-action);
  border-color: var(--crown-action);
}
@media (hover: hover) {
  .crown-m3-offer a:hover .crown-m3-offer-action {
    color: #fff;
    background: var(--crown-action);
    border-color: var(--crown-action);
  }
}
@media (max-width: 767px) {
  .crown-m3-offer-copy { display: block; }
  .crown-m3-offer-copy > span { display: block; margin-top: 2px; }
}
.crown-m2-hero:has(.crown-m3-interactions) {
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding-top: clamp(52px, 8vw, 106px) !important;
  padding-bottom: clamp(42px, 5.7vw, 78px) !important;
}
.crown-m2-hero:has(.crown-m3-interactions) > .et_pb_row { z-index: 2; }
.crown-m3-slide-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.crown-m2-hero:has(.crown-m3-interactions).crown-m3-has-slide::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,20,44,.93), rgba(11,20,44,.78) 26%, rgba(11,20,44,.46) 59%, rgba(11,20,44,.08));
  pointer-events: none;
}
.crown-m2-hero:has(.crown-m3-interactions) .crown-m3-interactions { margin: 12px 0 0; }
#main-content .crown-m2-hero:has(.crown-m3-interactions) a.crown-m3-tour {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: #fff;
  font: 700 15px/1.35 system-ui, sans-serif;
}
#main-content .crown-m2-hero:has(.crown-m3-interactions) a.crown-m3-tour:hover { text-decoration: underline; }
.crown-m3-tour-icon {
  position: relative;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border: 1px solid #bcc8dc;
  border-radius: 50%;
  font-size: 0;
}
.crown-m3-tour-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-block: 4px solid transparent;
  border-left: 7px solid currentColor;
  transform: translate(-50%, -50%);
}
.crown-m3-gallery {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: clamp(35px, 4.6vw, 62px);
  color: #fff;
}
.crown-m3-gallery[hidden], .crown-m3-slide-image[hidden] { display: none; }
.crown-m3-gallery-line, .crown-m3-thumbs { display: flex; align-items: center; gap: 5px; }
.crown-m3-gallery button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 2px;
  color: white;
  background: #172747e8;
  border: 1px solid #bdc7de;
  cursor: pointer;
  font: 700 15px system-ui, sans-serif;
}
.crown-m3-gallery button[aria-pressed="true"] { border: 2px solid #edc751; }
.crown-m3-thumbs button { width: 54px; }
.crown-m3-thumbs img { width: 100%; height: 36px; object-fit: cover; }
.crown-m3-count { white-space: nowrap; font: 650 13px/1 system-ui, sans-serif; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.crown-m3-count b { color: #ffe08a; font-size: 23px; }
#main-content .crown-m2-hero:has(.crown-m3-interactions) a.et_pb_button[href="/crowncustompools/"] {
  margin-top: 14px;
  padding: 12px 16px !important;
  gap: 15px;
  min-height: 46px;
}
#main-content .crown-m2-hero:has(.crown-m3-interactions) a.et_pb_button[href="/crowncustompools/"]::after {
  content: '→' / '';
  position: static;
  opacity: 1;
  margin: 0 !important;
  font: inherit;
}
@media (max-width: 767px) {
  .crown-m2-hero:has(.crown-m3-interactions) { padding-top: 53px !important; padding-bottom: 24px !important; }
  #main-content .crown-m2-hero:has(.crown-m3-interactions) .crown-m2-hero-copy h1 {
    font-size: clamp(36px, 11vw, 52px) !important;
    line-height: 1.05;
    letter-spacing: -.045em;
  }
  .crown-m3-offer a { gap: 8px; }
}
@media (max-width: 550px) {
  .crown-m3-thumbs { display: none; }
}

.crown-m3-services.et_pb_section {
  padding: clamp(40px, 4.75vw, 72px) 0 !important;
  background: var(--crown-paper) !important;
}
.crown-m3-section-head .et_pb_text { margin-bottom: 0 !important; }
.crown-m3-section-head p { font: 400 clamp(16px, 1.5vw, 18px)/1.5 system-ui, sans-serif; color: var(--crown-text); }
.crown-m3-section-head + .crown-m3-grid { margin-top: 24px; }
/* Divi controls the tracks and gaps. Enable grid on the published theme row. */
.crown-m3-grid.et_pb_row { display: grid !important; }
.crown-m3-grid + .crown-m3-grid { margin-top: 16px; }
.crown-m3-grid.et_pb_row::after { display: none; }
.crown-m3-grid.et_pb_row > .et_pb_column { min-width: 0; width: 100% !important; margin: 0 !important; }
.crown-m3-card.et_pb_column {
  position: relative;
  background: white;
  border: 1px solid #d9deea;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(20,32,69,.07);
}
.crown-m3-card .et_pb_image, .crown-m3-card .et_pb_image_wrap {
  display: block;
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.crown-m3-card .et_pb_image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border: 0 !important;
  border-radius: 0 !important;
}
.crown-m3-card .et_pb_text { margin: 0; padding: clamp(16px, 1.8vw, 24px); }
.crown-m3-card:focus-within {
  outline: 2px solid var(--crown-action);
  outline-offset: 3px;
}
.crown-m3-card h3 {
  padding: 0;
  margin: 0 0 8px;
  color: var(--crown-ink);
  font: 400 clamp(22px, 2.12vw, 29px)/1.13 Georgia, serif;
}
.crown-m3-card h3 a { color: inherit; }
.crown-m3-card h3 a::after { content: ''; position: absolute; inset: 0; }
.crown-m3-card:hover h3 a, .crown-m3-card:focus-within h3 a { text-decoration: underline; text-underline-offset: 4px; }
.crown-m3-card p { color: var(--crown-text); font: 400 16px/1.55 system-ui, sans-serif; }
.crown-m3-dialog {
  width: min(56rem, calc(100% - 36px));
  max-height: calc(100% - 28px);
  margin: auto;
  padding: 0;
  border: 1px solid #8090b8;
  color: var(--crown-ink);
  background: white;
  overflow: auto;
}
.crown-m3-dialog::backdrop { background: rgba(9,19,41,.76); }
.crown-m3-dialog-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--crown-ink);
  color: white;
}
.crown-m3-dialog-head h2 { color: inherit; margin: 0; padding: 0; font: 400 clamp(21px, 4vw, 32px)/1.15 Georgia, serif; }
.crown-m3-dialog-head form { margin: 0; }
.crown-m3-dialog-head button {
  min-width: 44px;
  min-height: 44px;
  color: white;
  background: transparent;
  border: 1px solid #b3c0e3;
  cursor: pointer;
  font: 400 27px/1 system-ui, sans-serif;
}
.crown-m3-dialog video { width: 100%; height: auto; max-height: 70vh; background: #101d45; display: block; }
.crown-m3-dialog :focus-visible, .crown-m3-gallery :focus-visible, .crown-m3-tour:focus-visible {
  outline: 3px solid #edc751;
  outline-offset: 3px;
}
.crown-m3-dialog-head button:focus-visible { outline-offset: 1px; }
@media (max-width: 980px) {
  .crown-m3-row.et_pb_row { width: calc(100% - 48px) !important; }
}
@media (max-width: 767px) {
  .crown-m3-row.et_pb_row { width: calc(100% - 36px) !important; }
}
@media (max-width: 520px) {
  #main-content .crown-m3-grid.et_pb_row { grid-template-columns: minmax(0, 1fr); }
  .crown-m3-card .et_pb_text { padding: 16px; }
  .crown-m2-hero:has(.crown-m3-interactions) .et_pb_button_module_wrapper { margin-bottom: 8px !important; }
}


/* First project image while the homepage gallery initializes. */
#main-content .et_builder_inner_content > .crown-m2-hero:has(.crown-m3-interactions) {
  background-image: linear-gradient(90deg, rgba(8,22,48,.88), rgba(8,22,48,.20)), url("/wp-content/uploads/2026/11/banner-5-1-pageup-hero-pageup-static.webp") !important;
  background-position: center;
  background-size: cover;
}
