/* Real project photography: preserve context, make the next step clear. */
.project button { position: relative; background: #e6edef; }
.project button:hover img { transform: none; }
.photo-open { position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 4px; color: #fff; background: #123246ed; font-size: 13px; font-weight: 600; line-height: 1.5; transition: background 160ms ease; }
.project button:hover .photo-open, .project button:focus-visible .photo-open { background: #176a50; }
.project-category { display: block; color: var(--green); font-size: 13px; font-weight: 650; letter-spacing: .035em; margin-bottom: 8px; }
.project figcaption strong { line-height: 1.4; margin-bottom: 9px; }
.project-description { font-size: 16px; line-height: 1.5; margin: 0 0 10px; }
.project-inquiry { color: var(--green); font-size: 15px; }

.project-spotlights { display: grid; gap: 32px; }
.project-spotlight { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.project-spotlight:nth-child(even) { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); }
.project-spotlight:nth-child(even) .spotlight-image { order: 2; }
.spotlight-image { min-width: 0; height: 100%; background: #dfe9ec; }
.spotlight-image figcaption { display: none; }
.refined-homepage .spotlight-image .project button { border: 0; border-radius: 0; background: #dfe9ec; }
.refined-homepage .spotlight-image .project img { width: 100%; height: 430px; max-height: none; object-fit: contain; }
.spotlight-copy { padding: 40px 48px; }
.refined-homepage .spotlight-copy .eyeline { color: var(--green); }
.refined-homepage .spotlight-copy h3 { font-size: clamp(28px,2.6vw,37px); line-height: 1.18; max-width: 16ch; }
.spotlight-copy > p:not(.eyeline) { color: var(--muted); margin-bottom: 28px; }
.collection-link { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 30px; padding-top: 28px; border-top: 1px solid #bacdd4; }
.collection-link p { color: var(--muted); max-width: 640px; font-size: 17px; margin: 0; }
.collection-link strong { display: block; color: var(--ink); }
.collection-link .button { flex-shrink: 0; }

.gallery-section { background: #fcfdfd; padding-top: 56px; }
.gallery-page .page-hero { padding-block: 42px; }
.gallery-intro { display: flex; justify-content: space-between; gap: 30px; align-items: start; margin-bottom: 30px; }
.gallery-intro p { max-width: 640px; color: var(--muted); }
.gallery-filters { gap: 8px; }
.gallery-filters button { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 15px; }
.gallery-filters button span { display: inline-grid; place-items: center; min-width: 23px; height: 23px; border-radius: 50%; background: #eef3f4; color: #45606d; font-size: 12px; }
.gallery-filters button[aria-pressed=true] span { color: white; background: #ffffff24; }
.gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px 28px; align-items: start; }
.gallery-grid .project:first-child { grid-column: auto; }
.gallery-grid .project button { border: 1px solid var(--line); border-radius: 6px; }
.gallery-grid .project img, .gallery-grid .project:first-child img { height: 320px; width: 100%; object-fit: contain; }
.gallery-grid .project figcaption { margin-top: 18px; }
.gallery-more { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.gallery-more p { margin: 0; }
.project-trio { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.project-trio .project img { width: 100%; height: 310px; object-fit: contain; }
.service-detail img, .service-card img { object-fit: contain; background: #eaf0f2; }

.lightbox { padding: 18px; width: min(1100px,96vw); max-height: 94dvh; overflow-y: auto; }
.lightbox header { padding: 0 0 14px; font-family: Manrope,sans-serif; font-size: 17px; line-height: 1.4; }
.lightbox header button { flex-shrink: 0; display: grid; place-items: center; }
.lightbox > img { height: min(58vh,650px); max-height: none; width: 100%; object-fit: contain; background: #0b2130; }
.lightbox .lightbox-detail p { color: #d7e5eb; font-size: 16px; line-height: 1.5; padding: 16px 0 0; margin-bottom: 18px; max-width: 85ch; }
.lightbox-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.photo-navigation { display: flex; align-items: center; gap: 16px; }
.photo-navigation span { font-size: 14px; min-width: 96px; text-align: center; font-variant-numeric: tabular-nums; }
.photo-navigation button { font-size: 22px; }
.lightbox button:disabled { opacity: .4; cursor: default; }
.lightbox .button { background: #f2c355; color: #123246; }
.lightbox .button:hover { background: #ffdc88; color: #123246; }
.lightbox :focus-visible { outline-color: #f2c355; }

@media(max-width:1000px) {
  .spotlight-copy { padding: 30px; }
  .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .project-trio { gap: 20px; }
  .project-trio .project img { height: 250px; }
}
@media(max-width:720px) {
  .project-spotlight, .project-spotlight:nth-child(even) { grid-template-columns: 1fr; }
  .project-spotlight:nth-child(even) .spotlight-image { order: 0; }
  .refined-homepage .spotlight-image .project img { height: 370px; }
  .refined-homepage .spotlight-copy h3 { max-width: 22ch; font-size: 30px; }
  .collection-link { flex-direction: column; align-items: flex-start; gap: 22px; }
  .project-trio { grid-template-columns: 1fr; gap: 34px; }
  .project-trio .project img { height: 360px; }
  .gallery-intro { flex-direction: column; gap: 12px; }
}
@media(max-width:560px) {
  .gallery-page .page-hero { padding-block: 28px; }
  .gallery-page .page-hero h1 { font-size: 36px; }
  .gallery-page .page-hero .lead { font-size: 19px; }
  .gallery-page .breadcrumbs { margin-bottom: 18px; }
  .gallery-section { padding-top: 32px; }
  .gallery-intro { margin-bottom: 22px; }
  .gallery-intro p { font-size: 16px; }
  .project-spotlights { gap: 24px; }
  .spotlight-copy { padding: 26px 22px 28px; }
  .spotlight-copy .button { width: 100%; }
  .refined-homepage .spotlight-image .project img { height: 340px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 34px; }
  .gallery-grid .project img, .gallery-grid .project:first-child img { height: 340px; }
  .gallery-filters { gap: 8px 6px; }
  .gallery-filters button { padding: 9px 12px; gap: 7px; font-size: 14px; }
  .lightbox { padding: 12px; }
  .lightbox header { font-size: 15px; }
  .lightbox > img { height: 43dvh; }
  .lightbox .lightbox-detail p { font-size: 14px; }
  .lightbox-actions { flex-direction: column; gap: 15px; }
  .lightbox-actions .button { width: 100%; font-size: 15px; }
  .photo-navigation { justify-content: center; }
}
@media(prefers-reduced-motion:reduce) { .photo-open { transition: none; } }
