/* ============================================================
   BULLZ EYE BILLIARDS — Gallery Page Styles
   ============================================================ */

.gallery-page { padding-top: calc(var(--nav-h) + 60px); padding-bottom: 100px; }

/* Filter tabs reused from products.css pattern */
.gallery-page .filter-tabs { margin-bottom: 3rem; }

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.gallery-item:hover img { transform: scale(1.1); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay .cat {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.gallery-item-overlay h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

/* Gold border glow on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212,168,67,0);
  pointer-events: none;
  transition: border-color 0.35s;
}
.gallery-item:hover::after { border-color: rgba(212,168,67,0.45); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 900px;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid var(--border);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  background: rgba(26,26,26,0.9);
  border: 1px solid var(--border);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }
.lightbox-caption {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.lightbox-caption .cat { font-size: 0.7rem; color: var(--gold); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.25rem; }
.lightbox-caption h4 { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); }

/* Responsive */
@media (max-width: 1024px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
