/* =============================================
   Shared gallery page styles
   Used by custom-tattoos.html and cover-up.html
============================================= */

body { padding-top: 0; }

.gallery-page-hero {
  padding: 160px 0 50px;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(212,175,90,0.1), transparent 60%),
    var(--navy-950);
  text-align: center;
}
.gallery-page-hero__badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 30px;
}
.gallery-page-hero__cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-page-grid-section { padding-top: 50px; background: var(--navy-900); }
.gallery-page-count {
  text-align: center;
  color: var(--grey-dim);
  font-size: 0.92rem;
  margin-bottom: 30px;
}
.gallery-page-count strong { color: var(--gold-300); font-family: var(--font-display); font-size: 1.1rem; }

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.gallery-page-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212,175,90,0.14);
  cursor: pointer;
  transition: var(--transition);
  aspect-ratio: 1 / 1;
  background: var(--navy-950);
}
.gallery-page-item:hover { border-color: rgba(212,175,90,0.5); box-shadow: var(--shadow-soft); transform: translateY(-4px); }
.gallery-page-item picture { display: block; width: 100%; height: 100%; }
.gallery-page-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-page-item:hover img { transform: scale(1.08); }
.gallery-page-item__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(6,10,20,0.75);
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(212,175,90,0.3);
}
.gallery-page-item__zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6,10,20,0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-page-item:hover .gallery-page-item__zoom { opacity: 1; }
.gallery-page-item__zoom svg { width: 28px; height: 28px; color: var(--gold-300); }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6,10,20,0.94);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 88vw;
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  border: 1px solid rgba(212,175,90,0.25);
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 28px;
  color: var(--ivory);
  font-size: 2.2rem;
  line-height: 1;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}
.lightbox__close:hover { background: rgba(212,175,90,0.15); color: var(--gold-300); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ivory);
  font-size: 1.6rem;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  transition: var(--transition);
}
.lightbox__nav:hover { background: rgba(212,175,90,0.2); color: var(--gold-300); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ============ Bottom CTA ============ */
.gallery-page-cta { background: var(--navy-950); text-align: center; }
.gallery-page-cta__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 1080px) {
  .nav__cta-group .btn--gold { display: none; }
}

@media (max-width: 640px) {
  .gallery-page-hero { padding: 130px 0 40px; }
  .gallery-page-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.3rem; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 14px; right: 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .gallery-page-hero { padding: 110px 0 32px; }
  .gallery-page-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .gallery-page-hero__badges { gap: 8px; }
  .lightbox__img { max-width: 94vw; }
}
