/* Shared Bellevue-inspired layout polish for every real project detail page. */
body.project-detail-page {
  --project-polish-gutter: calc(clamp(3rem, 9vw, 6rem) * 1.75);
  --project-polish-ivory: #fbfaf7;
  --project-polish-stone: #f3efe7;
  --project-polish-sage: #edf4f1;
  --project-polish-line: rgba(18, 50, 45, 0.13);
  --project-polish-shadow: 0 14px 32px rgba(15, 43, 38, 0.12);
  --project-polish-shadow-soft: 0 8px 22px rgba(15, 43, 38, 0.07);
  background: var(--project-polish-ivory);
  font-family: var(--font-body, "Inter", Arial, sans-serif);
}

body.project-detail-page main :is(h1, h2, h3, h4),
body.project-detail-page main :is(.kp-photo-title, .photo-title, .project-photo-caption) strong,
body.project-detail-page main .project-title {
  font-family: var(--font-heading, "DM Serif Display", Georgia, serif);
  font-weight: 400;
  letter-spacing: -0.012em;
}

body.project-detail-page main :is(p, a, button, small, li, .kp-kicker, .section-kicker, .kp-source-label, .source-label, .kp-badge, .photo-badge) {
  font-family: var(--font-body, "Inter", Arial, sans-serif);
}

body.project-detail-page :is(.kp-hero-content, .project-hero-content, .kp-jump-inner, .project-jump-inner),
body.project-detail-page :is(.kp-breadcrumb, .project-breadcrumb) > .container,
body.project-detail-page :is(.kp-section, .project-section, .kp-cta, .project-cta, .related-projects) > .container {
  width: 100%;
  max-width: 1244px;
  margin-inline: auto;
  padding-inline: var(--project-polish-gutter);
}

/* Keep the final navigation and both footer rows on the same centered rail as
   the hero and project sections. Background bands can remain full width. */
body.project-detail-page .page-end-bar > .container,
body.project-detail-page .footer-main,
body.project-detail-page .footer-bottom-inner {
  width: 100%;
  max-width: 1244px;
  margin-inline: auto;
  padding-left: var(--project-polish-gutter);
  padding-right: var(--project-polish-gutter);
}

body.project-detail-page main :is(h1, h2, h3, h4, p),
body.project-detail-page .site-footer :is(h4, p, a, li) {
  overflow-wrap: break-word;
}

/* Keep every project hero as clean and bright as the Bellevue reference page. */
body.project-detail-page :is(.kp-hero, .project-hero)::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 42%, rgba(0, 0, 0, 0.06) 72%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.48) 0%, rgba(0, 0, 0, 0) 40%);
}

body.project-detail-page :is(.kp-hero-tags, .project-hero-tags, .kp-hero-source, .project-hero-label) {
  display: none !important;
}

body.project-detail-page :is(.kp-eyebrow, .project-eyebrow) {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.38);
}

body.project-detail-page :is(.kp-hero, .project-hero) h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.44);
}

body.project-detail-page :is(.kp-hero-summary, .project-hero-summary) {
  max-width: none;
  margin-top: 0.5rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.46);
}

body.project-detail-page :is(.kp-jump, .project-jump) {
  border-bottom: 1px solid var(--project-ink, #07211e) !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(7, 33, 30, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.project-detail-page :is(.kp-section, .project-section) {
  padding: clamp(2.25rem, 3.6vw, 3.5rem) 0 !important;
  border-top: 1px solid var(--project-polish-line);
  background: var(--project-polish-ivory) !important;
  color: var(--project-ink) !important;
}

body.project-detail-page :is(.kp-section--warm, .project-section--warm) {
  background: var(--project-polish-stone) !important;
}

body.project-detail-page :is(.kp-section--dark, .project-section--dark, .project-section--ombre) {
  background: linear-gradient(to bottom, #e8f0ee 0%, var(--project-polish-sage) 42%, #f3f8f7 100%) !important;
  color: var(--project-ink) !important;
}

/* These sections used to be dark. Keep every legacy descendant readable now
   that the surfaces are light, without touching captions on photographs. */
body.project-detail-page :is(.kp-section--dark, .project-section--dark, .project-section--ombre)
  :is(.kp-section-head, .project-section-head, .kp-chapter-head, .chapter-head, .kp-step-copy, .process-copy, .process-step-copy, .kp-reveal-copy, .reveal-copy, .detail-copy)
  :is(h2, h3, h4, strong) {
  color: var(--project-ink, #07211e) !important;
  text-shadow: none !important;
}

body.project-detail-page :is(.kp-section--dark, .project-section--dark, .project-section--ombre)
  :is(.kp-section-head, .project-section-head, .kp-chapter-head, .chapter-head, .kp-step-copy, .process-copy, .process-step-copy, .kp-reveal-copy, .reveal-copy, .detail-copy) p {
  color: #365f59 !important;
  text-shadow: none !important;
}

body.project-detail-page :is(.kp-section--dark, .project-section--dark, .project-section--ombre)
  :is(.kp-kicker, .section-kicker, .kp-source-label, .source-label) {
  color: #0b5f5b !important;
  text-shadow: none !important;
}

body.project-detail-page :is(.kp-section-head, .project-section-head) {
  grid-template-columns: 44px minmax(0, 1fr) !important;
  gap: 1rem !important;
  max-width: none !important;
  margin: 0 0 clamp(0.7rem, 1.2vw, 1.05rem) !important;
  align-items: start;
}

body.project-detail-page :is(.kp-section-head, .project-section-head) > :only-child {
  grid-column: 1 / -1;
}

body.project-detail-page :is(.kp-section-num, .project-section-num) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(14, 110, 107, 0.3) !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  color: var(--project-teal, #0e6e6b) !important;
  font-family: var(--font-body, "Inter", Arial, sans-serif) !important;
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1 !important;
  opacity: 1 !important;
}

body.project-detail-page :is(.kp-section-head, .project-section-head) h2 {
  margin: 0;
  color: var(--project-ink) !important;
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  line-height: 1.08;
}

body.project-detail-page :is(.kp-section-head, .project-section-head) p:last-child {
  max-width: none;
  margin: 0.4rem 0 0;
  color: #416a64 !important;
  font-size: 0.96rem;
  line-height: 1.65;
}

body.project-detail-page :is(.kp-chapter, .chapter) {
  margin-top: clamp(1.25rem, 2.4vw, 1.9rem) !important;
}

body.project-detail-page :is(.kp-chapter, .chapter):first-of-type {
  margin-top: 0 !important;
}

body.project-detail-page :is(.kp-chapter-head, .chapter-head) {
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom-color: var(--project-polish-line) !important;
}

body.project-detail-page :is(.kp-chapter-head, .chapter-head) h3 {
  color: var(--project-ink) !important;
  font-size: clamp(1.4rem, 2.25vw, 1.9rem);
  line-height: 1.15;
}

body.project-detail-page :is(.kp-chapter-head, .chapter-head) p {
  color: #416a64 !important;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Scope areas retain cards only where they help scan short project goals. */
body.project-detail-page :is(.kp-goals, .scope-grid, .scope-groups) {
  gap: clamp(0.75rem, 1.35vw, 1rem) !important;
}

body.project-detail-page .kp-goals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.project-detail-page .kp-goal {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: clamp(1.15rem, 2vw, 1.55rem) !important;
  border: 1px solid var(--project-polish-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 12px 30px rgba(7, 33, 30, 0.07) !important;
}

body.project-detail-page .kp-goal-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(14, 110, 107, 0.25);
  border-radius: 50%;
  color: var(--project-teal, #0e6e6b);
  font-size: 0.66rem;
  font-weight: 700;
}

body.project-detail-page .kp-goal p {
  margin: 0;
  color: #416a64;
  font-size: 0.92rem;
  line-height: 1.6;
}

body.project-detail-page :is(.overview-grid, .scope-layout) {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(0.75rem, 1.35vw, 1rem) !important;
}

body.project-detail-page :is(.plan-card, .scope-plan) {
  padding: 0.85rem !important;
  border: 1px solid var(--project-polish-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 18px 40px rgba(7, 33, 30, 0.1) !important;
}

body.project-detail-page :is(.plan-card, .scope-plan) :is(.kp-photo-media, .photo-media, .shot-media) {
  border-radius: 10px;
}

body.project-detail-page .scope-group {
  padding: 1rem 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--project-polish-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.project-detail-page .scope-group :is(h3, h4) {
  color: var(--project-ink) !important;
}

body.project-detail-page .scope-group p {
  color: #416a64 !important;
  line-height: 1.62;
}

/* Construction stories use an open checkerboard: image, copy, then reverse.
   The row itself is not a card; depth belongs only to the photograph. */
body.project-detail-page :is(.kp-process-list, .process-list, .process-timeline) {
  gap: clamp(1rem, 2vw, 1.6rem) !important;
}

body.project-detail-page :is(.kp-step, .process-step) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: clamp(0.8rem, 1.7vw, 1.4rem) !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: clamp(290px, 28vw, 390px);
  padding: 0 !important;
  overflow: visible !important;
  aspect-ratio: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.project-detail-page :is(.kp-step, .process-step):nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

body.project-detail-page :is(.kp-process-list, .process-list, .process-timeline) > :is(.kp-step, .process-step),
body.project-detail-page :is(.kp-process-list, .process-list, .process-timeline) > :is(.kp-step, .process-step):nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

body.project-detail-page :is(.kp-step, .process-step) > :is(.project-photo-block, .kp-step-photo, .process-photo, .process-step-media) {
  grid-column: 1;
  grid-row: 1;
}

body.project-detail-page :is(.kp-step, .process-step):nth-child(even) > :is(.project-photo-block, .kp-step-photo, .process-photo, .process-step-media) {
  grid-column: 2;
  grid-row: 1;
}

body.project-detail-page :is(.kp-step, .process-step) > :is(.kp-step-copy, .process-copy, .process-step-copy) {
  grid-column: 2;
  grid-row: 1;
}

body.project-detail-page :is(.kp-step, .process-step):nth-child(even) > :is(.kp-step-copy, .process-copy, .process-step-copy) {
  grid-column: 1;
  grid-row: 1;
}

body.project-detail-page :is(.kp-step, .process-step) > .project-photo-block {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(18, 50, 45, 0.1) !important;
  border-radius: 7px !important;
  box-shadow: 0 12px 28px rgba(7, 33, 30, 0.1) !important;
}

body.project-detail-page :is(.kp-step, .process-step) :is(.kp-step-photo, .process-photo, .process-step-media) {
  position: relative;
  width: 100%;
  height: 100% !important;
  min-height: clamp(290px, 28vw, 390px) !important;
  overflow: hidden;
  border: 1px solid rgba(18, 50, 45, 0.1) !important;
  border-radius: 7px !important;
  background: #e8e5de;
  box-shadow: 0 12px 28px rgba(7, 33, 30, 0.1) !important;
}

body.project-detail-page :is(.kp-step, .process-step) :is(.kp-step-photo, .process-photo, .process-step-media) img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body.project-detail-page :is(.kp-step-copy, .process-copy, .process-step-copy) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: clamp(0.75rem, 1.8vw, 1.45rem) clamp(0.25rem, 1.35vw, 1.1rem) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.project-detail-page :is(.kp-step-copy, .process-copy, .process-step-copy) h4 {
  margin-bottom: 0.55rem;
  color: var(--project-ink) !important;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.18;
}

body.project-detail-page :is(.kp-step-copy, .process-copy, .process-step-copy) p:not(.kp-source-label) {
  color: #365f59 !important;
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.62;
}

/* Lead images and paired features follow the same balanced two-column rhythm. */
body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: clamp(0.75rem, 1.35vw, 1rem) !important;
  align-items: stretch;
  min-height: clamp(290px, 30vw, 420px);
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature) > .project-photo-block {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  align-self: stretch;
}

body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature)
  :is(.kp-photo-media, .photo-media, .shot-media) {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(290px, 30vw, 420px) !important;
  overflow: hidden;
  border-radius: 6px;
  background: #e8e5de;
}

body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature)
  :is(.kp-photo-media, .photo-media, .shot-media) img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body.project-detail-page :is(.kp-before-copy, .kp-snapshot-copy, .kp-editorial-copy, .kp-reveal-copy, .reveal-copy, .reveal-lead-copy, .detail-copy, .detail-feature-copy) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.75rem, 1.8vw, 1.45rem) clamp(0.25rem, 1.35vw, 1.1rem) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.project-detail-page :is(.kp-before-copy, .kp-snapshot-copy, .kp-editorial-copy, .kp-reveal-copy, .reveal-copy, .reveal-lead-copy, .detail-copy, .detail-feature-copy) :is(h3, h4) {
  color: var(--project-ink) !important;
}

body.project-detail-page :is(.kp-before-copy, .kp-snapshot-copy, .kp-editorial-copy, .kp-reveal-copy, .reveal-copy, .reveal-lead-copy, .detail-copy, .detail-feature-copy) p {
  color: #416a64 !important;
  line-height: 1.65;
}

/* Even photo frames, light depth, and captions over the image. */
body.project-detail-page :is(.photo-grid, .kp-compare, .comparison-grid, .project-ba-grid, .kp-video-grid) {
  gap: clamp(0.75rem, 1.35vw, 1rem) !important;
}

/* Uniform, low-profile gallery filters on every project template. */
body.project-detail-page .room-filter--slim[data-gallery-filter] {
  display: block !important;
  margin: 0.2rem 0 0.9rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.project-detail-page .room-filter--slim[data-gallery-filter] .room-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.project-detail-page .room-filter--slim[data-gallery-filter] .room-filter-btn {
  min-height: 34px;
  padding: 0.45rem 0.78rem;
  border: 1px solid rgba(7, 33, 30, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #123d38 !important;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: none;
}

body.project-detail-page .room-filter--slim[data-gallery-filter] .room-filter-btn:hover,
body.project-detail-page .room-filter--slim[data-gallery-filter] .room-filter-btn:focus-visible {
  border-color: #c2410c;
  background: #f7e8e0;
  color: #07211e !important;
  transform: none;
}

body.project-detail-page .room-filter--slim[data-gallery-filter] .room-filter-btn:focus-visible {
  outline: 3px solid rgba(14, 110, 107, 0.24);
  outline-offset: 2px;
}

body.project-detail-page .room-filter--slim[data-gallery-filter] .room-filter-btn.is-active {
  border-color: #0e5e5b;
  background: #0e5e5b;
  color: #fff !important;
}

body.project-detail-page :is(.photo-grid, .kp-compare, .comparison-grid, .project-ba-grid, .kp-gallery, .kp-before-gallery, .before-slideshow, .project-room-gallery)
  > :is(figure, .kp-photo, .project-photo, .project-shot) :is(.kp-photo-media, .photo-media, .shot-media) {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden;
}

body.project-detail-page :is(.photo-grid, .kp-compare, .comparison-grid, .project-ba-grid, .kp-gallery, .kp-before-gallery, .before-slideshow, .project-room-gallery)
  > :is(figure, .kp-photo, .project-photo, .project-shot) :is(.kp-photo-media, .photo-media, .shot-media) img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

body.project-detail-page .project-ba-grid--portrait :is(.kp-photo-media, .photo-media, .shot-media),
body.project-detail-page .project-reference-grid :is(.kp-photo-media, .photo-media, .shot-media) {
  aspect-ratio: 3 / 4 !important;
}

body.project-detail-page :is(.project-reference-card, .project-photo--contain) :is(.project-reference-media, .kp-photo-media, .photo-media, .shot-media) img {
  object-fit: contain !important;
  background: #fff;
}

body.project-detail-page :is(.project-reference-card, .plan-card, .scope-plan) img {
  filter: none;
}

body.project-detail-page :is(.kp-photo, .project-photo, .project-shot).gallery-item:not(:has(.project-photo-block)) {
  position: relative;
  overflow: hidden !important;
  border: 1px solid rgba(18, 50, 45, 0.1) !important;
  border-radius: 6px !important;
  background: #e8e5de;
  box-shadow: var(--project-polish-shadow) !important;
}

body.project-detail-page .project-photo-block {
  position: relative !important;
  overflow: hidden;
  border: 1px solid rgba(18, 50, 45, 0.1);
  border-radius: 6px;
  background: #e8e5de;
  box-shadow: var(--project-polish-shadow);
}

body.project-detail-page .project-photo-block:has(> :is(.kp-step-photo, .process-photo, .process-step-media)) {
  border: 1px solid rgba(18, 50, 45, 0.1);
  background: #e8e5de;
  box-shadow: var(--project-polish-shadow);
}

body.project-detail-page .project-photo-block > :is(.kp-step-photo, .process-photo, .process-step-media) {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.project-detail-page :is(.project-photo-block > .project-photo-caption, .project-shot:not(.plan-card) > figcaption),
body.project-detail-page :is(.kp-photo-media, .photo-media, .shot-media) > :is(.kp-photo-title, .photo-title, .process-caption),
body.project-detail-page.bellevue-full-home-page #before .carousel-track .project-photo .photo-title,
body.project-detail-page.kirkland-kitchen-page #before .kp-before-gallery .kp-photo-title {
  position: absolute !important;
  z-index: 5 !important;
  inset: auto 0 0 0 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 2.6rem 0.9rem 0.8rem !important;
  border: 0 !important;
  background: linear-gradient(to top, rgba(16, 22, 20, 0.86) 0%, rgba(16, 22, 20, 0.38) 55%, rgba(16, 22, 20, 0) 100%) !important;
  color: #fff !important;
  text-align: left;
  pointer-events: none;
}

/* The Open-Plan whole-home template keeps its title in a sibling figcaption.
   Pin that caption to the photograph explicitly so its white title can never
   fall onto the light section below. */
body.project-detail-page .project-shot.gallery-item:not(.plan-card):not(.project-reference-card) {
  position: relative !important;
}

body.project-detail-page .project-shot.gallery-item:not(.plan-card):not(.project-reference-card) > figcaption,
body.project-detail-page.kirkland-full-home-page #before-process .ec-slide.project-shot > figcaption {
  position: absolute !important;
  z-index: 5 !important;
  inset: auto 0 0 0 !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 2.6rem 0.9rem 0.8rem !important;
  border: 0 !important;
  background: linear-gradient(to top, rgba(16, 22, 20, 0.88) 0%, rgba(16, 22, 20, 0.4) 56%, rgba(16, 22, 20, 0) 100%) !important;
  color: #fff !important;
  text-align: left !important;
  pointer-events: none;
}

body.project-detail-page :is(.project-natural-photo, .gallery-item):not(.project-reference-card):not(.plan-card):not(.scope-plan):not(.kp-video-card) > figcaption {
  position: absolute !important;
  z-index: 5 !important;
  inset: auto 0 0 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 2.6rem 0.9rem 0.8rem !important;
  border: 0 !important;
  background: linear-gradient(to top, rgba(16, 22, 20, 0.86) 0%, rgba(16, 22, 20, 0.38) 55%, rgba(16, 22, 20, 0) 100%) !important;
  color: #fff !important;
  text-align: left;
  pointer-events: none;
}

body.project-detail-page :is(.project-photo-block > .project-photo-caption, .project-shot:not(.plan-card) > figcaption) :is(strong, small, span),
body.project-detail-page :is(.kp-photo-media, .photo-media, .shot-media) > :is(.kp-photo-title, .photo-title, .process-caption) :is(strong, small, span),
body.project-detail-page :is(.project-natural-photo, .gallery-item):not(.project-reference-card):not(.plan-card):not(.scope-plan):not(.kp-video-card) > figcaption :is(strong, small, span) {
  color: #fff !important;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.48) !important;
}

/* Plans and technical reference images keep their explanatory captions below. */
body.project-detail-page .project-photo-block.project-reference-media > .project-photo-caption,
body.project-detail-page :is(.plan-card, .scope-plan) .project-photo-block > .project-photo-caption,
body.project-detail-page .project-reference-card > figcaption {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0.65rem 0.75rem 0.75rem !important;
  background: #fff !important;
  color: var(--project-ink, #07211e) !important;
  text-shadow: none !important;
  pointer-events: auto;
}

body.project-detail-page .project-photo-block.project-reference-media > .project-photo-caption :is(strong, small, span),
body.project-detail-page :is(.plan-card, .scope-plan) .project-photo-block > .project-photo-caption :is(strong, small, span),
body.project-detail-page .project-reference-card > figcaption :is(strong, small, span) {
  color: var(--project-ink, #07211e) !important;
  text-shadow: none !important;
}

body.project-detail-page .luxe-slideshow--carousel .luxe-slide:not(.is-active) .project-photo-caption {
  opacity: 0 !important;
}

body.project-detail-page .luxe-slideshow--carousel .project-shot.luxe-slide:not(.is-active) > figcaption {
  opacity: 0 !important;
}

body.project-detail-page .luxe-slideshow--carousel .luxe-slide.is-active .project-photo-caption {
  opacity: 1 !important;
}

body.project-detail-page .luxe-slideshow--carousel .project-shot.luxe-slide.is-active > figcaption {
  opacity: 1 !important;
}

body.project-detail-page .luxe-slideshow--carousel,
body.project-detail-page .luxe-slideshow--carousel.luxe-slideshow--before {
  --bs-img-h: clamp(320px, 42vw, 520px);
  --bs-img-w: calc(var(--bs-img-h) * 1.4);
  --bs-media-w: var(--bs-img-w);
  --bs-gap: clamp(0.75rem, 1.25vw, 1rem);
}

body.project-detail-page .kp-video-card {
  overflow: hidden;
  border: 1px solid var(--project-polish-line) !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: var(--project-polish-shadow-soft) !important;
}

body.project-detail-page .kp-video-card figcaption,
body.project-detail-page .kp-video-card figcaption :is(strong, p) {
  color: var(--project-ink, #07211e) !important;
  text-shadow: none !important;
}

body.project-detail-page .kp-video-card figcaption span {
  color: #416a64 !important;
}

body.project-detail-page :is(.kp-cta, .project-cta) {
  padding: clamp(2rem, 4.5vw, 3.5rem) 0 !important;
  background: var(--project-ink, #07211e) !important;
  color: #fff !important;
}

body.project-detail-page :is(.kp-cta, .project-cta) h2 {
  margin-top: 0.35rem;
  color: #fff !important;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

body.project-detail-page :is(.kp-cta, .project-cta) p {
  max-width: none;
  margin: 0.7rem auto 0;
  color: rgba(255, 255, 255, 0.78) !important;
}

/* Some templates wrap their final CTA in a legacy white card. Remove that
   extra layer so the CTA matches the clean Bellevue treatment. */
/* Breathing room between the CTA copy and its button on every project page. */
body.project-detail-page :is(.kp-cta, .project-cta) .btn {
  margin-top: 1.75rem !important;
  display: inline-block;
}

body.project-detail-page :is(.kp-cta, .project-cta) .kp-kicker {
  margin-bottom: 0.9rem !important;
}

body.project-detail-page :is(.kp-cta, .project-cta) h2 {
  margin-bottom: 0.9rem !important;
}

body.project-detail-page :is(.kp-cta, .project-cta) p:last-of-type {
  margin-bottom: 0 !important;
}

body.project-detail-page :is(.kp-cta, .project-cta) .project-end-note {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.project-detail-page :is(.kp-cta, .project-cta) .project-end-note :is(h2, p) {
  color: #fff !important;
}

body.project-detail-page :is(.kp-cta, .project-cta) .project-end-note .section-kicker {
  color: #9fc4ad !important;
}

body.project-detail-page .related-projects {
  padding: clamp(2.75rem, 4.5vw, 4rem) 0 !important;
  /* Match the "From the Former Kitchen to the New Plan" soft green-white. */
  background: #eff6f4 !important;
}

body.project-detail-page .related-projects::before,
body.project-detail-page .related-projects::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

body.project-detail-page .related-projects .section-header {
  max-width: 760px;
  margin-bottom: clamp(1.25rem, 2.4vw, 1.8rem);
}

body.project-detail-page .related-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(0.75rem, 1.35vw, 1rem) !important;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
}

body.project-detail-page .related-grid .project-card {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 4 / 3;
  align-self: stretch !important;
  overflow: hidden !important;
  border: 1px solid rgba(18, 50, 45, 0.1) !important;
  border-radius: 6px !important;
  background: #dfe8e5 !important;
  box-shadow: var(--project-polish-shadow) !important;
  transform: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body.project-detail-page .related-grid .project-card:hover {
  box-shadow: 0 18px 38px rgba(15, 43, 38, 0.16) !important;
  transform: translateY(-2px);
}

body.project-detail-page .related-grid .project-photo-block,
body.project-detail-page .related-grid .project-card-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
}

body.project-detail-page .related-grid .project-card-img img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  transform: scale(1) !important;
  transition: transform 0.45s ease !important;
}

body.project-detail-page .related-grid .project-card:hover .project-card-img img {
  transform: scale(1.025) !important;
}

body.project-detail-page .related-grid .project-card-overlay,
body.project-detail-page .related-grid .project-card-overlay.project-photo-caption {
  position: absolute !important;
  z-index: 4 !important;
  inset: 0 !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.85rem !important;
  background: linear-gradient(to bottom, rgba(7, 33, 30, 0.48) 0%, rgba(7, 33, 30, 0) 34%, rgba(7, 33, 30, 0.08) 54%, rgba(7, 33, 30, 0.84) 100%) !important;
  opacity: 1 !important;
  pointer-events: none !important;
}

body.project-detail-page .related-grid .project-tag {
  display: inline-block;
  padding: 0.35rem 0.65rem !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(7, 33, 30, 0.68) !important;
  color: #fff !important;
  font-family: var(--font-body, "Inter", Arial, sans-serif) !important;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.4) !important;
}

body.project-detail-page .related-grid .project-card-body {
  position: absolute !important;
  z-index: 6;
  inset: auto 0 0 0;
  padding: clamp(1rem, 2vw, 1.35rem) !important;
  background: transparent !important;
  pointer-events: none;
}

body.project-detail-page .related-grid .project-location {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

body.project-detail-page .related-grid .project-title {
  max-width: 90%;
  margin: 0;
  color: #fff !important;
  font-size: clamp(1.2rem, 2.25vw, 1.7rem);
  line-height: 1.08;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.52);
}

body.project-detail-page .related-grid .project-card-body .btn {
  display: none !important;
}

@media (max-width: 1050px) {
  body.project-detail-page :is(.overview-grid, .scope-layout) {
    grid-template-columns: 1fr;
  }

  body.project-detail-page :is(.plan-card, .scope-plan) {
    position: static;
    max-width: 680px;
  }
}

@media (max-width: 900px) {
  body.project-detail-page :is(.kp-step, .process-step),
  body.project-detail-page :is(.kp-step, .process-step):nth-child(even),
  body.project-detail-page :is(.kp-process-list, .process-list, .process-timeline) > :is(.kp-step, .process-step),
  body.project-detail-page :is(.kp-process-list, .process-list, .process-timeline) > :is(.kp-step, .process-step):nth-child(even) {
    grid-template-columns: 1fr !important;
    min-height: 0;
  }

  body.project-detail-page :is(.kp-step, .process-step) > .project-photo-block,
  body.project-detail-page :is(.kp-step, .process-step):nth-child(even) > .project-photo-block {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 1;
  }

  body.project-detail-page :is(.kp-step, .process-step) :is(.kp-step-photo, .process-photo, .process-step-media),
  body.project-detail-page :is(.kp-step, .process-step):nth-child(even) :is(.kp-step-photo, .process-photo, .process-step-media) {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
    order: 1;
  }

  body.project-detail-page :is(.kp-step, .process-step) :is(.kp-step-copy, .process-copy, .process-step-copy),
  body.project-detail-page :is(.kp-step, .process-step):nth-child(even) :is(.kp-step-copy, .process-copy, .process-step-copy) {
    grid-column: 1 !important;
    grid-row: 2 !important;
    order: 2;
  }
}

@media (max-width: 780px) {
  body.project-detail-page {
    --project-polish-gutter: 25.392px;
  }

  body.project-detail-page :is(.kp-section, .project-section) {
    padding: 1.9rem 0 !important;
  }

  body.project-detail-page :is(.kp-section-head, .project-section-head) {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 0.85rem !important;
  }

  body.project-detail-page :is(.kp-section-num, .project-section-num) {
    width: 34px !important;
    height: 34px !important;
  }

  body.project-detail-page :is(.kp-goals, .scope-grid, .scope-groups, .photo-grid, .kp-compare, .comparison-grid, .project-ba-grid, .kp-video-grid, .kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature) {
    grid-template-columns: 1fr !important;
  }

  body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature)
    :is(.kp-photo-media, .photo-media, .shot-media) {
    height: clamp(235px, 64vw, 350px) !important;
  }

  body.project-detail-page :is(.kp-before-copy, .kp-snapshot-copy, .kp-editorial-copy, .kp-reveal-copy, .reveal-copy, .reveal-lead-copy, .detail-copy, .detail-feature-copy, .kp-step-copy, .process-copy, .process-step-copy) {
    padding: 1rem 0.25rem !important;
  }

  body.project-detail-page .luxe-slideshow--carousel,
  body.project-detail-page .luxe-slideshow--carousel.luxe-slideshow--before {
    --bs-img-h: clamp(280px, 56vw, 480px);
    --bs-img-w: calc(var(--bs-img-h) * 1.4);
    --bs-media-w: var(--bs-img-w);
    --bs-gap: 0.65rem;
  }

  body.project-detail-page :is(.kp-hero, .project-hero)::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.42) 58%, rgba(0, 0, 0, 0.12) 100%);
  }

  body.project-detail-page .related-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Full-wrap editorial case-study treatment for the projects that follow the
   blue-and-white kitchen in the portfolio. The marker keeps this pass scoped
   to those pages while preserving the three earlier project layouts. */
body.project-detail-page.project-story-page {
  --project-story-gutter: calc(clamp(3rem, 9vw, 9rem) * 1.75);
  --project-polish-gutter: var(--project-story-gutter);
  --kp-space: clamp(2.25rem, 4vw, 4rem);
}

body.project-detail-page.project-story-page :is(
  .kp-hero-content,
  .project-hero-content,
  .kp-breadcrumb > .container,
  .project-breadcrumb > .container,
  .kp-jump-inner,
  .project-jump-inner,
  .kp-section > .container,
  .project-section > .container,
  .kp-cta > .container,
  .project-cta > .container,
  .related-projects > .container,
  .page-end-bar > .container,
  .footer-main,
  .footer-bottom-inner
) {
  width: 100% !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-left: var(--project-story-gutter) !important;
  padding-right: var(--project-story-gutter) !important;
}

body.project-detail-page.project-story-page :is(
  .kp-section-head,
  .project-section-head,
  .kp-goals,
  .kp-chapter,
  .kp-before-gallery,
  .kp-process-list,
  .kp-compare,
  .kp-video-grid,
  .kp-gallery,
  .related-grid
) {
  width: 100% !important;
  max-width: none !important;
}

body.project-detail-page.project-story-page :is(h1, h2, h3, h4) {
  max-width: 100%;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

body.project-detail-page.project-story-page main :is(p, li, figcaption, .kp-source-label, .kp-process-title-overlay) {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

body.project-detail-page.project-story-page main p {
  text-wrap: pretty;
  widows: 2;
  orphans: 2;
}

body.project-detail-page.project-story-page .kp-hero-summary {
  max-width: 75ch;
}

body.project-detail-page.project-story-page .kp-section-head p:last-child {
  max-width: 90ch;
}

body.project-detail-page.project-story-page .kp-chapter-head {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.45rem;
  max-width: 90ch;
  margin-bottom: clamp(0.9rem, 1.5vw, 1.25rem);
}

body.project-detail-page.project-story-page .kp-chapter-head h3 {
  max-width: 32ch;
}

body.project-detail-page.project-story-page .kp-chapter-head p {
  max-width: 86ch;
  margin: 0;
  font-size: clamp(0.88rem, 1vw, 0.96rem);
  line-height: 1.7;
}

body.project-detail-page.project-story-page .kp-process-list .kp-step {
  min-height: 0 !important;
}

body.project-detail-page.project-story-page .kp-process-list .kp-step-photo {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden !important;
  background: #e8e5de;
}

body.project-detail-page.project-story-page .kp-process-list .kp-step-photo img {
  position: static !important;
  inset: auto !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3;
  object-fit: cover !important;
}

body.project-detail-page.project-story-page .kp-process-title-overlay {
  position: absolute !important;
  z-index: 5;
  inset: auto 0 0 0 !important;
  display: block;
  width: auto !important;
  margin: 0 !important;
  padding: 2.5rem 0.9rem 0.8rem !important;
  background: linear-gradient(to top, rgba(16, 22, 20, 0.88) 0%, rgba(16, 22, 20, 0.4) 58%, rgba(16, 22, 20, 0) 100%) !important;
  color: #fff !important;
  font-family: var(--font-heading, "DM Serif Display", Georgia, serif);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.48);
  pointer-events: none;
}

body.project-detail-page.project-story-page .kp-step-copy {
  display: grid;
  align-content: center;
  gap: 0.7rem;
  padding: clamp(1.1rem, 2vw, 1.75rem) !important;
}

body.project-detail-page.project-story-page .kp-step-copy :is(.kp-source-label, h4, p) {
  margin: 0 !important;
}

body.project-detail-page.project-story-page .kp-step-copy p {
  max-width: 75ch;
}

body.project-detail-page.project-story-page .related-grid {
  max-width: none !important;
}

@media (max-width: 900px) {
  body.project-detail-page.project-story-page .kp-process-list .kp-step-photo {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.project-detail-page.project-story-page .kp-process-list .kp-step-copy {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
}

@media (max-width: 520px) {
  body.project-detail-page :is(.kp-chapter-head, .chapter-head) {
    display: block;
  }

  body.project-detail-page :is(.kp-chapter-head, .chapter-head) p {
    margin-top: 0.4rem;
  }
}

/* Final project-page alignment pass: keep the established templates while
   giving every paired photo/text row the same calm, compact proportions. */
body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature) {
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

@media (min-width: 781px) {
  body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature) {
    height: clamp(320px, 27vw, 390px) !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    align-items: stretch !important;
  }

  body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature)
    > :is(figure, .gallery-item, .kp-photo, .project-photo, .project-shot, .project-natural-photo, .project-photo-block, .project-natural-media) {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
    align-self: stretch !important;
    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature)
    .project-photo-block {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid var(--project-polish-line) !important;
    border-radius: 6px !important;
    background: transparent !important;
    box-shadow: var(--project-polish-shadow-soft) !important;
  }

  body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature)
    :is(.kp-photo-media, .photo-media, .shot-media, .project-natural-media) {
    width: 100% !important;
    max-width: none !important;
    min-height: clamp(320px, 27vw, 390px) !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 6px !important;
    box-shadow: var(--project-polish-shadow-soft) !important;
  }

  body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature)
    .project-photo-block :is(.kp-photo-media, .photo-media, .shot-media) {
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature)
    :is(.kp-photo-media, .photo-media, .shot-media, .project-natural-media) img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Image classification adds high-specificity portrait/landscape rules after
     load. In paired rows, the shared row height must remain authoritative so a
     portrait cannot stretch beyond the adjacent copy. */
  html body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature)
    > :is(.project-shot.gallery-item, .project-photo.gallery-item, .kp-photo.gallery-item)
    :is(.kp-photo-media, .photo-media, .shot-media) {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
  }

  html body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature)
    > :is(.project-shot.gallery-item, .project-photo.gallery-item, .kp-photo.gallery-item)
    :is(.kp-photo-media, .photo-media, .shot-media) img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    object-fit: cover !important;
  }

  body.project-detail-page :is(.kp-before-copy, .kp-snapshot-copy, .kp-editorial-copy, .kp-reveal-copy, .reveal-copy, .reveal-lead-copy, .detail-copy, .detail-feature-copy) {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
  }

  body.project-detail-page.bellevue-full-home-page :is(.lower-bath-before, .lower-bath-reveal) {
    height: clamp(320px, 27vw, 390px) !important;
    min-height: 0 !important;
    align-items: stretch !important;
  }

  body.project-detail-page.bellevue-full-home-page :is(.lower-bath-before, .lower-bath-reveal)
    > :is(figure, .gallery-item, .project-photo, .project-photo-block, .detail-copy, .reveal-copy) {
    height: 100% !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }
}

/* Bellevue's construction-sequence rows use a dedicated media class. Their
   titles follow the same white-on-photo treatment as every gallery caption. */
body.project-detail-page .kitchen-flow-media {
  position: relative !important;
  overflow: hidden !important;
}

body.project-detail-page .kitchen-flow-media > .photo-title {
  position: absolute !important;
  z-index: 5 !important;
  inset: auto 0 0 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 2.6rem 0.9rem 0.8rem !important;
  background: linear-gradient(to top, rgba(16, 22, 20, 0.88) 0%, rgba(16, 22, 20, 0.4) 56%, rgba(16, 22, 20, 0) 100%) !important;
  color: #fff !important;
  text-align: left !important;
  pointer-events: none;
}

body.project-detail-page .kitchen-flow-media > .photo-title :is(strong, small, span) {
  color: #fff !important;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.48) !important;
}

/* This is a photo of the proposed open plan, not a document caption. Keep its
   title on the image like every other project photograph. */
body.project-detail-page.bellevue-full-home-page #overview .scope-plan .photo-media {
  position: relative !important;
  overflow: hidden !important;
}

body.project-detail-page.bellevue-full-home-page #overview .scope-plan .photo-media > .photo-title,
body.project-detail-page.bellevue-full-home-page #overview .scope-plan .project-reference-media > .project-photo-caption {
  position: absolute !important;
  z-index: 5 !important;
  inset: auto 0 0 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 2.6rem 0.9rem 0.8rem !important;
  border: 0 !important;
  background: linear-gradient(to top, rgba(16, 22, 20, 0.88) 0%, rgba(16, 22, 20, 0.4) 56%, rgba(16, 22, 20, 0) 100%) !important;
  color: #fff !important;
  text-align: left !important;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.48) !important;
  pointer-events: none;
}

body.project-detail-page.bellevue-full-home-page #overview .scope-plan .project-reference-media > .project-photo-caption :is(strong, small, span) {
  color: #fff !important;
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.48) !important;
}

/* Consistent, usable controls on touch screens. */
body.project-detail-page .room-filter--slim[data-gallery-filter] .room-filter-btn,
body.project-detail-page .room-filter .room-filter-btn,
body.project-detail-page :is(.kp-ss-btn, .luxe-slideshow-prev, .luxe-slideshow-next, .carousel-prev, .carousel-next) {
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 780px) {
  body.project-detail-page :is(.kp-before-layout, .kp-snapshot, .kp-reveal-lead, .reveal-lead, .detail-feature) {
    min-height: 0 !important;
  }

  body.project-detail-page :is(.kp-before-copy, .kp-snapshot-copy, .kp-editorial-copy, .kp-reveal-copy, .reveal-copy, .reveal-lead-copy, .detail-copy, .detail-feature-copy) {
    min-height: 0;
  }
}
