.nsc-gallery{margin:0 0 1.5em}
.nsc-stage{background:#f6f2ec;border-radius:8px;overflow:hidden;cursor:zoom-in;aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}
.nsc-stage-img{width:100%;height:100%;object-fit:contain;display:block}
.nsc-thumbs,.nsc-tools{display:flex;gap:8px;margin-top:8px;overflow-x:auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}
.nsc-tools{flex-wrap:wrap;overflow:visible}
.nsc-thumb{flex:0 0 auto;width:92px;padding:0;border:2px solid transparent;border-radius:6px;background:#f6f2ec;cursor:pointer;overflow:hidden}
.nsc-thumb img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.nsc-thumb.is-active{border-color:#E06316}
.nsc-tools-title{margin-top:1.5em}
.nsc-spin{margin:0 0 1.5em}
.nsc-spin-box{margin-top:10px;background:#f6f2ec;border-radius:8px;padding:8px;text-align:center}
.nsc-spin-img{display:block;width:100%;max-height:70vh;object-fit:contain;touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none}
.nsc-spin-hint{margin:6px 0 0;font-size:.9em;color:#5a3a1a}
.nsc-lb{position:fixed;inset:0;z-index:99999;background:rgba(20,12,6,.92);display:flex;align-items:center;justify-content:center}
.nsc-lb[hidden]{display:none}
.nsc-lb-img{max-width:92vw;max-height:86vh;object-fit:contain}
.nsc-lb button{position:absolute;background:rgba(255,255,255,.15);color:#fff;border:0;border-radius:50%;width:44px;height:44px;font-size:28px;line-height:1;cursor:pointer}
.nsc-lb-close{top:14px;right:14px}.nsc-lb-prev{left:12px;top:50%}.nsc-lb-next{right:12px;top:50%}
.nsc-lb-count{position:absolute;bottom:14px;left:0;right:0;text-align:center;color:#fff;font-size:.9em}
body.nsc-lb-open{overflow:hidden}
@media (min-width:640px){.nsc-thumb{width:110px}}
.nsc-stage-wrap{position:relative}
.nsc-stage{touch-action:pan-y}
.nsc-stage-img{transition:opacity .3s ease;-webkit-user-drag:none;user-select:none}
.nsc-stage-img.is-fading{opacity:.25}
.nsc-nav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.85);color:#1e40af;font-size:28px;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.2);padding:0}
.nsc-nav:hover{background:#fff}
.nsc-prev{left:10px}.nsc-next{right:10px}
.nsc-counter{position:absolute;right:10px;bottom:10px;background:rgba(0,0,0,.55);color:#fff;font-size:.8em;padding:.15em .6em;border-radius:999px}
.nsc-thumbs{position:relative}
.nsc-note{background:#fff7e0;border:1px dashed #d9a400;padding:.6em .8em;border-radius:6px;font-size:.9em;margin:0 0 1em}
/* v0.9.1 videos */
.nsc-videos{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;margin:0 0 1em}
.nsc-video{width:100%;aspect-ratio:16/9;background:#000;border-radius:10px;display:block}
/* v0.9.15: main picture slides; row of small pictures rolls (one row, arrows at both ends) */
@keyframes nsc-in-l{from{transform:translateX(40px);opacity:.2}to{transform:none;opacity:1}}
@keyframes nsc-in-r{from{transform:translateX(-40px);opacity:.2}to{transform:none;opacity:1}}
.nsc-stage{overflow:hidden}
.nsc-stage-img.nsc-slide-l{animation:nsc-in-l .4s ease-out}
.nsc-stage-img.nsc-slide-r{animation:nsc-in-r .4s ease-out}
.nsc-thumbs-wrap{position:relative;margin-top:8px}
.nsc-thumbs-wrap .nsc-thumbs{margin-top:0;overflow-x:auto;scrollbar-width:none;flex-wrap:nowrap;scroll-snap-type:x proximity}
.nsc-thumbs-wrap .nsc-thumbs::-webkit-scrollbar{display:none}
.nsc-thumbs-wrap .nsc-thumb{scroll-snap-align:start}
.nsc-tnav{position:absolute;top:0;bottom:4px;z-index:2;width:36px;border:0;padding:0;background:rgba(26,29,35,.72);color:#fff;font-size:26px;line-height:1;cursor:pointer}
.nsc-tnav[hidden]{display:none}
.nsc-tnav:hover{background:rgba(26,29,35,.92)}
.nsc-tprev{left:0;border-radius:6px 0 0 6px}.nsc-tnext{right:0;border-radius:0 6px 6px 0}
@media (prefers-reduced-motion:reduce){.nsc-stage-img.nsc-slide-l,.nsc-stage-img.nsc-slide-r{animation:none}}
