.nm-gallery{position:fixed;inset:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#000;color:#fff;font-family:inherit;overflow:hidden;color-scheme:dark}.nm-gallery[open]{display:block}.nm-gallery::backdrop{background:#000}.nm-gallery-stage{position:absolute;inset:0;background:#000}.nm-gallery-canvas{height:100%;width:100%;overflow:hidden;touch-action:pan-y}.nm-gallery-canvas img{display:block;max-width:none!important;max-height:none!important;object-fit:contain;user-select:none}.nm-gallery-canvas.zoomed{overflow:auto;cursor:grab;touch-action:pan-x pan-y;scrollbar-width:none}.nm-gallery-head{position:absolute;z-index:3;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 28px 45px;background:linear-gradient(#000b,transparent);pointer-events:none}.nm-gallery-head>div{min-width:0}.nm-gallery-brand{font-family:Georgia,serif;font-size:25px;letter-spacing:-1px;color:#fff}.nm-gallery-title{margin:5px 0 0;font-size:12px;color:#fff9;max-width:400px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nm-gallery-tools{display:flex;gap:8px;pointer-events:auto}.nm-gallery button{font-family:inherit;cursor:pointer;border:1px solid #ffffff29;background:#171717b3;color:#fff;display:grid;place-items:center;flex-shrink:0;backdrop-filter:blur(12px);transition:background .2s,border-color .2s,opacity .2s}.nm-gallery button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.nm-gallery-tools button{width:42px;height:42px;border-radius:50%;font-size:24px}.nm-gallery-tools button:last-child{margin-left:12px;background:#ffffff21}.nm-gallery button:hover{background:#ffffff26;border-color:#ffffff85}.nm-gallery button:disabled{opacity:.28;cursor:default}.nm-gallery button:focus-visible{outline:2px solid #ff812e;outline-offset:4px}.nm-gallery-prev,.nm-gallery-next{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:48px;height:48px;border-radius:50%;font-size:34px}.nm-gallery-prev{left:26px}.nm-gallery-next{right:26px}.nm-gallery-foot{position:absolute;z-index:2;bottom:0;left:0;right:0;padding:45px 24px max(18px,env(safe-area-inset-bottom));background:linear-gradient(transparent,#000b);pointer-events:none}.nm-gallery-meta{display:flex;justify-content:center;font-size:11px;margin-bottom:12px;color:#fff}.nm-gallery-meta>span:last-child{display:none}.nm-gallery-count{font-weight:500;color:#fff;letter-spacing:3px;font-variant-numeric:tabular-nums;background:#0008;padding:5px 10px;border-radius:20px}.nm-gallery-thumbs{display:flex;gap:8px;overflow-x:auto;width:max-content;max-width:100%;margin:auto;padding:5px;scrollbar-width:none;pointer-events:auto}.nm-gallery-thumbs button{border-radius:7px;width:42px;height:56px;padding:2px;overflow:hidden;opacity:.5;background:#151515}.nm-gallery-thumbs button[aria-current=true]{opacity:1;border-color:#fff;box-shadow:0 0 0 1px #fff}.nm-gallery-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:4px}@media(max-width:600px){.nm-gallery-head{padding:max(14px,env(safe-area-inset-top)) 14px 35px;align-items:flex-start;gap:10px}.nm-gallery-brand{font-size:22px}.nm-gallery-title{max-width:140px;font-size:10px}.nm-gallery-tools{gap:5px}.nm-gallery-tools button{width:32px;height:32px}.nm-gallery-tools button svg{width:17px;height:17px}.nm-gallery-tools button:last-child{margin-left:3px}.nm-gallery-prev,.nm-gallery-next{width:36px;height:36px}.nm-gallery-prev{left:10px}.nm-gallery-next{right:10px}.nm-gallery-foot{padding:35px 12px max(14px,env(safe-area-inset-bottom))}.nm-gallery-thumbs button{width:36px;height:48px}.nm-gallery-meta{margin-bottom:8px}}@media(prefers-reduced-motion:reduce){.nm-gallery button{transition:none}}
