/* Page-specific styles for Gallery */
.page-gallery h1 { color: var(--accent, #a78bfa); }

.gallery-hero { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center; }
.gallery-logo { width: 120px; height: auto; border-radius: .6rem; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 8px 24px rgba(0,0,0,.25); justify-self: start; }
@media (min-width: 880px) { .gallery-hero { grid-template-columns: 1.2fr .8fr; } .gallery-logo { justify-self: end; } }

.filters { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.filter-btn { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid rgba(255,255,255,.12); border-radius: .6rem; padding: .4rem .6rem; cursor: pointer; }
.filter-btn.active, .filter-btn:hover { color: var(--primary); border-color: rgba(23,245,151,.5); box-shadow: 0 0 0 3px rgba(23,245,151,.15); }

.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .6rem; }
.gal-item { position: relative; border-radius: .6rem; overflow: hidden; border: 1px solid rgba(23,245,151,0.2); background: rgba(0,0,0,.15); cursor: zoom-in; }
.gal-item img { width: 100%; height: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s ease, filter .3s ease; filter: saturate(1.05) contrast(1.02); }
.gal-item:hover img { transform: scale(1.03); }
.gal-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .35rem .5rem; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55)); font-size: .85rem; color: #e6fff5; }

.lightbox { position: fixed; inset: 0; display: none; place-items: center; background: rgba(0,0,0,.85); z-index: 1200; }
.lightbox.open { display: grid; }
.lightbox-inner { position: relative; max-width: min(92vw, 1000px); width: 100%; }
.lightbox img { width: 100%; height: auto; border-radius: .7rem; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-cap { margin-top: .5rem; color: var(--muted); text-align: left; }
.lb-close { position: absolute; top: -12px; right: -12px; width: 40px; height: 40px; border-radius: .6rem; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: var(--text); display: grid; place-items: center; cursor: pointer; }

@media (max-width: 520px) {
  .gal-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
