@charset "UTF-8";
/* ============================================================
   gallery.css — FINAL CLEAN VERSION
   12x12s GRID + LIGHTBOX + HERO + FOOTER + BRAND TOKENS
============================================================ */

/* Base imports if you want to piggyback brand tokens */
@import url("global-tokens.css");

/* -------- GLOBAL -------- */
body {
  margin: 0;
  background: var(--steel);
  color: var(--canvas);
  font-family: "Futura","Arial Narrow",Arial,sans-serif;
}

/* ============================================================
   HERO SECTION
============================================================ */
.gallery-hero {
  position: relative;
  width: 100%;
  height: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: black;
}

.gallery-hero-img {
  position: absolute;
  inset: 0;
  background: url("../images/gallery-hero.jpg") center/cover no-repeat;
  opacity: 0.28;
}

.gallery-hero-overlay {
  position: relative;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.gallery-hero-overlay h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
}

.gallery-hero-overlay p {
  font-size: 1.1rem;
  color: var(--beige);
  line-height: 1.55;
}

/* ============================================================
   MAIN WRAPPER
============================================================ */
.service-grid {
  background: var(--canvas);
  color: var(--ink);
  padding: 0;
  margin: 0;
}

/* ============================================================
   12×12 GALLERY GRID (SQUARE PORTFOLIO)
============================================================ */

#gallery-container, .gallery-item, .service-grid, .subhome-main{
  position: relative !important;
  z-index: 0 !important;
}

#gallery-container {
  background: #000; /* Black gallery wall */
  padding: 50px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  justify-items: center;
}

.gallery-item {
  width: 220px;
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
  transition: transform .2s ease;
  background: #111;
}

.gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 0 18px rgba(255,255,255,0.22);
  outline: 2px solid rgba(201,175,108,0.35);
  outline-offset: 3px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
}

/* ============================================================
   ENGRAVED GUNMETAL BUTTONS (CATEGORY BUTTONS)
============================================================ */

.g2-cat-btn {
  padding: 12px 22px;
  background: #1B1B1D; /* gunmetal */
  color: rgba(201,175,108,0.55); /* muted engraved gold */
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .5px;
  cursor: pointer;

  /* ENGRAVED TEXT */
  text-shadow:
    0px -1px 2px rgba(255,255,255,0.06),
    0px 1px 2px rgba(0,0,0,0.65);

  /* Metal base sheen */
  box-shadow:
    inset 0 0 6px rgba(255,255,255,0.03),
    inset 0 -3px 6px rgba(0,0,0,0.4);

  transition:
    background .25s ease,
    color .25s ease,
    text-shadow .25s ease,
    box-shadow .25s ease;
}

.g2-cat-btn:hover {
  background: rgba(201,175,108,0.22); /* subtle gold light wash */
  color: rgba(201,175,108,0.9);

  text-shadow:
    0px 0px 6px rgba(201,175,108,0.55),
    0px 1px 2px rgba(0,0,0,0.25);

  box-shadow:
    inset 0 0 10px rgba(255,255,255,0.08),
    inset 0 -3px 8px rgba(0,0,0,0.5),
    0 0 8px rgba(201,175,108,0.25);
}

.g2-cat-btn:active {
  background: rgba(201,175,108,0.28);
  box-shadow:
    inset 0 0 12px rgba(255,255,255,0.12),
    inset 0 -3px 10px rgba(0,0,0,0.6);
}

/* ============================================================
   LIGHTBOX OVERLAY
============================================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.lightbox.show {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: high-quality;

  border-radius: 14px;
  box-shadow: 0 0 30px rgba(0,0,0,.4);
  animation: fadeZoom .25s ease;
}

@keyframes fadeZoom {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 44px;
  cursor: pointer;
  color: white;
  font-weight: 300;
  user-select: none;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  padding: 18px;
  font-size: 55px;
  color: white;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  opacity: 0.75;
  transition: opacity .2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }

/* ============================================================
   FOOTER
============================================================ */

footer.primary-footer {
  background: var(--burgundy);
  padding: 3rem 1.5rem;
  color: var(--reiki);
}

.primary-footer-inner {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem;
}

.primary-footer-col strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
}

/* Responsive Footer */
@media (max-width: 900px) {
  .primary-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .primary-footer-inner {
    grid-template-columns: 1fr;
  }
}
