/* Public gallery only: complete photographs, stable rows, restrained controls. */
.safari-gallery { background:#0a0f0a; color:#edf0ec; padding:32px 0 64px; }
.gallery-container { max-width:1440px; padding:0 32px; margin:auto; }
.gallery-header { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:32px; }
.gallery-header h1 { margin:0 0 14px; color:#f4f4ef; font:600 clamp(32px,3.5vw,48px)/1.18 'Playfair Display',Georgia,serif; letter-spacing:-.02em; }
.gallery-header p { margin:0; color:#acb8ae; font-size:16px; line-height:1.7; }
.gallery-header .gallery-view-hint { flex-shrink:0; max-width:none; white-space:nowrap; font-size:13px; text-align:right; }
.gallery-categories { display:flex; flex-wrap:wrap; gap:0 28px; border-bottom:1px solid #303a32; margin-bottom:24px; }
.gallery-categories a { display:inline-flex; align-items:center; min-height:48px; padding:10px 0 14px; border-bottom:2px solid transparent; color:#b8c3bb; font-size:14px; text-decoration:none; }
.gallery-categories a[aria-current] { color:#e8bc51; border-color:#d4a017; }
.gallery-categories a:hover { color:#fff; }
.gallery-mobile-filter,.gallery-mobile-page-label,.gallery-mobile-page-disabled { display:none; }
.gallery-results-heading { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:20px; }
.gallery-results-heading h2 { margin:0; color:#dbe1dc; font:500 15px/1.6 Inter,system-ui,sans-serif; }
.gallery-results-heading p { margin:0; color:#96a69b; font-size:13px; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.gallery-grid.is-justified { display:flex; flex-direction:column; gap:16px; }
.gallery-row { display:flex; justify-content:center; gap:16px; max-width:100%; }
.gallery-photo { position:relative; min-width:0; margin:0; background:#101710; border-radius:4px; overflow:hidden; }
.gallery-grid:not(.is-justified) .gallery-photo { aspect-ratio:var(--photo-ratio); align-self:start; }
.gallery-photo a { display:block; width:100%; height:100%; cursor:zoom-in; }
.gallery-photo img { display:block; width:100%; height:100%; object-fit:contain; }
.gallery-photo figcaption { position:absolute; display:flex; align-items:flex-end; justify-content:space-between; gap:12px; inset:auto 0 0; padding:28px 16px 14px; margin:0; background:linear-gradient(transparent,rgba(0,0,0,.75)); color:#fff; font-size:13px; line-height:1.5; pointer-events:none; opacity:0; transition:opacity 140ms ease; }
.gallery-photo figcaption svg { flex-shrink:0; }
.gallery-photo:hover figcaption,.gallery-photo:focus-within figcaption { opacity:1; }
.safari-gallery :is(a,button):focus-visible { outline:2px solid #e8bc51; outline-offset:4px; }
.gallery-photo:focus-within { outline:2px solid #e8bc51; outline-offset:4px; overflow:visible; }
.gallery-photo a:focus-visible { outline:none; }
.gallery-photo:focus-within img { border-radius:4px; }
.gallery-pagination { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:16px; margin-top:32px; padding-top:24px; border-top:1px solid #303a32; }
.gallery-pagination>div:last-child { text-align:right; }
.gallery-pagination a { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; color:#bec9c1; font-size:14px; text-decoration:none; }
.gallery-page-numbers { display:flex; align-items:center; gap:4px; }
.gallery-page-numbers a[aria-current] { color:#f1c360; border-bottom:2px solid #d4a017; }
.gallery-page-numbers span { color:#8e9b92; padding:0 4px; }
.gallery-empty { padding:60px 0; }
.gallery-empty h3 { margin:0 0 10px; font:600 24px/1.4 'Playfair Display',Georgia,serif; }
.gallery-empty p { color:#a9b5ac; font-size:15px; }
.gallery-empty a { display:inline-flex; align-items:center; min-height:44px; color:#e8bc51; text-underline-offset:4px; }
html.gallery-viewer-open { overflow:hidden; scrollbar-gutter:stable; }
.gallery-viewer { position:fixed; inset:0; box-sizing:border-box; width:100%; max-width:none; height:100%; height:100dvh; max-height:none; padding:16px 32px 24px; margin:0; border:0; background:#080b08; color:#f4f5f3; overflow:auto; }
.gallery-viewer[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; gap:12px; }
.gallery-viewer::backdrop { background:#080b08; }
.gallery-viewer-header { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.gallery-viewer-counter { margin:0; color:#bac4bc; font-size:13px; }
.gallery-viewer button { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:48px; height:48px; padding:10px; border:0; border-radius:4px; background:transparent; color:#d3dbd4; cursor:pointer; transition:background-color 140ms ease; }
.gallery-viewer button:hover { background:#202720; color:#fff; }
.gallery-viewer button[hidden] { display:none; }
.gallery-viewer-stage { display:grid; grid-template-columns:48px minmax(0,1fr) 48px; gap:24px; min-height:0; align-items:center; }
.gallery-viewer-canvas { position:relative; height:100%; min-height:0; display:flex; align-items:center; justify-content:center; touch-action:pan-y pinch-zoom; }
.gallery-viewer-canvas img { display:block; width:100%; height:100%; min-height:0; object-fit:contain; }
.gallery-viewer-canvas [hidden] { display:none; }
.gallery-viewer-loading,.gallery-viewer-error { position:absolute; padding:24px; margin:0; text-align:center; color:#c5cec7; font-size:14px; }
.gallery-viewer-error a { color:#e8bc51; text-underline-offset:4px; }
.gallery-viewer-caption { max-width:900px; width:100%; margin:auto; text-align:center; overflow-wrap:anywhere; }
.gallery-viewer-caption p { margin:0; font-size:14px; line-height:1.6; }
.gallery-viewer-caption [data-gallery-credit] { margin-top:6px; color:#98a69c; font-size:12px; }
.gallery-viewer-caption p:empty { display:none; }
@media(min-width:1600px) { .gallery-container { max-width:1560px; } }
@media(max-width:767px) {
    .safari-gallery { padding:16px 0 32px; }
    .gallery-container { padding:0 16px; }
    .gallery-header { display:block; margin-bottom:20px; }
    .gallery-header h1 { font-size:30px; margin-bottom:10px; }
    .gallery-header p { font-size:14px; line-height:1.65; }
    .gallery-header .gallery-view-hint { margin-top:8px; max-width:none; white-space:normal; text-align:left; font-size:12px; }
    .gallery-categories { display:none; }
    .gallery-mobile-filter { display:block; margin-bottom:20px; padding-bottom:20px; border-bottom:1px solid #303a32; }
    .gallery-mobile-filter label { display:block; margin-bottom:8px; color:#aebbb2; font-size:12px; }
    .gallery-mobile-filter>div { display:flex; gap:10px; }
    .gallery-mobile-filter select { flex:1; min-width:0; min-height:44px; padding:10px 12px; border:1px solid #3a463d; border-radius:4px; background:#101710; color:#e8ece8; font:400 14px/1.5 Inter,system-ui,sans-serif; }
    .gallery-mobile-filter option { background:#101710; color:#e8ece8; }
    .gallery-mobile-filter button { flex-shrink:0; min-height:44px; padding:10px 18px; border:1px solid #a77f28; border-radius:4px; background:transparent; color:#e8bc51; font:500 14px/1.5 Inter,system-ui,sans-serif; cursor:pointer; }
    .gallery-mobile-filter select:focus-visible { outline:2px solid #e8bc51; outline-offset:3px; }
    .gallery-results-heading { margin-bottom:16px; gap:8px; }
    .gallery-results-heading h2 { font-size:14px; }
    .gallery-results-heading p { font-size:12px; }
    .gallery-grid { grid-template-columns:minmax(0,1fr); gap:16px; }
    .gallery-grid.is-justified { gap:16px; }
    .gallery-row { gap:12px; justify-content:center; }
    .gallery-pagination { grid-template-columns:1fr 1fr; gap:12px; margin-top:24px; padding-top:20px; }
    .gallery-pagination a,.gallery-mobile-page-disabled { display:flex; align-items:center; justify-content:center; width:100%; min-height:44px; border:1px solid #354137; border-radius:4px; font-size:14px; }
    .gallery-mobile-page-disabled { color:#748077; border-color:#242d26; }
    .gallery-page-numbers { display:none; }
    .gallery-mobile-page-label { display:block; grid-column:1/-1; text-align:center; margin:0 0 4px; color:#aebbb2; font-size:13px; }
    .gallery-viewer { padding:8px 12px max(16px,env(safe-area-inset-bottom)); }
    .gallery-viewer-stage { grid-template-columns:1fr 1fr; grid-template-rows:minmax(0,1fr) 44px; gap:12px; }
    .gallery-viewer-canvas { grid-column:1/-1; grid-row:1; }
    .gallery-viewer-stage>button { grid-row:2; }
    .gallery-viewer-stage>[data-gallery-previous] { justify-self:end; }
    .gallery-viewer-stage>[data-gallery-next] { justify-self:start; }
    .gallery-viewer button { width:44px; height:44px; }
    .gallery-viewer-caption { max-height:100px; overflow:auto; }
    .gallery-viewer-caption p { font-size:13px; }
}
@media(prefers-reduced-motion:reduce) { .gallery-photo figcaption,.gallery-viewer button { transition:none; } }
