*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: system-ui, -apple-system, sans-serif; background: #0f0f1a; color: #e2e2f0; min-height: 100vh; }

.gal-header { padding: 50px 20px 30px; text-align: center; background: linear-gradient(to bottom, rgba(0,0,0,.5), transparent); border-bottom: 1px solid rgba(255,255,255,.05); }
.gal-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: #fff; margin-bottom: 8px; }
.gal-header .count { font-size: .9rem; color: rgba(255,255,255,.4); }
.gal-container { max-width: 1400px; margin: 0 auto; padding: 28px 20px 50px; }

.gal-grid { column-count: 3; column-gap: 15px; }
.gal-item { break-inside: avoid; margin-bottom: 15px; position: relative; cursor: pointer; overflow: hidden; border-radius: 10px; border: 1px solid rgba(255,255,255,.05); transition: transform .2s, border-color .2s; }
.gal-item:hover { transform: scale(1.02); border-color: #f9731655; }
.gal-item img { width: 100%; display: block; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.05); }

.gal-item .caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 16px; background: linear-gradient(transparent, rgba(0,0,0,.85)); opacity: 0; transition: opacity .3s; }
.gal-item:hover .caption { opacity: 1; }
.caption h3 { font-size: .88rem; font-weight: 700; margin-bottom: 3px; color: #fff; }
.caption p  { font-size: .75rem; color: rgba(255,255,255,.6); }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.97); display: none; align-items: center; justify-content: center; z-index: 1000; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 6px; animation: lbIn .2s ease; }
@keyframes lbIn { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-info { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); text-align: center; color: #fff; white-space: nowrap; }
.lb-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.lb-info p  { color: rgba(255,255,255,.5); font-size: .88rem; }
.lb-close { position: absolute; top: 18px; right: 20px; width: 42px; height: 42px; background: rgba(255,255,255,.1); border: none; border-radius: 50%; color: #fff; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; background: rgba(255,255,255,.1); border: none; border-radius: 50%; color: #fff; font-size: 1.6rem; cursor: pointer; transition: background .15s; display: flex; align-items: center; justify-content: center; }
.lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.back-link { display: inline-flex; align-items: center; gap: 7px; margin: 16px 20px; padding: 8px 16px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); text-decoration: none; border-radius: 7px; font-size: .85rem; border: 1px solid rgba(255,255,255,.08); transition: all .15s; }
.back-link:hover { background: rgba(255,255,255,.12); color: #fff; }

@media (max-width: 768px) { .gal-grid { grid-template-columns: repeat(2, 1fr); column-count: 2; } .lb-nav { width: 40px; height: 40px; font-size: 1.2rem; } }
@media (max-width: 480px) { .gal-grid { grid-template-columns: 1fr; column-count: 1; } }
