:root{
  --bg:#07070a;
  --card:#0f1720;
  --muted:#9aa4b2;
  --accent:#8b5cf6;
  --glass: rgba(255,255,255,0.04);
}
*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,Arial,sans-serif;background:linear-gradient(180deg,#030306,#07070a);color:#e6eef6;min-height:100vh}
.top{display:flex;justify-content:center;align-items:center;padding:20px;border-bottom:1px solid rgba(255,255,255,0.03)}
.top h1{margin:0;font-size:22px;letter-spacing:1px}
.gallery{padding:24px;max-width:1100px;margin:0 auto}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px}
figure{margin:0;background:var(--card);border-radius:10px;padding:8px;overflow:hidden;box-shadow:0 6px 18px rgba(0,0,0,0.5);transition:transform .18s,box-shadow .18s}
figure:hover{transform:translateY(-6px);box-shadow:0 14px 30px rgba(0,0,0,0.6)}
figure img{width:100%;height:160px;object-fit:cover;border-radius:6px;display:block}
figcaption{font-size:12px;color:var(--muted);padding-top:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.foot{text-align:center;padding:28px;color:var(--muted)}
.empty{color:var(--muted);text-align:center;margin-bottom:18px}
/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(2,4,7,0.86);display:flex;align-items:center;justify-content:center;z-index:999;opacity:0;pointer-events:none;transition:opacity .18s}
.lightbox[aria-hidden="false"]{opacity:1;pointer-events:auto}
.lb-content{max-width:90%;max-height:85%;display:flex;flex-direction:column;align-items:center;gap:10px}
.lb-content img{max-width:100%;max-height:80vh;border-radius:6px;box-shadow:0 12px 40px rgba(0,0,0,0.6)}
.lb-caption{color:var(--muted);font-size:13px}
.lb-close{position:fixed;top:18px;right:18px;background:transparent;border:0;color:#fff;font-size:32px;cursor:pointer}
.lb-nav{position:fixed;top:50%;transform:translateY(-50%);background:var(--glass);border:0;color:#fff;font-size:34px;padding:10px 14px;border-radius:8px;cursor:pointer}
.lb-prev{left:18px}
.lb-next{right:18px}
.lb-nav:hover{background:rgba(255,255,255,0.06)}
@media (max-width:600px){
  .grid{grid-template-columns:repeat(2,1fr)}
  .lb-nav{font-size:24px;padding:8px 10px}
}
