body.photo-viewer-open { overflow: hidden; }
.photo-lightbox { position: fixed; inset: 0; margin: auto; padding: 16px; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; background: #15181bf5; color: #fff; }
.photo-lightbox[open] { display: grid; grid-template-rows: 48px minmax(0, 1fr) 56px; gap: 12px; }
.photo-lightbox::backdrop { background: #15181b; }
.photo-lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.photo-lightbox__count { font-size: 14px; padding-left: 12px; }
.photo-lightbox button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff66; border-radius: 3px; background: #272d32; color: #fff; font: 28px/1 Arial, sans-serif; cursor: pointer; }
.photo-lightbox button:hover { background: #be1622; }
.photo-lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.photo-lightbox__stage { display: flex; align-items: center; justify-content: center; min-height: 0; }
.photo-lightbox__stage img { width: 100%; height: 100%; object-fit: contain; }
.photo-lightbox__stage img[hidden], .photo-lightbox__error[hidden] { display: none; }
.photo-lightbox__error { color: #fff; text-align: center; }
.photo-lightbox__controls { display: flex; justify-content: center; align-items: center; gap: 16px; }
/* Existing GE brand retained. Design variance 5, motion 2, density 3.
   Native CSS, light theme, 6px media / 3px button radii. */
.project-detail { padding-bottom: 48px; }
.detail-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 28px 0; color: var(--slate); font-size: 12px; }
.detail-breadcrumb span[aria-current] { color: var(--ink); }
.detail-breadcrumb a:hover { color: var(--red); }
.detail-hero { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; padding: 12px 0 56px; }
.detail-hero-copy { padding: 24px 0; }
.detail-hero .eyebrow { color: var(--red); font-size: 11px; letter-spacing: .16em; }
.detail-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 4.8vw, 70px); letter-spacing: -.045em; line-height: 1.04; margin: 22px 0; max-width: 13ch; }
.detail-hero-copy > p { margin: 0 0 32px; color: var(--slate); font-size: 17px; }
/* A project name given in full, as the company writes it, needs a smaller
   size than a two- or three-word title to stay a readable block. */
.detail-hero--long h1 { font-size: clamp(30px, 3.2vw, 46px); max-width: 24ch; line-height: 1.12; }
.detail-button { display: inline-flex; align-items: center; gap: 24px; padding: 14px 20px; background: var(--red); color: #fff; border-radius: var(--r-btn); font-size: 13px; font-weight: 600; white-space: nowrap; }
.detail-button:hover { background: var(--red-600); color: #fff; }
.detail-cover figure, .detail-gallery figure { margin: 0; min-width: 0; }
.detail-cover a, .detail-gallery a { display: block; border-radius: var(--r-card); overflow: hidden; cursor: zoom-in; background: var(--bg-alt); }
.detail-cover img, .detail-gallery img { display: block; width: 100%; height: auto; }
.detail-overview { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(40px, 9vw, 144px); border-top: 1px solid var(--line); padding: 64px 0 72px; }
.detail-overview h2 { font-family: var(--font-display); font-size: 30px; letter-spacing: -.025em; margin: 0 0 24px; }
.detail-summary p { color: var(--slate); font-size: 16px; line-height: 1.8; margin: 0 0 20px; max-width: 68ch; }
.detail-summary p:last-child { margin-bottom: 0; }
.detail-summary .detail-reference { font-size: 13px; overflow-wrap: anywhere; }
.detail-facts { margin: 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--red); align-self: start; }
.detail-facts > div + div { margin-top: 24px; }
.detail-facts dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.detail-facts dd { color: var(--ink); font-size: 16px; font-weight: 500; margin: 0; }
.detail-photos { padding-top: 48px; border-top: 1px solid var(--line); scroll-margin-top: 108px; }
.detail-gallery-head { margin-bottom: 32px; }
.detail-gallery-head h2 { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.035em; margin: 0 0 10px; }
.detail-gallery-head p { color: var(--slate); font-size: 14px; margin: 0; }
.detail-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.detail-gallery--odd figure:last-child { grid-column: 1 / -1; width: 85%; justify-self: center; margin-top: 16px; }
/* Photographs taken from the company profile come in every shape. Cropped to
   one ratio in the grid so the rows sit level; the lightbox shows them whole. */
.detail-gallery--crop img { aspect-ratio: 4 / 3; object-fit: cover; }
.detail-gallery figcaption { display: flex; gap: 12px; align-items: baseline; margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--ink); }
.detail-gallery figcaption span { color: var(--red); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.detail-next { display: grid; grid-template-columns: 200px 1fr auto; gap: 40px; align-items: center; background: var(--bg-alt); border-radius: var(--r-card); margin-top: 80px; padding: 32px; }
.detail-next img { width: 100%; height: auto; border-radius: var(--r-card); }
.detail-next span { font-size: 13px; color: var(--slate); }
.detail-next h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); line-height: 1.15; letter-spacing: -.025em; margin: 12px 0; }
.detail-next p { color: var(--slate); margin: 0; font-size: 14px; }
.detail-next > i { font-size: 32px; color: var(--red); }
.detail-next:hover h2 { color: var(--red); }
.detail-return { padding-top: 32px; font-size: 14px; }
.detail-return a { display: inline-flex; gap: 12px; align-items: center; }
.detail-return a:hover { color: var(--red); }
.detail-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--slate); font-size: 12px; }
.project-detail a:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .detail-cover img, .detail-gallery img { transition: transform .4s ease; }
  .detail-cover a:hover img, .detail-gallery a:hover img { transform: scale(1.015); }
  .detail-button:active { transform: translateY(1px); }
}
@media (max-width: 767px) {
  .detail-breadcrumb { padding: 22px 0; gap: 8px; font-size: 11px; }
  .detail-hero { grid-template-columns: 1fr; gap: 20px; padding: 0 0 36px; }
  .detail-hero-copy { padding: 16px 0 8px; }
  .detail-hero h1 { font-size: clamp(38px, 9vw, 58px); max-width: 15ch; margin: 16px 0; }
  .detail-hero-copy > p { margin-bottom: 24px; }
  .detail-overview { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
  .detail-facts { padding-left: 20px; }
  .detail-photos { padding-top: 36px; }
  .detail-gallery { grid-template-columns: 1fr; gap: 20px; }
  .detail-gallery--odd figure:last-child { grid-column: auto; width: 100%; margin-top: 0; }
  .detail-next { grid-template-columns: 1fr auto; gap: 20px; padding: 22px; margin-top: 48px; }
  .detail-next img { grid-column: 1 / -1; }
  .detail-next h2 { font-size: 28px; }
}
