/* ===================================================
   TSRGD Sign Database — Melba Swintex Branded
   =================================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #222222;
  background: #f5f5f5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: #cc0000; text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* === BRAND COLOURS ===
   Primary red:    #cc0000
   Dark nav:       #1e1e1e  
   Teal tagline:   #0065a2
   Light bg:       #f5f5f5
   White surface:  #ffffff
   Border:         #e0e0e0
   Text dark:      #222222
   Text muted:     #666666
*/

/* === TOP BAR === */
.top-bar {
  background: #d40107;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.02em;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.92;
}

/* === SITE HEADER === */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  padding: 14px 24px;
}
.header-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-svg { height: 54px; width: auto; }
.logo-img { height: 54px; width: auto; display: block; }

.header-tool-label {
  text-align: right;
  border-left: 3px solid #cc0000;
  padding-left: 16px;
}
.tool-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.01em;
}
.tool-sub {
  font-size: 11px;
  color: #888;
  font-weight: 400;
  margin-top: 2px;
}

/* === NAV BAR === */
/* ── SITE NAV ──────────────────────────────────────── */
.site-nav {
  background: #2a2a2a;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* Row 1: Section tabs + search */
.nav-sections {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-section-tabs {
  display: flex;
  align-items: stretch;
}

/* Each section tab */
.nav-section-tab {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 22px;
  height: 54px;
  background: none;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  min-width: 130px;
}
.nav-section-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.2s;
}
.nav-section-tab:hover { background: rgba(255,255,255,0.06); }

.nav-tab-label {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.2;
  transition: color 0.15s;
}
.nav-tab-sub {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.02em;
  margin-top: 2px;
  transition: color 0.15s;
}

/* TSRGD tab — gold highlight (primary/featured) */
.nav-section-tab--tsrgd { border-left: 3px solid #c8960c; }
.nav-section-tab--tsrgd .nav-tab-label { color: #f0b429; }
.nav-section-tab--tsrgd .nav-tab-sub   { color: rgba(240,180,41,0.55); }
.nav-section-tab--tsrgd::after         { background: transparent; }
.nav-section-tab--tsrgd:hover          { background: rgba(200,150,12,0.12); }
.nav-section-tab--tsrgd.active         { background: rgba(200,150,12,0.15); }
.nav-section-tab--tsrgd.active::after  { background: #f0b429; }
.nav-section-tab--tsrgd.active .nav-tab-label { color: #ffd666; }

/* Melba tab — red brand */
.nav-section-tab--melba .nav-tab-label { color: rgba(255,255,255,0.5); }
.nav-section-tab--melba:hover          { background: rgba(204,0,0,0.1); }
.nav-section-tab--melba.active         { background: rgba(204,0,0,0.12); }
.nav-section-tab--melba.active::after  { background: #cc0000; }
.nav-section-tab--melba.active .nav-tab-label { color: #ff6666; }
.nav-section-tab--melba.active .nav-tab-sub   { color: rgba(255,100,100,0.6); }

/* International tab — green */
.nav-section-tab--intl .nav-tab-label { color: rgba(255,255,255,0.5); }
.nav-section-tab--intl:hover          { background: rgba(100,180,100,0.1); }
.nav-section-tab--intl.active         { background: rgba(100,180,100,0.12); }
.nav-section-tab--intl.active::after  { background: #6db86d; }
.nav-section-tab--intl.active .nav-tab-label { color: #a0e0a0; }
.nav-section-tab--intl.active .nav-tab-sub   { color: rgba(160,224,160,0.7); }

/* Top bar drawings link */
.top-bar-drawings-link {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.top-bar-drawings-link:hover { color: #fff; }
.top-bar-divider { opacity: 0.35; margin: 0 6px; }

/* Row 2: Category strip */
.nav-cat-strip {
  background: #222222;
  border-top: 1px solid rgba(255,255,255,0.06);
  min-height: 0;
}
.nav-strip-panel {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.nav-strip-panel[hidden],
.nav-strip-intl[hidden],
.nav-intl-subcats[hidden],
.nav-cat-strip[hidden] {
  display: none !important;
}
.nav-strip-intl {
  flex-direction: column;
}
.nav-intl-countries {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.nav-intl-subcats {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  background: #1c1c1c;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-left: 8px;
}

/* Category buttons within the strip */
.nav-cat-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 15px;
  height: 40px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.nav-cat-btn:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-cat-btn.active { color: #ffffff; border-bottom-color: #f0b429; background: rgba(200,150,12,0.1); }

/* Other (catch-all TSRGD) */
.nav-cat-btn--other { opacity: 0.65; font-style: italic; }
.nav-cat-btn--other:hover { opacity: 1; }
.nav-cat-btn--other.active { opacity: 1; border-bottom-color: #888; background: rgba(255,255,255,0.06); }

/* Melba size buttons */
.nav-cat-btn--melba { color: #d4a0a0; }
.nav-cat-btn--melba:hover { color: #ffcccc; background: rgba(204,0,0,0.1); }
.nav-cat-btn--melba.active { color: #fff; border-bottom-color: #cc0000; background: rgba(204,0,0,0.15); }

/* International country buttons */
.nav-cat-btn--intl { color: #a0c8a0; font-size: 12px; }
.nav-cat-btn--intl:hover { color: #c8e8c8; background: rgba(100,180,100,0.1); }
.nav-cat-btn--intl.active { color: #fff; border-bottom-color: #6db86d; background: rgba(100,180,100,0.15); }

/* International sub-category buttons */
.nav-cat-btn--intl-sub { color: rgba(160,220,160,0.75); font-size: 10.5px; height: 36px; }
.nav-cat-btn--intl-sub:hover { color: #c8e8c8; background: rgba(100,180,100,0.08); }
.nav-cat-btn--intl-sub.active { color: #fff; border-bottom-color: #6db86d; background: rgba(100,180,100,0.12); }

/* Search (top-right of nav) */
.nav-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-left: 1px solid rgba(255,255,255,0.07);
}
.search-icon { color: rgba(255,255,255,0.4); flex-shrink: 0; }
.nav-search {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: #fff;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 12px;
  padding: 6px 10px 6px 2px;
  outline: none;
  width: 210px;
  transition: background 0.15s, border-color 0.15s;
}
.nav-search::placeholder { color: rgba(255,255,255,0.3); }
.nav-search:focus { background: rgba(255,255,255,0.12); border-color: rgba(240,180,41,0.5); }

/* === MAIN CONTENT === */
.site-main {
  flex: 1;
  padding: 28px 24px;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
}

/* === WELCOME PANEL === */
.welcome-panel {}
.welcome-inner {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #cc0000;
  border-radius: 4px;
  padding: 24px 28px;
  margin-bottom: 24px;
}
.welcome-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e1e1e;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.welcome-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 18px;
}
.welcome-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cat-pill {
  background: none;
  border: 1.5px solid #cc0000;
  color: #cc0000;
  border-radius: 3px;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cat-pill:hover {
  background: #cc0000;
  color: #fff;
}

/* Category cards grid on welcome page */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.cat-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-top: 3px solid #cc0000;
  border-radius: 4px;
  padding: 20px 20px 16px;
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.15s, transform 0.15s;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
}
.cat-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.cat-card--standard {
  border-top-color: #0065a2;
}
.cat-card--standard .cat-card-name {
  color: #0065a2;
}
.cat-card--other {
  border-top-color: #888888;
}
.cat-card--other .cat-card-name {
  color: #666666;
  font-style: italic;
}
/* Section header dividing TSRGD cards from Standard size cards */
.cat-section-header {
  grid-column: 1 / -1;   /* span full grid width */
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 4px;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0065a2;
}
.cat-section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #0065a2;
  opacity: 0.25;
}
/* Recently Added sign cards */
.recent-sign-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 12px 10px 10px;
  cursor: pointer;
  text-align: center;
  transition: box-shadow 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.recent-sign-card:hover {
  border-color: #cc0000;
  box-shadow: 0 2px 12px rgba(204,0,0,0.10);
}

/* Highlight flash when scrolled-to from Recently Added */
@keyframes sign-highlight-flash {
  0%   { box-shadow: 0 0 0 3px #cc0000, 0 4px 20px rgba(204,0,0,0.35); }
  60%  { box-shadow: 0 0 0 3px #cc0000, 0 4px 20px rgba(204,0,0,0.35); }
  100% { box-shadow: none; }
}
.sign-card--highlight {
  animation: sign-highlight-flash 2s ease-out forwards;
  border-color: #cc0000 !important;
}
.recent-sign-thumb {
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.recent-sign-thumb img {
  max-width: 100%;
  max-height: 90px;
  object-fit: contain;
  display: block;
}
.recent-sign-name {
  font-size: 11px;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.recent-sign-size {
  font-size: 10px;
  color: #999;
  letter-spacing: 0.03em;
}
.welcome-no-recent {
  grid-column: 1 / -1;
  color: #aaa;
  font-size: 0.85rem;
  padding: 8px 0;
}

.cat-card-name {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #cc0000;
  margin-bottom: 6px;
}
.cat-card-desc {
  font-size: 12.5px;
  color: #777;
  line-height: 1.5;
}
.cat-card-arrow {
  margin-top: 12px;
  color: #cc0000;
  font-size: 18px;
  font-weight: 700;
}

/* === SIGNS PANEL === */
.signs-panel { }
.panel-header {
  margin-bottom: 20px;
}
.panel-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e1e1e;
  letter-spacing: -0.02em;
}
.panel-count {
  font-size: 13px;
  color: #888;
  font-weight: 600;
}
.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  background: #fff5f5;
  border: 1px solid #f0c0c0;
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 12.5px;
  color: #cc0000;
  font-weight: 600;
}
.clear-filter {
  background: none;
  border: none;
  color: #cc0000;
  font-size: 16px;
  line-height: 1;
  padding: 0 0 1px;
  font-weight: 700;
}

/* === SIGNS GRID === */
.signs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

/* Colour group headers — span the full grid width */
.colour-group-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  border-bottom: 1px solid #e0e0e0;
  margin-bottom: 2px;
}
.colour-group-header:not(:first-child) {
  margin-top: 18px;
}
.colour-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.colour-count {
  margin-left: auto;
  font-weight: 400;
  color: #999;
  font-size: 0.73rem;
  letter-spacing: 0;
}

/* === SIGN CARD === */
.sign-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}
.sign-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.sign-img-wrap {
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  padding: 18px;
  border-bottom: 1px solid #eeeeee;
}
.sign-img-wrap img {
  max-height: 90px;
  max-width: 100%;
  object-fit: contain;
}
.sign-no-img {
  font-size: 11px;
  color: #bbb;
  text-align: center;
}
.sign-info {
  padding: 10px 12px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sign-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e1e1e;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sign-diagram {
  font-size: 11.5px;
  font-weight: 700;
  color: #cc0000;
  font-family: 'Courier New', Courier, monospace;
  margin-top: 2px;
}
.sign-category {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-top: 1px;
}

/* Download buttons */
.sign-actions {
  display: flex;
  border-top: 1px solid #eeeeee;
  overflow: hidden;
}
.btn-dl {
  flex: 1;
  border: none;
  padding: 8px 0;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.13s, color 0.13s;
}
.btn-svg {
  background: #cc0000;
  color: #ffffff;
}
.btn-svg:hover { background: #aa0000; }
.btn-png {
  background: #f2f2f2;
  color: #555;
  border-left: 1px solid #e0e0e0;
}
.btn-png:hover { background: #e8e8e8; color: #222; }
.btn-dl:disabled { opacity: 0.55; cursor: default; }

/* === SKELETON LOADERS === */
.skeleton {
  background: linear-gradient(90deg, #eeeeee 25%, #e0e0e0 50%, #eeeeee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 3px;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}
.skeleton-img { height: 130px; }
.skeleton-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { height: 12px; }
.skeleton-btns { display: flex; height: 34px; border-top: 1px solid #eee; }
.skeleton-btn { flex: 1; }
.skeleton-btn + .skeleton-btn { border-left: 1px solid #eee; }

/* === EMPTY / ERROR STATES === */
.state-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  color: #999;
}
.state-box strong { color: #444; display: block; margin-bottom: 6px; font-size: 15px; }
.state-box p { font-size: 13px; }

/* === FOOTER === */
.site-footer {
  background: #333333;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  padding: 18px 24px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand { font-weight: 600; color: rgba(255,255,255,0.75); }
.footer-credit a { color: rgba(255,255,255,0.55); text-decoration: underline; }
.footer-credit a:hover { color: rgba(255,255,255,0.9); }

/* === BREADCRUMB BAR === */
.breadcrumb-bar {
  background: #f6f6f6;
  border-bottom: 1px solid #e0e0e0;
  padding: 8px 24px;
}
.breadcrumb-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.breadcrumb-home {
  background: none;
  border: none;
  color: #d40107;
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: opacity 0.15s;
}
.breadcrumb-home:hover { opacity: 0.75; }
.breadcrumb-sep { color: #aaa; font-size: 14px; }
.breadcrumb-current {
  color: #555;
  font-weight: 600;
}

/* === LOADING STATE for nav buttons === */
.nav-cat-btn.loading { opacity: 0.6; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  /* Header */
  .site-header { padding: 12px 16px; }
  .header-tool-label { display: none; }
  .header-inner {
    justify-content: center;
  }
  .logo-svg { height: 44px; }
  .logo-img { height: 44px; }

  /* Main content */
  .site-main { padding: 20px 16px; }
  .signs-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .top-bar-right { display: none; }
  .top-bar { font-size: 10px; }

  /* Nav: tabs on top row, search below as full-width row */
  .nav-sections {
    flex-direction: column;
  }
  .nav-section-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-section-tab {
    flex: 1;
    min-width: 80px;
  }
  .nav-search-wrap {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 6px 12px;
    box-sizing: border-box;
  }
  .nav-search {
    width: 100%;
    font-size: 13px;
    padding: 7px 10px 7px 4px;
  }
  .nav-cat-btn { padding: 0 10px; font-size: 10.5px; }
}

/* ── Lightbox ────────────────────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}
.lightbox-panel {
  position: relative;
  z-index: 1;
  background: #1e1e1e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  max-width: min(92vw, 900px);
  max-height: 92vh;
  width: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.18);
}
.lightbox-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px 24px;
  min-height: 200px;
  background: repeating-conic-gradient(#2a2a2a 0% 25%, #222 0% 50%) 0 0 / 20px 20px;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #1a1a1a;
}
.lightbox-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.lightbox-meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 14px;
}
.lightbox-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lightbox-actions .btn-dl {
  font-size: 0.8rem;
  padding: 7px 16px;
}
