.gallery-page { background: #faf8f3; }
.gallery-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.gallery-breadcrumb { display: flex; gap: 10px; align-items: center; padding: 24px 0; color: #596371; font-size: 12px; }
.gallery-breadcrumb a { color: #354155; text-underline-offset: 4px; }
.gallery-intro { padding: 30px 0 48px; max-width: 880px; }
.gallery-eyebrow { margin-bottom: 16px; color: #815b20; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.gallery-page h1 { max-width: 870px; margin-bottom: 24px; font: 400 clamp(40px, 4.6vw, 64px)/1.04 'DM Serif Display', serif; letter-spacing: -.025em; }
.gallery-lede { max-width: 670px; color: #4a5568; font-size: 17px; line-height: 1.8; }
.gallery-actions { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.gallery-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 24px; border: 1px solid #0b1d3a; border-radius: 6px; background: #0b1d3a; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; }
.gallery-btn:hover { background: #1b3558; }
.gallery-text-link { color: #0b1d3a; font-size: 14px; font-weight: 700; text-underline-offset: 5px; }
.gallery-jump-links { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 24px 0; border-top: 1px solid #deddd5; border-bottom: 1px solid #deddd5; }
.gallery-jump-links a { color: #354155; font-size: 13px; font-weight: 600; text-underline-offset: 5px; }
.gallery-section { padding: 64px 0; }
.gallery-heading { max-width: 700px; margin-bottom: 28px; }
.gallery-page h2 { margin-bottom: 16px; font: 400 clamp(30px, 3.4vw, 46px)/1.12 'DM Serif Display', serif; letter-spacing: -.018em; }
.gallery-copy { color: #4a5568; font-size: 15px; line-height: 1.85; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; align-items: start; }
.gallery-card { min-width: 0; margin: 0; padding: 14px; border: 1px solid #e5e1d8; border-radius: 8px; background: #fff; }
.gallery-image-link { display: block; color: #0b1d3a; text-decoration: none; border-radius: 4px; }
.gallery-page .gallery-card img { display: block; width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 4px; }
.gallery-card figcaption { padding: 17px 6px 7px; color: #596371; font-size: 13px; line-height: 1.75; }
.gallery-card figcaption strong { display: block; margin-bottom: 5px; color: #0b1d3a; font-size: 16px; font-weight: 600; }
.gallery-detail-link { display: inline-block; margin-top: 10px; color: #6e4c19; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.gallery-project-story { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; padding: 36px; border-radius: 8px; background: #0b1d3a; color: #fff; }
.gallery-project-story img { display: block; width: 100%; height: auto; border-radius: 5px; }
.gallery-project-story .gallery-eyebrow { color: #e4b06a; }
.gallery-project-story h2 { color: #fff; font-size: clamp(30px, 3vw, 40px); }
.gallery-project-story .gallery-copy { color: #d4dce6; }
.gallery-project-story .gallery-text-link { color: #f2c983; }
.gallery-next { padding: 76px 24px 88px; max-width: 740px; margin: 0 auto; text-align: center; }
.gallery-next .gallery-actions { justify-content: center; }
.gallery-next .gallery-copy { font-size: 16px; }
.gallery-page a:focus-visible { outline: 3px solid #a8792f; outline-offset: 5px; }
.gallery-page section[id] { scroll-margin-top: 105px; }
.gallery-mobile-actions { display: none; }
@media (max-width: 900px) {
  .gallery-project-story { gap: 28px; padding: 26px; }
}
@media (max-width: 680px) {
  .gallery-page { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .gallery-wrap { width: min(560px, calc(100% - 36px)); }
  .gallery-breadcrumb { padding: 18px 0; font-size: 11px; }
  .gallery-intro { padding: 14px 0 32px; }
  .gallery-page h1 { margin-bottom: 20px; font-size: clamp(36px, 10vw, 44px); }
  .gallery-lede { font-size: 15px; }
  .gallery-eyebrow { font-size: 11px; }
  .gallery-actions { gap: 20px; margin-top: 24px; }
  .gallery-jump-links { gap: 16px 24px; padding: 22px 0; }
  .gallery-section { padding: 46px 0; }
  .gallery-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery-card { padding: 10px; }
  .gallery-card figcaption { padding: 14px 6px 6px; }
  .gallery-project-story { grid-template-columns: 1fr; gap: 24px; padding: 22px; }
  .gallery-next { padding: 50px 18px 58px; }
  .gallery-mobile-actions { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset: auto 0 0; z-index: 900; min-height: 64px; padding-bottom: env(safe-area-inset-bottom); background: #0b1d3a; }
  .gallery-mobile-actions a { display: flex; align-items: center; justify-content: center; padding: 20px 8px; color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; }
  .gallery-mobile-actions a:last-child { background: #c18b35; color: #0b1d3a; }
}
