/* ============================================================
   NotusIMG — design system
   Concept: a self-hosted drop that gives you a claim ticket
   instead of an account. Dark ink room, warm paper stubs,
   stamp-ink accent, mono "printed" data.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700;800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --ink-bg:        #16161b;
  --ink-bg-2:      #1b1b21;
  --ink-surface:   #1f1f26;
  --ink-surface-2: #262630;
  --ink-border:    #34343e;
  --ink-border-lo: #26262e;

  --ticket-bg:      #201a13;
  --ticket-bg-2:    #17130e;
  --ticket-border:  #3c3021;
  --ticket-line:    #4a3c29;
  --text-ticket:    #f2ead9;
  --text-ticket-lo: #a89676;

  --stamp:         #5568d8;
  --stamp-hi:      #7488ee;
  --stamp-dim:     #3c4aa0;

  --text-hi:       #f5f1e8;
  --text-body:     #c7c4bd;
  --text-mute:     #83808a;

  --success:       #5ea87c;
  --danger:        #d16a56;
  --danger-hi:     #e88870;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --font-display: 'Unbounded', 'Segoe UI', sans-serif;
  --font-body:    'Inter', 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Consolas', monospace;

  --shadow-card: 0 1px 0 rgba(0,0,0,.4), 0 12px 28px -14px rgba(0,0,0,.65);
  --shadow-pop:  0 20px 50px -18px rgba(0,0,0,.75);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

*{ box-sizing: border-box; }
html{ color-scheme: dark; }
body{
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 12% -10%, #202028 0%, transparent 60%),
    radial-gradient(900px 700px at 110% 10%, #1c1c24 0%, transparent 55%),
    var(--ink-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--stamp-hi); text-decoration: none; }
a:hover{ text-decoration: underline; }

:focus-visible{
  outline: 2px solid var(--stamp-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,h2,h3{
  font-family: var(--font-display);
  color: var(--text-hi);
  margin: 0 0 .4em;
  letter-spacing: -.005em;
}

.mono{ font-family: var(--font-mono); }

/* ---------------------------------------------------------- */
/* Shell / chrome                                              */
/* ---------------------------------------------------------- */
.shell{
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 20px;
}

.brand{
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand:hover{ text-decoration: none; }
.brand-mark{
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--ink-bg);
  background: var(--stamp-hi);
  padding: 5px 8px;
  border-radius: 4px;
  transform: rotate(-2deg);
}
.brand-word{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text-hi);
  letter-spacing: -.01em;
}
.brand-word b{ color: var(--stamp-hi); font-weight: 700; }

.topbar-nav{
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--text-mute);
}
.topbar-nav a{ color: var(--text-mute); }
.topbar-nav a:hover{ color: var(--text-hi); text-decoration: none; }

.lang-switch{
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--ink-border);
  border-radius: 999px;
  padding: 3px;
  background: var(--ink-surface);
}
.lang-btn{
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}
.lang-btn .flag{ width: 16px; height: 11px; border-radius: 2px; overflow: hidden; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.lang-btn[aria-pressed="true"]{
  background: var(--ink-surface-2);
  color: var(--text-hi);
  box-shadow: inset 0 0 0 1px var(--ink-border);
}
.lang-btn:hover{ color: var(--text-hi); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow::before{
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(94,168,124,.18);
}

.lede{
  color: var(--text-mute);
  max-width: 46ch;
  font-size: 15.5px;
}

/* ---------------------------------------------------------- */
/* Buttons + form controls                                     */
/* ---------------------------------------------------------- */
.btn{
  --btn-fg: var(--text-hi);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-s);
  border: 1px solid var(--ink-border);
  background: var(--ink-surface-2);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.btn:hover{ border-color: #454550; background: #2b2b35; }
.btn:active{ transform: translateY(1px); }
.btn:disabled{ opacity: .45; cursor: not-allowed; }

.btn-stamp{
  background: var(--stamp);
  border-color: var(--stamp);
  color: #fff;
}
.btn-stamp:hover{ background: var(--stamp-hi); border-color: var(--stamp-hi); }

.btn-ghost{
  background: transparent;
  border-color: var(--ink-border);
  color: var(--text-body);
}

.btn-danger{
  background: transparent;
  border-color: rgba(209,106,86,.4);
  color: var(--danger-hi);
}
.btn-danger:hover{ background: rgba(209,106,86,.1); border-color: var(--danger-hi); }

.btn-sm{ padding: 7px 12px; font-size: 12.5px; border-radius: 5px; }
.btn-block{ width: 100%; }

/* ---------------------------------------------------------- */
/* Upload progress button — fills left to right like liquid     */
/* ---------------------------------------------------------- */
.upload-btn{
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.upload-btn-fill{
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--stamp-dim), var(--stamp-hi) 85%, #9fb0ff);
  transition: width .35s cubic-bezier(.22,.8,.3,1);
  z-index: 0;
}
.upload-btn-fill::after{
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 46px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(50%);
  filter: blur(2px);
  opacity: 0;
}
.upload-btn.is-uploading .upload-btn-fill::after{
  opacity: 1;
  animation: liquid-glint 1.1s ease-in-out infinite;
}
@keyframes liquid-glint{
  0%, 100%{ transform: translateX(30%); }
  50%{ transform: translateX(80%); }
}
.upload-btn.is-processing .upload-btn-fill{
  animation: liquid-pulse 1.3s ease-in-out infinite;
}
@keyframes liquid-pulse{
  0%, 100%{ filter: brightness(1); }
  50%{ filter: brightness(1.28); }
}
.upload-btn-label{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.upload-btn-percent{
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  display: inline-block;
  text-align: right;
}

.field{ display: flex; flex-direction: column; gap: 6px; }
.field label{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input[type="text"],
.field textarea,
.field select{
  background: var(--ink-surface);
  border: 1px solid var(--ink-border);
  color: var(--text-hi);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
}
.field textarea{ resize: vertical; min-height: 64px; }
.field input::placeholder, .field textarea::placeholder{ color: var(--text-mute); }

.chip-row{ display: flex; flex-wrap: wrap; gap: 8px; }
.chip{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .02em;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--ink-border);
  background: var(--ink-surface);
  color: var(--text-body);
  cursor: pointer;
  transition: border-color .12s ease, color .12s ease, background .12s ease;
}
.chip[aria-pressed="true"]{
  border-color: var(--stamp-hi);
  color: var(--text-hi);
  background: rgba(85,104,216,.16);
}

/* ---------------------------------------------------------- */
/* Dropzone — the "ticket window"                               */
/* ---------------------------------------------------------- */
.dropzone{
  position: relative;
  border: 1.5px dashed var(--ink-border);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, var(--ink-surface) 0%, var(--ink-bg-2) 100%);
  padding: 56px 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.dropzone:hover, .dropzone.is-drag{
  border-color: var(--stamp-hi);
  background: linear-gradient(180deg, #23232c 0%, #1c1c24 100%);
}
.dropzone.is-drag{ border-style: solid; }

.dropzone-glyph{
  width: 46px; height: 46px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--stamp-hi);
}
.dropzone h2{ font-size: 20px; margin-bottom: 6px; }
.dropzone p{ color: var(--text-mute); font-size: 13.5px; margin: 0; }
.dropzone .kbd{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-hi);
  background: var(--ink-surface-2);
  border: 1px solid var(--ink-border);
  border-radius: 4px;
  padding: 1px 6px;
}
#file-input{ position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------------------------------------------------------- */
/* Options panel                                                */
/* ---------------------------------------------------------- */
.panel{
  border: 1px solid var(--ink-border-lo);
  background: var(--ink-surface);
  border-radius: var(--radius-m);
  padding: 20px 22px;
}
.panel + .panel{ margin-top: 14px; }
.panel-title{
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.grid-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px){ .grid-2{ grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- */
/* Queue rows before upload                                     */
/* ---------------------------------------------------------- */
.queue{ display: flex; flex-direction: column; gap: 8px; }
.queue-row{
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--ink-border-lo);
  border-radius: var(--radius-s);
  background: var(--ink-surface);
}
.queue-thumb{
  width: 44px; height: 44px;
  border-radius: 5px;
  background: var(--ink-surface-2);
  object-fit: cover;
  border: 1px solid var(--ink-border);
}
.queue-info{ min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.queue-top-row{
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
}
.queue-name{ font-size: 13.5px; color: var(--text-hi); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-size{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); white-space: nowrap; }
.queue-remove{
  background: none; border: none; color: var(--text-mute); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 4px;
}
.queue-remove:hover{ color: var(--danger-hi); }
.queue-fields-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px){ .queue-fields-row{ grid-template-columns: 1fr; } }
.queue-input{
  background: var(--ink-bg-2);
  border: 1px solid var(--ink-border-lo);
  color: var(--text-hi);
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 12.5px;
  font-family: var(--font-body);
  width: 100%;
}
.queue-input::placeholder{ color: var(--text-mute); }
.queue-input:focus{ border-color: var(--stamp-hi); outline: none; }

/* ---------------------------------------------------------- */
/* Ticket stub — the signature component                        */
/* ---------------------------------------------------------- */
.ticket{
  position: relative;
  display: grid;
  grid-template-columns: 168px 1px 1fr;
  background: var(--ticket-bg);
  color: var(--text-ticket);
  border: 1px solid var(--ticket-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
@media (max-width: 620px){
  .ticket{ grid-template-columns: 1fr; }
  .ticket-perf{ display: none; }
}

.ticket-stub{
  position: relative;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ticket-bg-2);
}
.ticket-thumb{
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  background: var(--ink-surface-2);
  border: 1px solid var(--ticket-border);
}
.ticket-thumb.is-video{
  display: flex; align-items: center; justify-content: center;
  color: var(--text-ticket-lo);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.ticket-thumb-wrap{ position: relative; }
.thumb-play-badge{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(15,13,10,.55);
  backdrop-filter: blur(1px);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.thumb-play-badge svg{ width: 11px; height: 13px; margin-left: 2px; }
.ticket-idx{
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--text-ticket-lo);
}

.ticket-perf{
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0, transparent 6px,
      var(--ticket-line) 6px, var(--ticket-line) 7px,
      transparent 7px, transparent 13px
    );
  width: 1px;
}

.ticket-body{
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.ticket-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.ticket-name{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-ticket);
  word-break: break-word;
}
.ticket-meta{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ticket-lo);
  letter-spacing: .02em;
}

.ticket-stamp{
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--success);
  border: 1.5px solid var(--success);
  border-radius: 4px;
  padding: 3px 7px;
  transform: rotate(-4deg);
  white-space: nowrap;
  opacity: .9;
}
.ticket-stamp.is-danger{ color: var(--danger-hi); border-color: var(--danger-hi); }
.ticket-stamp.is-processing{ color: var(--stamp-hi); border-color: var(--stamp-hi); }

.barcode{
  display: flex;
  align-items: stretch;
  gap: 1px;
  height: 26px;
  opacity: .85;
}
.barcode i{ background: var(--text-ticket); display: block; flex: 0 0 auto; }

.ticket-links{ display: flex; flex-direction: column; gap: 8px; }
.link-row{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ink-bg-2);
  border: 1px solid var(--ticket-border);
  border-radius: var(--radius-s);
  padding: 7px 8px 7px 12px;
}
.link-row label{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-ticket-lo);
  flex: 0 0 auto;
  width: 44px;
}
.link-row input{
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-ticket);
}
.link-row input:focus{ outline: none; }
.copy-btn{
  flex: 0 0 auto;
  border: 1px solid var(--ticket-border);
  background: var(--ticket-bg-2);
  color: var(--text-ticket);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  border-radius: 4px;
  padding: 5px 9px;
  cursor: pointer;
}
.copy-btn:hover{ background: #2c2417; border-color: #55442c; }
.copy-btn.is-copied{ background: var(--success); border-color: var(--success); color: #10241a; }

.ticket-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--ticket-line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ticket-lo);
}
.ticket-foot a{ color: var(--stamp-hi); }


/* ---------------------------------------------------------- */
/* Page: view / album                                           */
/* ---------------------------------------------------------- */
.stage{
  border: 1px solid var(--ink-border-lo);
  background: var(--ink-surface);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stage-media{
  background:
    linear-gradient(45deg, #1a1a20 25%, transparent 25%) -8px 0/16px 16px,
    linear-gradient(-45deg, #1a1a20 25%, transparent 25%) -8px 0/16px 16px,
    linear-gradient(45deg, transparent 75%, #1a1a20 75%) -8px 0/16px 16px,
    linear-gradient(-45deg, transparent 75%, #1a1a20 75%) -8px 0/16px 16px,
    var(--ink-bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  max-height: 74vh;
}
.stage-media img, .stage-media video{
  max-width: 100%;
  max-height: 74vh;
  display: block;
}
.stage-info{
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--ink-border-lo);
}
.stage-title{ font-family: var(--font-display); color: var(--text-hi); font-size: 17px; margin: 0; }
.stage-sub{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); margin-top: 4px; }
.stage-actions{ display: flex; gap: 8px; flex-wrap: wrap; }

.owner-panel{
  margin-top: 14px;
  border: 1px dashed var(--ink-border);
  border-radius: var(--radius-m);
  padding: 16px 18px;
}
.owner-panel summary{
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-mute);
  list-style: none;
}
.owner-panel summary::-webkit-details-marker{ display:none; }
.owner-panel[open] summary{ margin-bottom: 14px; color: var(--text-hi); }

/* Gallery grid for albums */
.gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.gallery-item{
  position: relative;
  border-radius: var(--radius-s);
  overflow: hidden;
  border: 1px solid var(--ink-border-lo);
  background: var(--ink-surface);
  aspect-ratio: 1;
  display: block;
}
.gallery-item img{ width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.gallery-item:hover img{ transform: scale(1.04); }
.gallery-item .gallery-tag{
  position: absolute; left: 6px; bottom: 6px;
  font-family: var(--font-mono); font-size: 10px;
  background: rgba(20,20,24,.7);
  color: var(--text-hi);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------------------------------------------------------- */
/* Empty / loading / error states                               */
/* ---------------------------------------------------------- */
.state-block{
  text-align: center;
  padding: 72px 24px;
  color: var(--text-mute);
}
.state-block h2{ color: var(--text-hi); font-size: 19px; }
.state-block p{ max-width: 40ch; margin: 8px auto 0; font-size: 13.5px; }
.spinner{
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2.5px solid var(--ink-border);
  border-top-color: var(--stamp-hi);
  animation: spin .7s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ---------------------------------------------------------- */
/* Toast                                                        */
/* ---------------------------------------------------------- */
.toast-stack{
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
}
.toast{
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-hi);
  background: var(--ink-surface-2);
  border: 1px solid var(--ink-border);
  border-left: 3px solid var(--stamp-hi);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  box-shadow: var(--shadow-pop);
  animation: toast-in .18s ease;
}
.toast.is-danger{ border-left-color: var(--danger); }
@keyframes toast-in{ from{ opacity: 0; transform: translateY(6px); } }

/* Footer fine print — "terms on the back of the ticket" */
.finecopy{
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--ink-border-lo);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
}

.hidden{ display: none !important; }

/* ---------------------------------------------------------- */
/* Rename affordance next to the file title                    */
/* ---------------------------------------------------------- */
.title-row{ display: flex; align-items: center; gap: 8px; }
.rename-btn{
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--ink-border);
  background: var(--ink-surface-2);
  color: var(--text-mute);
  border-radius: 6px;
  cursor: pointer;
}
.rename-btn:hover{ color: var(--text-hi); border-color: #454550; }

/* ---------------------------------------------------------- */
/* Lightbox — click a photo to zoom, Picasa-style               */
/* ---------------------------------------------------------- */
.stage-media img{ cursor: zoom-in; }
.lightbox-overlay{
  position: fixed;
  inset: 0;
  background: rgba(10,10,12,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: lightbox-in .15s ease;
  overscroll-behavior: contain;
}
@keyframes lightbox-in{ from{ opacity: 0; } }
.lightbox-img{
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  transition: transform .2s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 3px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8);
}
.lightbox-close{
  position: absolute;
  top: 18px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink-border);
  background: var(--ink-surface-2);
  color: var(--text-hi);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover{ background: var(--ink-surface); }
.lightbox-hint{
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--text-mute);
  background: rgba(0,0,0,.4);
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
}
