/* NoversX Photos LIVE HOME 1: genuine thumbnails from the current authenticated gallery.
   Does not override or modify the existing viewer internals. */
body.nx-design2 .nx-home-sidebar-link{margin-bottom:8px}
body.nx-design2 .nx-home-sidebar-link[aria-current="page"]{
  color:var(--nx-accent);background:var(--nx-accent-soft);
}
body.nx-home-active .nx-shell-sidebar [data-nx-go="photos"][aria-current="page"]{
  background:transparent;color:var(--nx-text-secondary);
}
body.nx-design2.nx-home-active .nx-home-page{
  box-sizing:border-box;background:var(--nx-bg-primary);color:var(--nx-text-primary);
}
.nx-home-page[hidden],body.nx-home-viewer-handoff .nx-home-page{display:none!important}
.nx-home-wrap{width:100%;max-width:1560px;margin:0 auto}
.nx-home-welcome{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}
.nx-home-eyebrow{font-size:11px;letter-spacing:.13em;font-weight:750;color:var(--nx-accent);margin-bottom:7px}
.nx-home-welcome h1{font-size:clamp(22px,2.4vw,30px);margin:0;line-height:1.2;letter-spacing:-.035em}
.nx-home-all{background:var(--nx-accent);color:#fff;border:0;border-radius:12px;padding:12px 19px;font-size:13px;font-weight:750;white-space:nowrap;cursor:pointer}
.nx-home-all:hover{filter:brightness(1.07)}
.nx-home-hero{position:relative;height:clamp(265px,34vw,450px);border-radius:21px;overflow:hidden;
  background:var(--nx-surface);border:1px solid var(--nx-border);isolation:isolate}
.nx-home-hero-open{display:block;position:relative;width:100%;height:100%;margin:0;padding:0;overflow:hidden;text-align:left;
  background:transparent;border:0;color:#fff;cursor:pointer}
.nx-home-hero-picture{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#171b24}
.nx-home-hero-shade{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(0deg,#090c11f2 0%,#090c1199 24%,transparent 64%)}
.nx-home-hero-caption{position:absolute;left:clamp(17px,4vw,46px);right:140px;bottom:clamp(23px,4vw,46px);
  display:flex;flex-direction:column;gap:8px;z-index:1;text-shadow:0 2px 9px #0009}
.nx-home-hero-caption strong{font-size:clamp(25px,3.9vw,46px);line-height:1.1;letter-spacing:-.04em}
.nx-home-hero-caption span:not(.nx-home-hero-name){font-size:14px;color:#e1e3ec}
.nx-home-hero-name{font-size:12px;font-weight:550;opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nx-home-hero-controls{position:absolute;right:22px;bottom:22px;display:flex;align-items:center;gap:8px;z-index:3;
  color:#fff;text-shadow:0 1px 3px #000a}
.nx-home-hero-controls button{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;
  background:#090b10b9;border:1px solid #ffffff6b;color:#fff;cursor:pointer}
.nx-home-hero-controls button svg{width:20px;height:20px}
.nx-home-hero-controls button:hover{background:#277dff}
.nx-home-hero-controls button:disabled{opacity:.35;cursor:default}
.nx-home-hero-count{font-size:12px;min-width:34px;text-align:right}
.nx-home-hero--empty{height:210px}
.nx-home-hero--empty .nx-home-hero-open{display:none}
.nx-home-empty{margin:0;position:absolute;left:26px;top:44%;font-size:15px;color:var(--nx-text-secondary)}
.nx-home-recent{margin-top:32px}
.nx-home-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.nx-home-section-heading h2{font-size:21px;margin:0;line-height:1.3}
.nx-home-section-heading button{padding:8px 10px;background:none;color:var(--nx-accent);border:0;font-weight:750;cursor:pointer;white-space:nowrap}
.nx-home-recent-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}
.nx-home-tile{position:relative;aspect-ratio:4 / 5;min-width:0;padding:0;margin:0;border:0;border-radius:14px;
  overflow:hidden;display:block;background:var(--nx-surface);cursor:pointer;color:#fff}
.nx-home-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .18s ease}
.nx-home-tile:hover img,.nx-home-tile:focus-visible img{transform:scale(1.04)}
.nx-home-tile-name{position:absolute;inset:auto 0 0;display:block;text-align:left;padding:28px 10px 11px;font-size:12px;font-weight:600;
  background:linear-gradient(0deg,#080c14df,transparent);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .15s}
.nx-home-tile:hover .nx-home-tile-name,.nx-home-tile:focus-visible .nx-home-tile-name{opacity:1}
.nx-home-shortcuts{margin-top:30px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.nx-home-shortcut{display:flex;align-items:center;gap:18px;padding:22px 19px;border-radius:17px;
  border:1px solid var(--nx-border);background:var(--nx-surface);color:var(--nx-text-primary);text-align:left;cursor:pointer}
.nx-home-shortcut:hover{border-color:var(--nx-accent)}
.nx-home-shortcut>svg{width:29px;height:29px;color:var(--nx-accent);flex:none}
.nx-home-shortcut>svg:last-child{width:17px;height:17px;margin-left:auto;color:var(--nx-text-secondary)}
.nx-home-shortcut>span{display:flex;flex-direction:column;gap:5px;min-width:0}
.nx-home-shortcut strong{font-size:17px}
.nx-home-shortcut small{font-size:12px;color:var(--nx-text-secondary)}
@media(max-width:860px){body.nx-design2.nx-home-active .nx-home-page{left:0;padding:22px 16px 60px}}
@media(max-width:640px){
  .nx-home-all{padding:10px;font-size:12px}
  .nx-home-welcome h1{font-size:22px}
  .nx-home-hero{height:320px}
  .nx-home-hero-caption{left:20px;bottom:67px;right:20px}
  .nx-home-hero-caption strong{font-size:27px}
  .nx-home-hero-controls{bottom:13px;right:16px}
  .nx-home-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .nx-home-shortcuts{grid-template-columns:1fr;gap:10px}
}
@media(hover:none){.nx-home-tile-name{opacity:1}}
@media(prefers-reduced-motion:reduce){.nx-home-tile img,.nx-home-tile-name{transition:none}}
/* HOME 1.1: ONE document scroll, header and sidebar remain fixed above it.
   React gallery is retained but visually suppressed only while the Home is active;
   it is re-exposed for the accepted original viewer handoff. */
body.nx-design2.nx-home-active:not(.nx-home-viewer-handoff) #root{
  min-height:0;height:0;
}
body.nx-design2.nx-home-active:not(.nx-home-viewer-handoff) .app-shell{
  height:0;min-height:0;padding:0!important;overflow:visible;
}
body.nx-design2.nx-home-active:not(.nx-home-viewer-handoff) .library-panel{display:none!important}
body.nx-design2.nx-home-active .nx-home-page{
  display:block;position:relative!important;inset:auto!important;
  margin:var(--nx-shell-header) 0 0 var(--nx-shell-rail);
  min-height:calc(100dvh - var(--nx-shell-header));
  width:calc(100% - var(--nx-shell-rail));
  overflow:visible!important;overscroll-behavior:auto!important;
  padding:26px clamp(16px,3vw,42px) 66px;
  z-index:1;
}
body.nx-design2.nx-home-viewer-handoff #root{min-height:100%;height:auto}
body.nx-design2.nx-home-viewer-handoff .app-shell{
  height:auto;min-height:0;padding:calc(var(--nx-shell-header) + 12px) 28px 38px!important;
}
/* Backdrop modes are separate from the ORIGINAL sharp central photo. */
.nx-home-hero[data-background]{background:#e7edf4}
:root[data-theme="dark"] .nx-home-hero[data-background]{background:#222b36}
.nx-home-backdrop{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.nx-home-backdrop-collage{display:none;overflow:hidden;filter:blur(29px) saturate(.78);transform:scale(1.10)}
.nx-home-backdrop-collage img{position:absolute;top:0;width:34%;height:100%;object-fit:cover}
.nx-home-backdrop-collage img:nth-child(1){left:0}
.nx-home-backdrop-collage img:nth-child(2){left:33%}
.nx-home-backdrop-collage img:nth-child(3){left:66%}
.nx-home-backdrop-current{display:none;object-fit:cover;filter:blur(28px) saturate(.84);transform:scale(1.17)}
.nx-home-hero[data-background="collage"] .nx-home-backdrop-collage{display:block}
.nx-home-hero[data-background="photo"] .nx-home-backdrop-current{display:block}
.nx-home-hero .nx-home-hero-open{z-index:1}
.nx-home-hero .nx-home-hero-picture{background:transparent!important}
.nx-home-hero .nx-home-hero-shade{background:linear-gradient(0deg,#060912db 0%,#06091270 26%,transparent 62%)}
.nx-home-hero-controls{opacity:0;transition:opacity .18s ease}
.nx-home-hero:hover .nx-home-hero-controls,
.nx-home-hero:focus-within .nx-home-hero-controls{opacity:1}
@media (hover:none){.nx-home-hero-controls{opacity:1}}
@media (prefers-reduced-motion:reduce){.nx-home-hero-controls{transition:none}}
/* Genuine settings card, under the accepted appearance settings. */
.nx-home11-settings h2{margin-bottom:14px}
.nx-home11-settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-top:1px solid var(--nx-border);padding:13px 0;min-height:58px;color:var(--nx-text-primary)}
.nx-home11-settings-row select{width:min(54%,350px);min-width:150px;max-width:100%;padding:10px 12px;
  border:1px solid var(--nx-border);background:var(--nx-bg-secondary);color:var(--nx-text-primary);
  font:inherit;border-radius:10px;cursor:pointer}
.nx-home11-settings-row[hidden]{display:none!important}
.nx-home11-status{color:var(--nx-text-secondary);font-size:13px;margin:12px 0 0}
.nx-home11-status:empty{display:none}
@media(max-width:860px){
  body.nx-design2.nx-home-active .nx-home-page{margin-left:0;width:100%;padding:22px 16px 60px}
}
@media(max-width:600px){
  .nx-home11-settings-row{display:flex;flex-direction:column;align-items:stretch;gap:7px}
  .nx-home11-settings-row select{width:100%;min-width:0}
}
.nx-home-hero[data-background="solid"] .nx-home-backdrop-collage,
.nx-home-hero[data-background="solid"] .nx-home-backdrop-current{display:none}
