/* Gallery-only visual system. The shared header and footer retain site styles. */
.gallery-page {
  --gallery-ink: #173454;
  --gallery-muted: #587087;
  --gallery-blue: #0284c7;
  --gallery-teal: #14b8a6;
  --gallery-line: #dce8ef;
  color: var(--gallery-ink);
}
.gallery-page h1,
.gallery-page h2,
.gallery-page h3 { color: var(--gallery-ink); }
.gallery-page p { color: var(--gallery-muted); line-height: 1.7; }
.gallery-page section { scroll-margin-top: 100px; }
.gallery-page .gallery-container { width: min(1180px,100%); margin-inline: auto; padding-inline: 24px; }
body:not(.admin-page) main.gallery-page > section.gallery-hero { padding: 54px 0 62px !important; }
body:not(.admin-page) main.gallery-page > section.gallery-explorer { padding: 78px 0 84px !important; }
body:not(.admin-page) main.gallery-page > section.gallery-technology { padding: 74px 0 !important; }
body:not(.admin-page) main.gallery-page > section.gallery-results { padding: 78px 0 84px !important; }
body:not(.admin-page) main.gallery-page > section.gallery-visit { padding: 68px 0 !important; }
.gallery-page .gallery-eyebrow { display: inline-block; color: #087bb3; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; }
.gallery-page .gallery-hero { padding: 54px 0 62px; }
.gallery-page .gallery-hero-grid { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(36px,6vw,76px); align-items: center; }
.gallery-page .gallery-hero h1 { margin: 12px 0 16px; max-width: 560px; font-size: clamp(38px,5vw,58px); line-height: 1.08; letter-spacing: -1.7px; }
.gallery-page .gallery-hero-copy p { max-width: 510px; margin-bottom: 24px; font-size: 16px; }
.gallery-page .gallery-hero .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; }
.gallery-page .gallery-hero-photo { position: relative; overflow: hidden; aspect-ratio: 1.48; margin: 0; border: 1px solid #d7e7ee; border-radius: 24px; background: #eaf3f7; box-shadow: 0 20px 54px rgba(23,52,84,.12); }
.gallery-page .gallery-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-page .gallery-hero-photo figcaption { position: absolute; right: 16px; bottom: 16px; left: 16px; width: fit-content; max-width: calc(100% - 32px); padding: 9px 13px; border: 1px solid rgba(220,232,239,.9); border-radius: 12px; background: rgba(255,255,255,.94); color: var(--gallery-ink); font-size: 12px; font-weight: 700; }
.gallery-page .gallery-explorer { padding: 78px 0 84px; background: #fff; }
.gallery-page .gallery-section-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.gallery-page .gallery-section-head h2 { margin: 9px 0 10px; font-size: clamp(28px,3vw,38px); line-height: 1.2; letter-spacing: -.7px; }
.gallery-page .gallery-section-head p { margin: 0; font-size: 15px; }
.gallery-page .gallery-filter-bar { display: flex; justify-content: center; gap: 9px; margin: 0 auto 38px; padding: 3px 3px 8px; }
.gallery-page .gallery-filter-btn { flex: 0 0 auto; min-height: 44px; padding: 10px 17px; border: 1px solid #d6e5ed; border-radius: 24px; background: #fff; color: #35546d; font-family: inherit; font-size: 13px; font-weight: 650; line-height: 1.2; cursor: pointer; transition: color .18s,background .18s,border-color .18s,box-shadow .18s; }
.gallery-page .gallery-filter-btn:hover { border-color: #86c9e6; background: #f5fbfe; }
.gallery-page .gallery-filter-btn[aria-pressed="true"] { border-color: #087db4; background: #087db4; color: #fff; box-shadow: 0 5px 16px rgba(2,132,199,.18); }
.gallery-page .gallery-filter-btn:focus-visible,
.gallery-page .gallery-item:focus-visible,
.gallery-page .gallery-lightbox button:focus-visible,
.gallery-page a:focus-visible { outline: 3px solid #0e9eaa; outline-offset: 3px; }
.gallery-page .gallery-result-count { min-height: 22px; margin: -24px 0 22px; color: #688197; font-size: 12px; text-align: center; }
body:not(.admin-page) main.gallery-page > section.gallery-explorer:not(.gallery-explorer--with-items) { padding-bottom: 20px !important; }
.gallery-page .gallery-group + .gallery-group { margin-top: 54px; }
.gallery-page .gallery-group-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 17px; }
.gallery-page .gallery-group-heading h3 { margin: 0; font-size: 21px; line-height: 1.3; }
.gallery-page .gallery-group-heading p { margin: 0; font-size: 13px; }
.gallery-page .gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.gallery-page .gallery-item { min-width: 0; overflow: hidden; display: flex; flex-direction: column; padding: 0; border: 1px solid #dce7ed; border-radius: 20px; background: #fff; color: inherit; text-align: left; font: inherit; cursor: zoom-in; box-shadow: 0 8px 24px rgba(23,52,84,.06); transition: transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.gallery-page .gallery-item:hover { transform: translateY(-4px); border-color: #c1dce8; box-shadow: 0 17px 38px rgba(23,52,84,.13); }
.gallery-page .gallery-image-wrap { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4/3; background: #eff6f9; }
.gallery-page .gallery-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-page .gallery-item:hover .gallery-image-wrap img { transform: scale(1.025); }
.gallery-page .gallery-item--exterior .gallery-image-wrap { aspect-ratio: 4/3; }
.gallery-page .gallery-item--portrait .gallery-image-wrap img { object-position: center 24%; }
.gallery-page .gallery-item--case .gallery-image-wrap { aspect-ratio: 2/3; background: #f4f8fa; }
.gallery-page .gallery-item--case .gallery-image-wrap img { object-fit: contain; }
.gallery-page .gallery-open-mark { position: absolute; top: 13px; right: 13px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; background: rgba(255,255,255,.92); color: #087bb3; box-shadow: 0 5px 16px rgba(23,52,84,.14); }
.gallery-page .gallery-caption { display: none; }
.gallery-page .gallery-caption-copy { display: grid; gap: 4px; }
.gallery-page .gallery-category { color: #087bb3; font-size: 9px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.gallery-page .gallery-caption-title { color: var(--gallery-ink); font-size: 15px; font-weight: 750; line-height: 1.4; }
.gallery-page .gallery-caption-hint { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #087bb3; font-size: 12px; font-weight: 700; }
.gallery-page [data-gallery-group][hidden],
.gallery-page [data-gallery-item][hidden] { display: none !important; }
.gallery-page .gallery-technology { padding: 74px 0; }
.gallery-page .gallery-technology-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(34px,6vw,72px); align-items: center; }
.gallery-page .gallery-technology-copy h2 { margin: 10px 0 12px; font-size: clamp(28px,3.2vw,40px); line-height: 1.17; letter-spacing: -.7px; }
.gallery-page .gallery-technology-copy p { max-width: 520px; font-size: 15px; }
.gallery-page .gallery-technology-copy .gallery-caption { padding: 12px 15px; }
.gallery-page .gallery-technology-copy .gallery-caption-title { font-size: 14px; }
.gallery-page .gallery-technology-copy .gallery-image-wrap { aspect-ratio: 1.5; }
.gallery-page .gallery-technology-photo { max-width: 540px; justify-self: start; }
.gallery-page .gallery-results { padding: 78px 0 84px; background: #fff; }
.gallery-page .gallery-results .gallery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.gallery-page .gallery-results .gallery-item--case .gallery-image-wrap { aspect-ratio: 4/3; }
.gallery-page .gallery-results .gallery-item--case .gallery-image-wrap > img { width: 100%; height: 100%; object-fit: contain !important; object-position: center; }
.gallery-page .gallery-results .gallery-item--case-portrait .gallery-image-wrap { aspect-ratio: 2/3; }
.gallery-page .gallery-results .gallery-item--case-portrait .gallery-image-wrap > img { object-fit: cover !important; }
.gallery-page .gallery-results-note { margin: -12px auto 30px; max-width: 760px; text-align: center; font-size: 13px; }
.gallery-page .gallery-visit { padding: 68px 0; }
.gallery-page .gallery-visit-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 22px; align-items: center; padding: 28px 32px; border: 1px solid #d5e7ee; border-radius: 22px; background: rgba(255,255,255,.84); box-shadow: 0 14px 34px rgba(23,52,84,.08); }
.gallery-page .gallery-visit-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; background: #e3f4fb; color: #087bb3; font-size: 21px; }
.gallery-page .gallery-visit-copy h2 { margin: 0 0 7px; font-size: 24px; }
.gallery-page .gallery-visit-copy p { margin: 0; font-size: 13px; }
.gallery-page .gallery-visit-address { margin-top: 8px !important; }
.gallery-page .gallery-visit-hours { margin-top: 6px !important; }
.gallery-page .gallery-visit-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.gallery-page .gallery-visit-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 15px; white-space: nowrap; }

.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox { position: fixed; z-index: 10020; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(6,20,34,.94); color: #fff; }
.gallery-lightbox-backdrop { position: absolute; inset: 0; cursor: zoom-out; }
.gallery-lightbox-content { position: relative; z-index: 1; display: grid; grid-template-columns: 64px minmax(0,1fr) 64px; grid-template-rows: minmax(0,1fr) auto auto; gap: 14px 18px; align-items: center; width: min(1160px,100%); height: min(90vh,900px); height: min(90svh,900px); }
.gallery-lightbox:not([hidden]) .gallery-lightbox-content { animation: gallery-lightbox-enter .18s ease-out both; }
@keyframes gallery-lightbox-enter { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
.gallery-lightbox-image { grid-column: 2; grid-row: 1; justify-self: center; width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.gallery-lightbox-caption { grid-column: 2; grid-row: 2; margin: 0; color: rgba(255,255,255,.93); font-size: 15px; line-height: 1.5; text-align: center; }
.gallery-lightbox-counter { grid-column: 2; grid-row: 3; color: rgba(255,255,255,.65); font-size: 12px; text-align: center; }
.gallery-lightbox button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 21px; cursor: pointer; transition: background .18s,transform .18s; }
.gallery-lightbox button[hidden] { display: none; }
.gallery-lightbox button:hover { background: rgba(14,165,233,.58); }
.gallery-lightbox-close { position: absolute; top: 0; right: 0; }
.gallery-lightbox-prev { grid-column: 1; grid-row: 1; justify-self: center; }
.gallery-lightbox-next { grid-column: 3; grid-row: 1; justify-self: center; }
body.gallery-lightbox-open { overflow: hidden; }

@media(max-width:1000px) {
  .gallery-page .gallery-hero-grid { gap: 34px; }
  .gallery-page .gallery-grid,.gallery-page .gallery-results .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery-page .gallery-visit-card { grid-template-columns: auto minmax(0,1fr); }
  .gallery-page .gallery-visit-actions { grid-column: 2; justify-content: flex-start; }
}
@media(max-width:760px) {
  body:not(.admin-page) main.gallery-page > section.gallery-hero { padding: 42px 0 52px !important; }
  body:not(.admin-page) main.gallery-page > section.gallery-explorer:not(.gallery-explorer--with-items) { padding-bottom: 20px !important; }
  body:not(.admin-page) main.gallery-page > section.gallery-technology { padding: 60px 0 !important; }
  body:not(.admin-page) main.gallery-page > section.gallery-results { padding: 60px 0 !important; }
  body:not(.admin-page) main.gallery-page > section.gallery-visit { padding: 54px 0 !important; }
  .gallery-page .gallery-container { padding-inline: 20px; }
  .gallery-page .gallery-hero { padding: 42px 0 52px; }
  .gallery-page .gallery-hero-grid,.gallery-page .gallery-technology-layout { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .gallery-page .gallery-hero-photo { aspect-ratio: 1.55; }
  body:not(.admin-page) main.gallery-page > section.gallery-explorer { padding-top: 54px !important; }
  body:not(.admin-page) main.gallery-page > section.gallery-results { padding: 54px 0 !important; }
  .gallery-page .gallery-filter-bar { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 4px 20px 11px; scrollbar-width: thin; }
  .gallery-page .gallery-filter-btn { padding-inline: 16px; }
  .gallery-page .gallery-grid,.gallery-page .gallery-results .gallery-grid { gap: 16px; }
  .gallery-page .gallery-technology { padding: 60px 0; }
  .gallery-page .gallery-technology-photo { max-width: none; justify-self: stretch; }
  .gallery-page .gallery-visit { padding: 54px 0; }
  .gallery-page .gallery-visit-card { padding: 24px; }
  .gallery-lightbox { padding: 16px; }
  .gallery-lightbox-content { grid-template-columns: 48px minmax(0,1fr) 48px; gap: 10px; width: 100%; height: 88vh; height: 88svh; }
  .gallery-lightbox button { width: 48px; height: 48px; }
  .gallery-lightbox-image { max-height: 74svh; }
}
@media(max-width:560px) {
  .gallery-page .gallery-container { padding-inline: 18px; }
  .gallery-page .gallery-hero h1 { font-size: clamp(36px,10vw,46px); letter-spacing: -1px; }
  .gallery-page .gallery-section-head { margin-bottom: 24px; }
  .gallery-page .gallery-filter-bar { margin-bottom: 28px; }
  .gallery-page .gallery-filter-bar { margin-inline: -18px; padding-inline: 18px; }
  .gallery-page .gallery-result-count { margin-top: -17px; }
  .gallery-page .gallery-grid,.gallery-page .gallery-results .gallery-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .gallery-page .gallery-image-wrap { aspect-ratio: 1.35; }
  .gallery-page .gallery-item--portrait .gallery-image-wrap { aspect-ratio: 1.1; }
  .gallery-page .gallery-results .gallery-item--case .gallery-image-wrap { aspect-ratio: 4/3; }
  .gallery-page .gallery-group + .gallery-group { margin-top: 38px; }
  .gallery-page .gallery-group-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .gallery-page .gallery-visit-card { grid-template-columns: minmax(0,1fr); gap: 14px; padding: 22px; }
  .gallery-page .gallery-visit-actions { grid-column: auto; display: grid; grid-template-columns: 1fr; }
  .gallery-page .gallery-visit-actions .btn { width: 100%; }
  .gallery-lightbox { padding: 12px; }
  .gallery-lightbox-content { grid-template-columns: 42px minmax(0,1fr) 42px; grid-template-rows: 1fr auto auto; height: 90vh; height: 90svh; gap: 8px; }
  .gallery-lightbox button { width: 42px; height: 42px; font-size: 18px; }
  .gallery-lightbox-close { top: 8px; right: 6px; z-index: 2; }
  .gallery-lightbox-image { grid-column: 1/4; grid-row: 1; align-self: center; width: 100%; height: 100%; max-height: 76svh; padding: 0 2px; }
  .gallery-lightbox-prev { grid-column: 1; grid-row: 2; }
  .gallery-lightbox-next { grid-column: 3; grid-row: 2; }
  .gallery-lightbox-caption { grid-column: 2; grid-row: 2; font-size: 12px; }
  .gallery-lightbox-counter { grid-column: 1/4; grid-row: 3; }
}
@media(max-width:360px) {
  .gallery-page .gallery-container { padding-inline: 14px; }
  .gallery-page .gallery-filter-bar { margin-inline: -14px; padding-inline: 14px; }
  .gallery-page .gallery-caption { padding: 13px; }
  .gallery-lightbox-content { grid-template-columns: 38px minmax(0,1fr) 38px; }
  .gallery-lightbox button { width: 40px; height: 40px; }
}
@media(prefers-reduced-motion:reduce) {
  .gallery-page *, .gallery-page *::before, .gallery-page *::after,
  .gallery-lightbox *, .gallery-lightbox *::before, .gallery-lightbox *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
}
