.resource-gallery{margin:20px 0;padding:18px 0;border-top:1px solid rgba(213,178,112,.2);text-align:left}
.resource-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.resource-gallery-heading h2{margin:0;color:#f6e7cd;font-size:17px;line-height:1.5}
.resource-gallery-heading>span{color:#abafba;font-size:12px;white-space:nowrap}
.resource-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.resource-gallery-shot{display:block;min-width:0;overflow:hidden;border:1px solid #38372f;border-radius:12px;background:#171c24;color:#e8e3da;text-decoration:none}
.resource-gallery-shot:focus-visible{outline:3px solid #e9bd68;outline-offset:3px}
.resource-gallery-preview{display:flex;position:relative;align-items:center;justify-content:center;aspect-ratio:4/3;background:#10151c;overflow:hidden}
.resource-gallery-preview img{display:block;width:100%;height:100%;object-fit:contain}
.resource-gallery-caption{display:flex;justify-content:space-between;gap:8px;padding:9px 10px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.resource-gallery-caption>span{color:#dfb66b}
.resource-gallery-unavailable{padding:10px;color:#a8aeba;font-size:12px;text-align:center}
.resource-gallery-empty{margin:0;padding:22px 16px;border:1px dashed #424343;border-radius:12px;background:#151b23;color:#aeb5c0;text-align:center;font-size:14px}
dialog.resource-gallery-viewer{box-sizing:border-box;width:min(960px,calc(100vw - 24px));max-width:960px;max-height:calc(100dvh - 24px);padding:0;border:1px solid #575046;border-radius:16px;background:#10151d;color:#eee7dc;overflow:hidden}
dialog.resource-gallery-viewer[open]{display:flex;flex-direction:column}
.resource-gallery-viewer::backdrop{background:rgba(0,0,0,.88)}
.resource-gallery-toolbar{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #353737}
.resource-gallery-toolbar h2{margin:0;font-size:16px;color:#f5e4c8;overflow-wrap:anywhere}
.resource-gallery-toolbar button,.resource-gallery-controls button{min-width:44px;min-height:44px;border:1px solid #534b3c;border-radius:9px;background:#202630;color:#f3d39b;font:inherit;cursor:pointer}
.resource-gallery-toolbar button{font-size:28px;line-height:1}
.resource-gallery-stage{display:flex;align-items:center;justify-content:center;min-height:200px;height:min(68dvh,720px);overflow:auto;background:#080d13;touch-action:pan-y pinch-zoom}
.resource-gallery-stage>img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.resource-gallery-stage>p{max-width:28em;margin:30px;color:#c5c8cf;text-align:center;font-size:14px}
.resource-gallery-controls{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px}
.resource-gallery-controls button{padding:0 12px;font-size:14px}
.resource-gallery-controls button:disabled{opacity:.35;cursor:default}
.resource-gallery-controls>span{color:#c7bda9;font-size:13px}
.resource-gallery [hidden],.resource-gallery-viewer [hidden]{display:none!important}
@media(max-width:600px){.resource-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-gallery{margin:16px 0}.resource-gallery-heading h2{font-size:16px}.resource-gallery-caption{padding:8px;font-size:11px}dialog.resource-gallery-viewer{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.resource-gallery-toolbar,.resource-gallery-controls{padding:10px}.resource-gallery-stage{height:65dvh;min-height:160px}.resource-gallery-controls button{padding:0 10px}}
