.gallery-page { --gallery-primary: var(--color-primary, #01a69f); --gallery-accent: var(--color-secondary, #ffbb45); background: #fff; padding: 60px 0; }
.gallery-page .maxwidth { max-width: 1348px; padding: 0 24px; margin: auto; }
.gallery-intro { max-width: 800px; margin: 0 auto 3rem; text-align: center; }
.gallery-page .eyebrow { color: var(--gallery-primary); text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; }
.gallery-page h1 { color: #1b1b1b; margin: .75rem 0 1rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; }
.gallery-page h1 span, .location-heading h2 span { color: var(--gallery-accent); }
.gallery-intro > p { color: #555; }
.gallery-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.gallery-links a { border: 1px solid var(--gallery-primary); border-radius: .4rem; padding: .75rem 1rem; background: var(--gallery-primary); color: #fff; font-weight: 600; font-size: .875rem; }
.gallery-links a:hover { background: #fff; color: var(--gallery-primary); }
.location-gallery { margin-top: 3rem; scroll-margin-top: 150px; }
.location-heading { border-bottom: 2px solid var(--gallery-accent); margin-bottom: 1.75rem; padding-bottom: 1rem; }
.location-heading h2 { color: #1b1b1b; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; margin: 0; }
.location-heading p { margin: .5rem 0 0; color: #555; font-size: .875rem; }
.gallery-page h3 { font-size: 1.25rem; color: var(--gallery-primary); margin: 1.75rem 0 1rem; font-weight: 600; }
.gallery-videos { display: grid; gap: 1.25rem; }
.gallery-page video { display: block; width: 100%; aspect-ratio: 16/9; max-height: 70vh; border-radius: .8rem; background: #1b1b1b; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.photo-card { display: block; position: relative; overflow: hidden; aspect-ratio: 3/2; border-radius: .8rem; background: #f5f5f5; }
.photo-card .gallery-photo { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.photo-card:hover .gallery-photo { transform: scale(1.035); }
.photo-overlay { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; padding: 2rem 1rem .85rem; background: linear-gradient(transparent, #000b); font-size: .75rem; }
.photo-overlay, .photo-overlay span { color: white; }
.gallery-loading { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: center; align-items: center; background: #fffffff2; pointer-events: none; }
.gallery-loading img { width: 200px; max-width: 65%; height: auto; }
.gallery-loading[hidden], #photo-viewer [hidden] { display: none !important; }
.image-failed::after { content: 'Image unavailable'; position: absolute; inset: 0; display: grid; place-items: center; color: #555; background: #f5f5f5; }
.gallery-empty { padding: 2rem; background: #f5f5f5; border-radius: .5rem; color: #555; }
#photo-viewer { position: fixed; inset: 0; margin: auto; width: min(1200px, 95vw); max-width: 95vw; max-height: 94dvh; padding: 1rem; border: 0; border-radius: 1rem; background: #fff; color: #1b1b1b; }
#photo-viewer:not([open]) { display: none; }
#photo-viewer::backdrop { background: #000c; }
.viewer-toolbar, .viewer-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.viewer-toolbar p, .viewer-controls p { margin: 0; font-size: .8rem; color: #555; }
#photo-viewer button { padding: .7rem 1rem; border: 1px solid #01a69f; border-radius: .4rem; background: #01a69f; color: white; font-size: .85rem; cursor: pointer; }
#photo-viewer button:hover { background: #008b85; }
.viewer-image { position: relative; display: flex; justify-content: center; align-items: center; height: min(68dvh, 800px); margin: 1rem 0; background: #f5f5f5; }
.viewer-image #viewer-image { width: 100%; height: 100%; object-fit: contain; }
.gallery-error { padding: 2rem; color: #555; text-align: center; }
.gallery-page a:focus-visible, #photo-viewer button:focus-visible { outline: 3px solid #ffbb45; outline-offset: 4px; }
@media(max-width: 1023px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 639px) { .photo-grid { grid-template-columns: 1fr; } .viewer-controls p { display: none; } #photo-viewer { padding: .75rem; } }
@media(prefers-reduced-motion: reduce) { .photo-card .gallery-photo { transition: none; } }
