/* ComicLearn Studio — Hyperknow-inspired light theme */

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

:root {
  --bg:       #ffffff;
  --surface:  #f9fafb;
  --surface2: #f3f4f6;
  --border:   #e5e7eb;
  --border2:  #d1d5db;
  --ink:      #111827;
  --muted:    #6b7280;
  --faint:    #9ca3af;
  --accent:   #111827;
  --lime:     #a3e635;
  --lime-bg:  #f7fee7;
  --ok:       #16a34a;
  --ok-bg:    #f0fdf4;
  --warn:     #d97706;
  --warn-bg:  #fffbeb;
  --err:      #dc2626;
  --err-bg:   #fef2f2;
  --blue:     #2563eb;
  --radius:   12px;
  --radius-lg:20px;
  --radius-pill: 999px;
  --shadow:   0 1px 4px rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.06);
  --shadow-sm:0 1px 3px rgba(0,0,0,.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, -apple-system, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
input, select, textarea, button { font: inherit; color: inherit; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }

/* ---------------------------------------------------------------- Auth */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--surface);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-logo-icon {
  width: 36px; height: 36px;
  background: var(--lime);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.auth-logo-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.5px;
}
.auth-card h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -.6px;
}
.auth-card .sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
  line-height: 1.5;
}
.auth-card label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 0 6px;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.auth-card input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.auth-card input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17,24,39,.08);
}
.auth-card .row { margin-top: 20px; }
.auth-card .row button { width: 100%; }
.auth-card .toggle {
  color: var(--muted);
  margin-top: 16px;
  font-size: 13px;
  text-align: center;
}
.auth-card .toggle a { cursor: pointer; color: var(--ink); font-weight: 600; }
.auth-err { color: var(--err); margin-top: 10px; font-size: 13px; min-height: 1em; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all .15s;
  white-space: nowrap;
  letter-spacing: -.1px;
}
.btn.accent {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn.accent:hover {
  background: #374151;
  border-color: #374151;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17,24,39,.2);
}
.btn.ghost {
  background: var(--bg);
  border-color: var(--border2);
  color: var(--muted);
}
.btn.ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.btn.lime:hover {
  filter: brightness(.95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(163,230,53,.35);
}
.btn.small { padding: 6px 12px; font-size: 12px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ---------------------------------------------------------------- App shell */
.app {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ---------------------------------------------------------------- Sidebar */
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.brand-icon {
  width: 30px; height: 30px;
  background: var(--lime);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.4px;
}
.brand-text span { color: var(--muted); font-weight: 400; }

.sidebar .who {
  padding: 10px 16px 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar .new { padding: 8px 12px 10px; }
.sidebar .new button { width: 100%; }
.sidebar .lib-title {
  padding: 12px 16px 6px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sidebar .lib { flex: 1; overflow-y: auto; padding: 0 8px 16px; }
.sidebar .proj {
  padding: 9px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background .12s;
}
.sidebar .proj:hover { background: var(--surface2); }
.sidebar .proj.active {
  background: var(--bg);
  border: 1.5px solid var(--border2);
  box-shadow: var(--shadow-sm);
}
.sidebar .proj .pn { font-weight: 600; font-size: 13px; color: var(--ink); }
.sidebar .proj .pm { color: var(--muted); font-size: 11px; }
.sidebar .foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sidebar .foot a { cursor: pointer; color: var(--muted); }
.sidebar .foot a:hover { color: var(--err); text-decoration: none; }
.version-btn {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.version-btn:hover { color: var(--ink); }

/* ---------------------------------------------------------------- Main */
.main {
  padding: 32px 40px 80px;
  max-width: 1160px;
  width: 100%;
}
.page-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.page-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.6px;
  color: var(--ink);
}
.page-header .grow { flex: 1; }
.toolbar { display: flex; gap: 8px; }

.empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--muted);
}
.empty h3 { color: var(--ink); margin-bottom: 8px; font-size: 20px; font-weight: 800; }
.empty .btn { margin-top: 16px; }

/* ---------------------------------------------------------------- Generator */
.gen-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1040px) { .gen-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--faint);
  margin-bottom: 16px;
}

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  color: var(--ink);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17,24,39,.06);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.kind-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.kind-tabs .tab {
  flex: 1;
  padding: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: all .12s;
  text-align: center;
}
.kind-tabs .tab:hover { border-color: var(--border2); color: var(--ink); }
.kind-tabs .tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.kind-tabs .tab[disabled] { opacity: .35; cursor: not-allowed; }

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
}
.check input { accent-color: var(--ink); width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.check label { color: var(--muted); font-size: 13px; cursor: pointer; margin: 0; }

.generate-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.2px;
}

/* ---------------------------------------------------------------- Stepper */
.stepper {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}
.stepper .s {
  flex: 1;
  padding: 7px 4px;
  border-radius: var(--radius);
  background: var(--surface2);
  border: 1.5px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  color: var(--faint);
  text-align: center;
  transition: all .2s;
  line-height: 1.3;
}
.stepper .s.done {
  background: var(--ok-bg);
  border-color: #bbf7d0;
  color: var(--ok);
}
.stepper .s.active {
  background: var(--lime-bg);
  border-color: #bef264;
  color: #4d7c0f;
}
.stepper .s.err {
  background: var(--err-bg);
  border-color: #fecaca;
  color: var(--err);
}

/* ---------------------------------------------------------------- Log */
.log {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  height: 180px;
  overflow-y: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: var(--muted);
}
.log .l { white-space: pre-wrap; }
.log .l.info  { color: var(--muted); }
.log .l.step  { color: var(--ink); font-weight: 600; }
.log .l.warn  { color: var(--warn); }
.log .l.error { color: var(--err); }
.log .l.done  { color: var(--ok); font-weight: 600; }
.log .l.panel { color: var(--blue); }

/* ---------------------------------------------------------------- Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tile:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.tile .ph {
  aspect-ratio: 4/5;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  font-size: 11px;
  overflow: hidden;
}
.tile .ph img,
.tile .ph object,
.tile .ph iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.tile .meta {
  padding: 8px 10px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.tile .meta b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: uppercase;
  border: 1.5px solid transparent;
}
.status-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.queued  { background: var(--surface2); color: var(--muted); border-color: var(--border); }
.status-pill.running { background: var(--lime-bg); color: #4d7c0f; border-color: #bef264; animation: pulse 1.4s infinite; }
.status-pill.done    { background: var(--ok-bg); color: var(--ok); border-color: #bbf7d0; }
.status-pill.error   { background: var(--err-bg); color: var(--err); border-color: #fecaca; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }

/* ---------------------------------------------------------------- Run pane */
.run-pane { display: flex; flex-direction: column; gap: 16px; }

.runs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}
.runs-list .ri {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color .12s, box-shadow .12s;
}
.runs-list .ri:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-sm);
}
.runs-list .ri .t { font-weight: 600; font-size: 13px; color: var(--ink); }
.runs-list .ri .sm { color: var(--muted); font-size: 11px; }

/* ---------------------------------------------------------------- Run footer */
.run-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
#pdfLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--lime);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .15s, box-shadow .15s;
}
#pdfLink:hover {
  filter: brightness(.95);
  box-shadow: 0 4px 12px rgba(163,230,53,.4);
  text-decoration: none;
}

/* ---------------------------------------------------------------- Modal */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.4);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  padding: 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
}
.release-modal { max-width: 620px; }
.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.modal .modal-head h3 { margin-bottom: 0; }
.modal-close {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.modal-close:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.release-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 62vh;
  overflow-y: auto;
}
.release-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}
.release-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}
.release-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.release-title b {
  color: var(--ink);
  font-size: 14px;
}
.release-title span,
.release-top time {
  color: var(--muted);
  font-size: 12px;
}
.release-item ul {
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}
.empty-inline {
  color: var(--muted);
  font-size: 13px;
}
.modal h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 18px;
  color: var(--ink);
}
.modal .actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 18px;
}

/* ---------------------------------------------------------------- PDF dropzone */
.dropzone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over {
  border-color: var(--ink);
  background: var(--lime-bg);
}
.dropzone.has-file { border-style: solid; border-color: #bef264; background: var(--lime-bg); }
.dropzone .dz-icon { font-size: 22px; color: var(--faint); }
.dropzone .dz-text { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.dropzone .dz-text b { color: var(--ink); }
.dropzone .dz-file { font-size: 12px; color: #4d7c0f; font-weight: 600; margin-top: 6px; word-break: break-all; }

.hint {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------- Page progress bar */
.pagebar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pagebar-label {
  font-size: 11px;
  font-weight: 700;
  color: #4d7c0f;
  white-space: nowrap;
}
.pagebar-track {
  flex: 1;
  height: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.pagebar-fill {
  height: 100%;
  width: 0%;
  background: var(--lime);
  border-radius: 99px;
  transition: width .4s ease;
}

/* ---------------------------------------------------------------- Download links */
.dl-links { display: flex; gap: 8px; align-items: center; }
#worksheetLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg);
  color: var(--ink);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .15s;
}
#worksheetLink:hover { border-color: var(--ink); text-decoration: none; }

/* ---------------------------------------------------------------- QA badges */
.qa-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  display: none;
}
.qa-badge.pass { display: inline-block; background: var(--ok-bg); color: var(--ok); border: 1px solid #bbf7d0; }
.qa-badge.warn { display: inline-block; background: var(--warn-bg); color: var(--warn); border: 1px solid #fde68a; }
.qa-badge.fail { display: inline-block; background: var(--err-bg); color: var(--err); border: 1px solid #fecaca; }

.tile { cursor: zoom-in; }
.tile .meta .cap {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55%;
}

.runs-list .ri.active {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.log .l.qa { color: var(--blue); }

/* ---------------------------------------------------------------- Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.78);
  backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox .lb-stage {
  display: flex;
  gap: 16px;
  align-items: stretch;
  max-width: 94vw;
}
.lightbox .lb-edit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  flex-shrink: 0;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 60px rgba(0,0,0,.4);
  align-self: center;
}
.lightbox .lb-edit h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.3px;
}
.lightbox .lb-edit .lb-edit-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.lightbox .lb-edit textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  min-height: 130px;
  resize: vertical;
  outline: none;
}
.lightbox .lb-edit textarea:focus { border-color: var(--ink); }
.lightbox .lb-edit-msg { font-size: 12px; color: var(--warn); min-height: 1em; }
@media (max-width: 860px) {
  .lightbox .lb-stage { flex-direction: column; overflow-y: auto; max-height: 90vh; }
  .lightbox .lb-edit { width: auto; }
}
.lightbox .lb-body {
  max-width: min(760px, 92vw);
  max-height: 84vh;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,.4);
}
.lightbox .lb-body img,
.lightbox .lb-body object {
  display: block;
  max-width: min(760px, 92vw);
  max-height: 84vh;
  width: auto;
  height: auto;
}
.lightbox .lb-caption {
  color: #e5e7eb;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
  max-width: 80vw;
}
.lightbox .lb-close {
  position: absolute;
  top: 18px; right: 22px;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  transition: background .15s;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,.25); }
