.workspace-gallery{margin:0 0 40px}
.gallery-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}
.gallery-intro h3{font-size:1.45rem;letter-spacing:-.03em;margin:0 0 6px}
.gallery-intro p{color:var(--muted);margin:0;font-size:.94rem}
.preview-badge{display:inline-block;flex-shrink:0;border:1px solid #375b78;border-radius:99px;padding:7px 12px;color:#a3dfff;background:#112b40;font-size:.78rem;font-weight:650}
.gallery-switcher{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.gallery-choice{font:inherit;font-weight:650;font-size:.92rem;color:#b9cbe0;background:#102036;border:1px solid #344c66;border-radius:9px;padding:11px 18px;cursor:pointer;min-height:46px}
.gallery-choice:hover{border-color:#6ba9d2;color:#fff}
.gallery-choice[aria-pressed=true]{background:#1b4967;border-color:#65caff;color:#e9f8ff}
.gallery-shot{margin:0;border:1px solid #35516b;border-radius:16px;overflow:hidden;background:#0c1828}
.gallery-shot+.gallery-shot{margin-top:20px}
.gallery-shot[hidden],.gallery-switcher[hidden]{display:none}
.gallery-image-link{display:block;position:relative;text-decoration:none;background:#111b27}
.gallery-image-link img{display:block;width:100%;height:auto}
.gallery-image-link:focus-visible{outline-offset:-4px;border-radius:0}
.enlarge-hint{position:absolute;bottom:14px;right:14px;padding:7px 12px;border:1px solid #5b7690;border-radius:8px;background:#09111eed;color:#eff7ff;font-size:.8rem;font-weight:650;pointer-events:none}
.gallery-shot figcaption{padding:23px 26px;display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}
.gallery-shot h4{font-size:1.08rem;margin:0 0 5px;letter-spacing:-.02em}
.gallery-shot figcaption p{color:#aebed1;margin:0;font-size:.94rem;max-width:740px}
.original-link{font-size:.84rem;white-space:nowrap;color:#87d7ff;text-underline-offset:4px}
.gallery-disclosure{border:1px solid #30465e;border-radius:14px;margin-top:28px;background:#0e1b2b}
.gallery-disclosure summary{padding:20px 24px;cursor:pointer;font-size:1rem;font-weight:650;color:#e2efff}
.gallery-settings{padding:0 22px 22px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.settings-shot{margin:0;min-width:0}
.settings-shot .gallery-image-link{border:1px solid #344960;border-radius:8px;overflow:hidden}
.settings-shot img{aspect-ratio:4/3;object-fit:cover;object-position:top}
.settings-shot figcaption{font-size:.88rem;color:#b4c6da;padding-top:11px}
.gallery-dialog{color:var(--text);background:#0b1524;border:1px solid #45627d;border-radius:16px;width:calc(100% - 48px);max-width:1600px;max-height:94vh;max-height:94dvh;padding:0;overflow:auto;box-shadow:0 24px 100px #0009}
.gallery-dialog::backdrop{background:#030812e8}
.lightbox-header{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:18px 22px;border-bottom:1px solid #304158}
.lightbox-header h2{font-size:1.2rem;margin:0;letter-spacing:-.02em;line-height:1.35}
.lightbox-build{color:#a6c7df;font-size:.78rem;margin:4px 0 0}
.lightbox-button{font:inherit;font-size:.88rem;font-weight:600;cursor:pointer;border:1px solid #46617d;color:#edf5ff;background:#172a40;border-radius:8px;min-height:44px;padding:9px 14px}
.lightbox-stage{overflow:auto;background:#070d16;min-height:150px;text-align:center}
.lightbox-stage img{display:block;width:auto;max-width:100%;height:auto;max-height:68vh;max-height:68dvh;object-fit:contain;margin:auto}
.lightbox-stage[data-zoomed=true]{max-height:68vh;max-height:68dvh;text-align:left}
.lightbox-stage[data-zoomed=true] img{max-width:none;max-height:none;margin:0}
.lightbox-footer{padding:16px 22px 20px}
.lightbox-footer p{font-size:.94rem;color:#b6c8dc;margin:0 0 16px;max-width:1000px}
.lightbox-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.lightbox-count{font-size:.85rem;color:#b5c9df;margin-right:auto;min-width:45px;text-align:center}
.lightbox-controls .original-link{padding:10px 0}
body.gallery-open{overflow:hidden}
button:focus-visible,summary:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
@media(max-width:700px){.gallery-intro{align-items:flex-start;flex-direction:column;gap:12px}.gallery-shot figcaption{grid-template-columns:1fr;padding:19px;gap:13px}.gallery-settings{grid-template-columns:1fr}.settings-shot img{aspect-ratio:auto;object-fit:contain}.gallery-dialog{width:calc(100% - 20px);max-height:96vh;max-height:96dvh;border-radius:12px}.lightbox-header,.lightbox-footer{padding:15px}.lightbox-header h2{font-size:1.04rem}.lightbox-controls{gap:8px}.lightbox-count{margin-right:0}.lightbox-controls .original-link{width:100%}.enlarge-hint{bottom:8px;right:8px;font-size:.72rem;padding:5px 8px}}
