:root {
  --ink: #000000;
  --panel: #111111;
  --line: #2a2a2a;
  --paper: #ffffff;
  --muted: #888888;
  --gold: #b89c6e;
  --success: #4ade80;
  --danger: #ef4444;
  --card-hover: #1a1a1a;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.topbar {
  height: 64px;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  text-decoration: none;
  color: var(--paper);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.topbar nav { display: flex; gap: 8px; }
.nav-link {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.nav-link.active,
.nav-link:hover { color: var(--paper); background: var(--panel); }

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) clamp(16px, 4vw, 48px);
}

.eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

/* Home */
.lots-header {
  margin-bottom: 24px;
}
.lots-header h1 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.2;
}
.lots-header p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 16px;
  max-width: 560px;
  line-height: 1.5;
}

.close-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 12px;
}
.close-note strong { color: var(--gold); }

/* Lot grid - exactly 3 columns on desktop */
.lot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lot-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.lot-card:hover {
  border-color: var(--gold);
  background: var(--card-hover);
}
.lot-card:active { transform: scale(0.995); }
.lot-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.lot-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #1a1a1a;
}

.lot-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.lot-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lot-card h2 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  line-height: 1.2;
}

.prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 12px;
}
.prices > div { display: flex; flex-direction: column; gap: 2px; }
.prices small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.prices b { font-size: 15px; font-weight: 500; }
.prices b.offer { color: var(--gold); }

.offer-count {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 12px;
}

.card-cta {
  display: block;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.card-cta:hover { border-color: var(--gold); background: var(--card-hover); }
.card-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--line);
}

/* Detail view */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 12px;
  transition: color 0.15s;
}
.back-link:hover { color: var(--paper); }

/* Mobile-first detail layout */
.detail {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.15s;
}
.back-link:hover { color: var(--paper); }

.main-photo-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}
#main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  will-change: transform;
}
.zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: var(--muted);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.5s ease;
  z-index: 5;
}
@media (max-width: 640px) {
  .zoom-hint {
    bottom: 8px;
    font-size: 9px;
    padding: 3px 8px;
  }
}
.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.thumb {
  flex: 0 0 80px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.15s;
}
.thumb.active,
.thumb:hover { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Share compact - mobile */
.share-compact {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.share-compact .share-title {
  font-size: 10px;
  margin-bottom: 8px;
}
.share-compact .share-buttons { gap: 6px; }
.share-compact .share-btn {
  padding: 8px 10px;
  font-size: 11px;
}
.share-compact .share-btn span { display: none; }

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-info .eyebrow { margin-bottom: 4px; }
.detail-info h1 {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}
.description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Bid card - compact on mobile */
.bid-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.winner-banner {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--success);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.winner-banner strong { color: var(--success); }
.winner-banner.closed {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
}
.winner-banner.closed strong { color: var(--danger); }
.winner-banner.sold {
  background: rgba(74, 222, 128, 0.15);
  border-color: var(--success);
}
.winner-banner.sold strong { color: var(--success); }

.bid-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.bid-header span { display: flex; flex-direction: column; gap: 2px; }
.bid-header small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.bid-header b { font-size: clamp(22px, 6vw, 28px); font-weight: 600; color: var(--gold); }

.bid-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.bid-meta .separator {
  color: var(--line);
}
.bid-meta #countdown {
  color: var(--gold);
  font-weight: 500;
}
.bid-meta #countdown.closed {
  color: var(--danger);
}

.bid-card label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.quick {
  padding: 10px 8px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quick:hover { border-color: var(--gold); background: var(--card-hover); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.form-grid label { display: flex; flex-direction: column; gap: 4px; }
.form-grid input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 16px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}
.form-grid input::placeholder { color: var(--muted); }
.form-grid input:focus { border-color: var(--gold); }

#amount {
  text-align: right;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  padding-right: 16px;
}
#amount::placeholder { text-align: right; opacity: 0.5; }

@media (min-width: 700px) {
  #amount { font-size: 20px; }
}

.warning-text {
  color: var(--muted);
  font-size: 11px;
  margin: -2px 0 8px;
  line-height: 1.4;
}

.field-error {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  margin-bottom: 4px;
  min-height: 14px;
  transition: color 0.15s, opacity 0.15s;
  opacity: 0;
}
.field-error:not(:empty) { opacity: 1; }

.form-grid input.has-error,
.form-grid textarea.has-error,
.form-grid select.has-error {
  border-color: var(--gold);
  background: rgba(184, 156, 110, 0.04);
}

.form-success {
  font-size: 12px;
  color: var(--gold);
  margin: 2px 0 8px;
  min-height: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}
.form-success:not(:empty) { opacity: 1; }

.bid-submit {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--gold);
  border: 0;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.bid-submit:hover:not(:disabled) { background: #d4b58d; }
.bid-submit:active:not(:disabled) { transform: scale(0.99); }
.bid-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--gold);
}

/* History */
.history {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.history h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
}
.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.history-row:last-child { border-bottom: 0; }
.history-row.current { color: var(--gold); }
.history-row .bidder { font-weight: 500; }
.history-row .bid-amount { font-weight: 600; }

/* Share section */
.share-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.share-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.share-btn:hover {
  border-color: var(--gold);
  background: var(--card-hover);
}
.share-btn svg {
  flex-shrink: 0;
}
.share-btn span {
  display: none;
}
@media (min-width: 480px) {
  .share-btn span {
    display: inline;
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 12px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  z-index: 100;
  animation: slideIn 0.2s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Admin */
.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.admin-head h1 {
  font-size: 22px;
  font-weight: 500;
  margin: 4px 0 0;
}
.admin-head p { color: var(--muted); font-size: 14px; margin: 0; }

.ghost {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.ghost:hover { border-color: var(--gold); color: var(--paper); background: var(--card-hover); }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.admin-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.admin-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.admin-card h2 { font-size: 15px; font-weight: 500; margin: 0 0 16px; }
.admin-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.admin-line:last-of-type { border-bottom: 0; }
.admin-line b { color: var(--gold); font-weight: 600; }

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}
.admin-actions .primary { width: 100%; }
.admin-actions .ghost { width: 100%; }

.admin-detail {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.admin-detail h2 { font-size: 15px; font-weight: 500; margin: 0 0 16px; }
.admin-detail .history { background: transparent; border: 0; padding: 0; }
.admin-detail .history h3 { display: none; }

/* Responsive - Tablet 700px - 1099px */
@media (min-width: 700px) and (max-width: 1099px) {
  .topbar { height: 64px; padding: 0 clamp(16px, 4vw, 48px); }
  .brand { font-size: 18px; }
  .nav-link { font-size: 12px; padding: 8px 12px; }
  main { padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px); }

  .lot-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  
  .detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
  }
  
  .detail-media {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .main-photo-wrap { border-radius: 8px; }
  #main-photo { aspect-ratio: 4 / 3; }
  .thumbs { gap: 8px; margin-top: 12px; }
  .thumb { flex: 0 0 calc((100% - 24px) / 4); height: 70px; }
  
  .share-compact { display: none; }
  
  .detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .detail-info h1 { font-size: clamp(26px, 4vw, 36px); }
  
  .bid-card { padding: 20px; }
  .bid-header { margin-bottom: 16px; padding-bottom: 16px; }
  .bid-header b { font-size: 28px; }
  
  .form-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
  .form-grid .full { grid-column: 1 / -1; }
  .form-grid input { height: 48px; font-size: 15px; }
  .form-grid label { gap: 4px; }
  .bid-submit { height: 48px; font-size: 12px; }
  
  .history { padding: 16px; }
  
  .share-compact { display: none; }
  .share-section:not(.share-compact) { display: none; }
}

/* Responsive - Desktop >= 1100px */
@media (min-width: 1100px) {
  .topbar { height: 64px; padding: 0 clamp(16px, 4vw, 48px); }
  .brand { font-size: 18px; }
  .nav-link { font-size: 12px; padding: 8px 12px; }
  main { padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px); }

  .lot-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-grid { grid-template-columns: repeat(3, 1fr); }

  .detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
  }
  
  .detail-media {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .back-link {
    margin-bottom: 8px;
  }
  
  .main-photo-wrap {
    border-radius: 8px;
  }
  
  #main-photo {
    aspect-ratio: 4 / 3;
  }
  
  .thumbs {
    gap: 8px;
    margin-top: 12px;
  }
  .thumb {
    flex: 0 0 calc((100% - 24px) / 4);
    height: 70px;
  }
  
  .share-compact {
    display: block;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .share-compact .share-title {
    font-size: 10px;
    margin-bottom: 8px;
  }
  .share-compact .share-buttons { gap: 8px; }
  .share-compact .share-btn {
    padding: 8px 12px;
    font-size: 11px;
  }
  .share-compact .share-btn span { display: inline; }
  
  .detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .detail-info .eyebrow { margin-bottom: 4px; }
  .detail-info h1 { font-size: clamp(26px, 3.5vw, 34px); }
  .description { font-size: 14px; line-height: 1.5; }
  
  .bid-card { padding: 20px; }
  .bid-header { margin-bottom: 16px; padding-bottom: 16px; }
  .bid-header b { font-size: clamp(26px, 4vw, 32px); }
  .bid-meta { margin-top: 8px; font-size: 11px; }
  
  .quick-row { gap: 8px; margin-bottom: 12px; }
  .quick { padding: 10px 8px; font-size: 11px; }
  
  .form-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
  .form-grid .full { grid-column: 1 / -1; }
  .form-grid input { height: 48px; font-size: 15px; }
  .form-grid label { gap: 4px; }
  .form-grid label > span:first-child { font-size: 10px; }
  
  #amount { font-size: 20px; padding-right: 12px; }
  
  .warning-text { font-size: 10px; margin: -2px 0 8px; }
  .form-success { font-size: 11px; margin: 2px 0 8px; }
  .bid-submit { height: 44px; font-size: 11px; }
  
  .history { padding: 12px; }
  .history h3 { font-size: 10px; margin-bottom: 8px; }
  .history-row { padding: 6px 0; font-size: 12px; }
  
  .share-section:not(.share-compact) { display: none; }
}

/* Mobile <= 640px */
@media (max-width: 640px) {
  .lot-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .detail { flex-direction: column; gap: 24px; }
}

/* ─────────────────────────────────────────────────────────────
   Lightbox / Image Viewer (zoom + pan)
   ───────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lightbox.hidden { display: none; }

.lightbox-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  z-index: 10;
}
.lightbox-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lightbox-title-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
}
.lightbox-title-meta {
  font-size: 11px;
  color: var(--muted);
}
.lightbox-close {
  background: none;
  border: 0;
  color: var(--paper);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}
.lightbox-stage:active { cursor: grabbing; }
.lightbox-stage.panning { cursor: grabbing; }

.lightbox-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100%;
  min-height: 100%;
  transition: width 0.1s, height 0.1s;
}
.lightbox-image {
  max-width: none;
  max-height: none;
  user-select: none;
  pointer-events: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: 0;
  color: var(--paper);
  font-size: 28px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.15s, background 0.15s;
  z-index: 5;
}
.lightbox-nav:hover { opacity: 1; background: rgba(0, 0, 0, 0.8); }
.lightbox-nav:disabled { opacity: 0.2; cursor: not-allowed; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-toolbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px 20px;
  z-index: 10;
  flex-wrap: wrap;
}
.lb-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.lb-btn:hover { border-color: var(--gold); background: var(--card-hover); }
.lb-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.lb-btn.lb-fit { background: var(--gold); color: #000; border-color: var(--gold); }
.lb-btn.lb-fit:hover { background: #d4b58d; }
.lb-page-label,
.lb-zoom-label {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 48px;
  text-align: center;
}

@media (max-width: 640px) {
  .lightbox-header { padding: 12px 16px; }
  .lightbox-toolbar { padding: 12px 16px; gap: 12px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 24px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lb-btn { padding: 6px 10px; font-size: 12px; }
}