/* A fixed photographic stage; prose never changes the navigation geometry. */
.topic-gallery{box-sizing:border-box;width:100%;height:100dvh;max-height:100dvh;max-width:none;margin:0;padding:24px clamp(24px,4.45vw,80px);border:0;background:#080808;color:#f5f2ed}
.topic-gallery[open]{display:grid;grid-template-columns:minmax(0,.382fr) minmax(0,.618fr);grid-template-rows:76px minmax(0,1fr);gap:24px 32px;overflow:hidden}
.topic-gallery .gallery-top{grid-column:1/-1;position:static;align-items:center;gap:24px;padding:0 0 20px;margin:0;min-height:0;background:#080808;border-bottom:1px solid #38352f}
.topic-gallery .gallery-tabs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;gap:10px;scrollbar-width:none;align-items:center;height:56px}
.topic-gallery .gallery-tabs::-webkit-scrollbar{display:none}
.topic-gallery .gallery-tabs button{flex:none;min-height:48px;padding:10px 16px;font-size:17px;white-space:nowrap;color:#f5f2ed;background:#141414;border:1px solid #62563e}
.topic-gallery .gallery-tabs button[aria-selected=true]{background:#c9ad7c;border-color:#c9ad7c;color:#080808}
.topic-gallery .gallery-tabs button small{font-size:12px;color:#c9ad7c}
.topic-gallery .gallery-tabs button[aria-selected=true] small{color:#292216}
.topic-gallery .gallery-close{width:56px;height:56px;border-color:#75684e;color:#f5f2ed;background:#141414}
.topic-gallery .gallery-close svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}
.topic-gallery .gallery-theme-prev,.topic-gallery .gallery-theme-next{display:grid;place-items:center;flex:none;width:44px;height:48px;background:transparent;border:1px solid #62563e;color:#c9ad7c}
.topic-gallery .gallery-theme-prev svg,.topic-gallery .gallery-theme-next svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5}
.topic-gallery .gallery-theme-prev:disabled,.topic-gallery .gallery-theme-next:disabled{opacity:.3}
.topic-gallery .gallery-copy{grid-column:1;grid-row:2;box-sizing:border-box;width:auto;min-width:0;min-height:0;margin:0;padding:4px 24px 24px 0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c9ad7c #24211d}
.topic-gallery .gallery-copy h2{font-size:32px;font-weight:600;line-height:1.15;letter-spacing:-.02em;text-transform:uppercase;color:#c9ad7c;margin:0 0 24px;text-wrap:balance}
.topic-gallery .gallery-text p{font-size:18px;line-height:1.6;margin:0 0 20px;max-width:60ch;color:#d3cec5}
.topic-gallery .gallery-view{grid-column:2;grid-row:2;position:relative;box-sizing:border-box;min-height:0;height:100%;margin:0;padding:0 0 80px;background:transparent}
.topic-gallery .gallery-view>img{width:100%;height:100%;min-height:0;object-fit:contain;transform:none;transition:none}
.topic-gallery .gallery-view>img[hidden]{display:none}
.topic-gallery .gallery-view>button{top:auto;bottom:0;width:56px;height:56px;background:#141414;color:#f5f2ed;border:1px solid #75684e;transition:background-color .15s}
.topic-gallery .gallery-view>button:hover{background:#84251c}
.topic-gallery .gallery-view>button:disabled{opacity:.35}
.topic-gallery .gallery-prev{left:auto;right:68px}
.topic-gallery .gallery-next{right:0}
.topic-gallery .gallery-view>button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5}
.topic-gallery .gallery-view figcaption{left:0;right:148px;bottom:0;height:56px;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;font-size:14px;line-height:1.4}
.topic-gallery .gallery-caption{min-width:0;color:#c4c0b8}
.topic-gallery .gallery-count{font-size:18px;font-weight:500;white-space:nowrap;color:#c9ad7c;font-variant-numeric:tabular-nums;min-width:64px;text-align:right}
.topic-gallery .gallery-error{position:absolute;inset:20px 16px 100px;display:grid;place-content:center;text-align:center;font-size:18px;line-height:1.6;color:#c9ad7c;margin:0}
.topic-gallery .gallery-error:empty{display:none}
.topic-gallery :focus-visible{outline:2px solid #c9ad7c;outline-offset:3px}
@media(max-width:1000px) and (min-width:761px){
 .topic-gallery{padding:20px 24px}
 .topic-gallery[open]{column-gap:24px}
 .topic-gallery .gallery-copy{padding-right:12px}
 .topic-gallery .gallery-copy h2{font-size:28px}
 .topic-gallery .gallery-text p{font-size:17px}
 .topic-gallery .gallery-view figcaption{font-size:12px;gap:10px}
}
@media(max-width:760px){
 .topic-gallery{padding:16px 20px}
 .topic-gallery[open]{display:flex;flex-direction:column;gap:24px;overflow-y:auto;overscroll-behavior:contain}
 .topic-gallery .gallery-top{flex:none;position:sticky;top:-16px;z-index:4;min-height:72px;gap:12px;padding:8px 0 16px}
 .topic-gallery .gallery-tabs{height:48px}
 .topic-gallery .gallery-tabs button{font-size:16px;padding:10px 12px}
 .topic-gallery .gallery-close{width:48px;height:48px}
 .topic-gallery .gallery-theme-prev,.topic-gallery .gallery-theme-next{display:none}
 .topic-gallery .gallery-view{order:1;flex:none;width:100%;height:clamp(280px,55svh,520px);min-height:0;padding-bottom:76px}
 .topic-gallery .gallery-copy{order:2;flex:none;overflow:visible;padding:0 0 12px;width:100%}
 .topic-gallery .gallery-copy h2{font-size:28px;margin-bottom:20px}
 .topic-gallery .gallery-text p{font-size:16px;line-height:1.65}
 .topic-gallery .gallery-view figcaption{right:136px;font-size:12px;gap:8px}
 .topic-gallery .gallery-count{font-size:16px;min-width:44px}
 .topic-gallery .gallery-error{font-size:16px;inset:0 8px 80px}
}
@media(max-width:360px){.topic-gallery .gallery-view figcaption{grid-template-columns:1fr}.topic-gallery .gallery-caption{display:none}.topic-gallery .gallery-count{text-align:left}}
@media(prefers-reduced-motion:reduce){.topic-gallery .gallery-view>button{transition:none}}
