.np-gallery{--np-accent:#c13268;--np-line:color-mix(in srgb,currentColor 22%,transparent);margin:2rem 0;font-family:inherit;color:inherit}
.np-gallery *{box-sizing:border-box}
.np-gallery [hidden]{display:none!important}
.np-toolbar{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;padding:1.25rem;border:1px solid var(--np-line);border-radius:10px;margin-bottom:1rem}
.np-toolbar label{display:flex;flex-direction:column;gap:.4rem;font-size:.9rem;font-weight:600}
.np-toolbar .np-search-label{flex:1;min-width:190px}
.np-toolbar input,.np-toolbar select{font:inherit;font-weight:400;color:inherit;background:transparent;border:1px solid var(--np-line);border-radius:6px;padding:.65rem .8rem;min-height:44px;width:100%}
.np-toolbar input::placeholder{color:inherit;opacity:.6}
.np-toolbar select option{color:#1a1820;background:#fff}
.np-gallery button,.np-gallery .np-links a,.np-gallery .np-sharing a{font:inherit;font-size:.9rem;border:1px solid var(--np-line);border-radius:6px;background:transparent;color:inherit;padding:.6rem .85rem;min-height:42px;cursor:pointer;text-decoration:none;display:inline-flex;justify-content:center;align-items:center;gap:.3rem}
.np-gallery button:hover,.np-gallery .np-tags a:hover,.np-gallery .np-sharing a:hover{border-color:var(--np-accent);color:var(--np-accent)}
.np-gallery button:disabled{opacity:.35;cursor:default}
.np-gallery a:focus-visible,.np-gallery button:focus-visible,.np-gallery input:focus-visible,.np-gallery select:focus-visible{outline:3px solid var(--np-accent);outline-offset:4px}
.np-toolbar button[type=submit]{background:var(--np-accent);color:#fff;border-color:var(--np-accent)}
.np-summary{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin:.5rem 0 1rem}
.np-summary p{margin:0;opacity:.8;font-size:.9rem}
.np-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.np-card{display:block;position:relative;overflow:hidden;border-radius:8px;text-decoration:none!important;color:inherit!important;background:color-mix(in srgb,currentColor 5%,transparent);break-inside:avoid}
.np-card img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;transition:filter .2s ease}
.np-card:hover img{filter:brightness(1.08)}
.np-card-title{display:block;padding:.65rem .75rem;line-height:1.4;font-size:.85rem;overflow-wrap:anywhere;max-height:5em;overflow:hidden}
.np-gallery[data-layout=masonry] .np-grid{display:block;column-count:5;column-gap:16px}
.np-gallery[data-layout=masonry] .np-card{margin:0 0 16px}
.np-gallery[data-layout=masonry] .np-card img{aspect-ratio:auto;height:auto}
.np-gallery[data-layout=justified] .np-grid{display:flex;flex-wrap:wrap;align-items:stretch}
.np-gallery[data-layout=justified] .np-card{flex:calc(var(--np-ratio)*100) 1 calc(var(--np-ratio)*190px);max-width:100%;display:flex;flex-direction:column}
.np-gallery[data-layout=justified] .np-card img{height:240px;aspect-ratio:auto;object-fit:cover}
.np-gallery[data-layout=justified] .np-card-title{margin-top:auto}
.np-gallery[data-layout=slideshow] .np-grid{display:block;background:#111;border-radius:10px}
.np-gallery[data-layout=slideshow] .np-card{background:#111;color:#fff!important}
.np-gallery[data-layout=slideshow] .np-card img{height:65vh;min-height:280px;aspect-ratio:auto;object-fit:contain}
.np-slideshow-controls{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.np-pagination{display:flex;justify-content:center;gap:1.5rem;align-items:center;padding:2rem .5rem;flex-wrap:wrap;font-size:.9rem}
.np-empty,.np-notice{padding:2rem 1rem;border:1px dashed var(--np-line);border-radius:8px;text-align:center}
.np-lightbox{--np-line:#45404d;--np-accent:#f283aa;background:#19161f;color:#f3eef5;border:1px solid #51465b;border-radius:12px;padding:0;width:min(1440px,96vw);max-width:96vw;max-height:94dvh;overflow:hidden;box-shadow:0 24px 100px #000b}
.np-lightbox::backdrop{background:rgba(5,3,9,.9)}
.np-viewer-bar{display:flex;align-items:center;gap:.6rem;padding:.7rem 1rem;border-bottom:1px solid var(--np-line)}
.np-viewer-bar .np-close{margin-left:auto}
.np-viewer-body,.np-selected-fallback{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:300px}
.np-stage,.np-selected-image{background:#08070b;display:flex;align-items:center;justify-content:center;min-width:0;min-height:0}
.np-stage img{display:block;width:100%;height:calc(94dvh - 76px);object-fit:contain}
.np-details{padding:1.5rem;overflow:auto;max-height:calc(94dvh - 76px);overflow-wrap:anywhere;scrollbar-width:thin}
.np-details .np-eyebrow{margin:0 0 .5rem;font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;opacity:.6}
.np-details h2{font:inherit;font-size:1.5rem;font-weight:700;line-height:1.25;margin:0 0 1rem;color:inherit}
.np-details h3{font:inherit;font-size:.8rem;font-weight:600;margin:1.5rem 0 .7rem;color:inherit}
.np-description{font-size:.9rem;line-height:1.6;white-space:pre-line;opacity:.8}
.np-description:empty{display:none}
.np-tags{display:flex;gap:.45rem;flex-wrap:wrap;align-items:start}
.np-tags a{display:inline-block;text-decoration:none;font-size:.78rem;line-height:1.4;color:inherit;border:1px solid var(--np-line);border-radius:20px;padding:.35rem .65rem}
.np-links,.np-sharing{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1.5rem}
.np-sharing{margin-top:0}
.np-gallery .np-links a,.np-gallery .np-sharing a,.np-gallery .np-sharing button{font-size:.8rem}
.np-share-status{font-size:.8rem;min-height:1.5rem;line-height:1.5}
.np-tagcloud{padding:1rem 0;gap:.6rem;justify-content:space-between}
.np-tagcloud a{font-size:.9rem}
.np-tagcloud a[hidden]{display:none!important}
.np-tag-filter-status{font-size:.85rem;color:#aaa;margin:1rem 0 0}
.np-image-page>h1,.np-tag-intro h1{font-size:clamp(1.7rem,4vw,2.6rem);line-height:1.25;margin:1.25rem 0}
.np-image-page .np-selected-image{margin:0;align-self:start}
.np-image-page .np-selected-image img{max-width:100%;max-height:85vh;object-fit:contain}
.np-tag-intro{margin-bottom:2rem}
.np-tag-intro p{max-width:65ch}
.np-selected-fallback{border:1px solid var(--np-line);border-radius:10px;overflow:hidden;margin-bottom:1.5rem}
.np-selected-image img{width:100%;max-height:80vh;object-fit:contain}
.np-enhanced .np-selected-fallback{display:none}
.np-viewer-open{overflow:hidden}
@media(max-width:1000px){.np-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.np-gallery[data-layout=masonry] .np-grid{column-count:3}.np-viewer-body,.np-selected-fallback{grid-template-columns:minmax(0,1fr) 280px}}
@media(max-width:700px){.np-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.np-gallery[data-layout=masonry] .np-grid{column-count:2;column-gap:10px}.np-gallery[data-layout=masonry] .np-card{margin-bottom:10px}.np-toolbar{padding:.8rem;gap:.7rem}.np-toolbar .np-search-label{flex-basis:100%}.np-viewer-body,.np-selected-fallback{grid-template-columns:1fr}.np-lightbox{overflow:auto}.np-stage img{height:55dvh;min-height:200px}.np-details{max-height:none;padding:1.25rem}.np-viewer-bar{position:sticky;top:0;z-index:1;background:#19161f;padding:.6rem}.np-gallery .np-viewer-bar button{font-size:.75rem;padding:.5rem}.np-card-title{font-size:.78rem;padding:.5rem}.np-gallery[data-layout=justified] .np-card img{height:180px}}
@media(prefers-reduced-motion:reduce){.np-card img{transition:none}}
