:root { --bg: #050505; --text: #f2f2f2; --muted: #a8a8a8; --brand: #c02025; --line: rgba(255,255,255,.12); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 400 16px/1.5 system-ui, -apple-system, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* Header */
.gal-header { position: sticky; top: 0; z-index: 10; background: rgba(5,5,5,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.gal-header h1 { font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gal-header a { font-size: 13px; color: var(--muted); }

/* Grid */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 24px; max-width: 1400px; margin: 0 auto; }
.gal-grid img { width: 100%; height: 280px; object-fit: cover; border-radius: 4px; cursor: zoom-in; transition: transform .3s; }
.gal-grid img:hover { transform: scale(1.02); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox .close { position: absolute; top: 16px; right: 24px; font-size: 32px; color: #fff; cursor: pointer; background: none; border: 0; }

/* Empty state */
.gal-empty { text-align: center; padding: 80px 24px; color: var(--muted); }

/* Admin */
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 24px; }
.admin-wrap h2 { margin-bottom: 16px; }
.admin-login { max-width: 360px; margin: 80px auto; padding: 24px; border: 1px solid var(--line); border-radius: 8px; }
.admin-login input { width: 100%; padding: 10px 12px; background: #111; border: 1px solid var(--line); color: var(--text); border-radius: 4px; margin-bottom: 12px; }
.admin-login button { width: 100%; padding: 10px; background: var(--brand); color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-weight: 600; }
.dropzone { border: 2px dashed var(--line); border-radius: 8px; padding: 40px; text-align: center; color: var(--muted); margin-bottom: 24px; cursor: pointer; }
.dropzone.drag { border-color: var(--brand); color: var(--text); }
.admin-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-bottom: 24px; }
.admin-list img { width: 100%; height: 120px; object-fit: cover; border-radius: 4px; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.admin-actions button { padding: 10px 16px; background: var(--brand); color: #fff; border: 0; border-radius: 4px; cursor: pointer; font-weight: 600; }
.admin-actions button.secondary { background: #333; }
.note { color: var(--muted); font-size: 13px; margin-top: 12px; }

@media (max-width: 600px) { .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 12px; } .gal-grid img { height: 200px; } }