.gallery { display: grid; gap: 3px; padding: 3px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

#lightbox { display: none; position: fixed; inset: 0; z-index: 1000; background: #080808; align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; display: block; transition: opacity 0.2s; user-select: none; }
#lightbox-img.fading { opacity: 0; }
#lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 24px; line-height: 1; transition: color 0.2s; padding: 8px; }
#lightbox-close:hover { color: var(--ivory); }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); font-size: 28px; line-height: 1; padding: 1rem; transition: color 0.2s; user-select: none; }
.lightbox-arrow:hover { color: var(--gold); }
#lightbox-prev { left: 1rem; }
#lightbox-next { right: 1rem; }
#lightbox-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: 0.3em; color: var(--muted); user-select: none; }

@media (max-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  #lightbox-img { max-width: 100vw; max-height: 85vh; }
  .lightbox-arrow { font-size: 22px; padding: 0.5rem; }
}
