@charset "UTF-8";

/* ============================================================
   GALLERY 2 — CATEGORY SYSTEM
   Engraved Gunmetal Buttons + Gold Wash Hover + Lightbox
   Uses ONLY global tokens — no :root duplication
============================================================ */

@import url("global-tokens.css");

/* ============================================================
   PAGE OVERRIDES — Removes inherited padding/borders
============================================================ */

body {
  background: #000 !important;
  color: var(--canvas);
  font-family: var(--font-primary);
  margin: 0;
  padding: 0px;
}

.subhome-main,
.service-grid {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ============================================================
   PAGE TITLE
============================================================ */

.g2-title {
  text-align: center;
  font-size: 42px;
  color: var(--gold);
  margin-bottom: 40px;
}

/* ============================================================
   CATEGORY BAR — ENGRAVED GUNMETAL BUTTONS
============================================================ */

#g2-category-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.g2-cat-btn {
  padding: 12px 22px;
  background: var(--charcoal);
  border-radius: 10px;
  border: none;
  cursor: pointer;

  color: rgba(201,175,108,0.55); /* engraved gold */
  font-weight: 600;
  letter-spacing: .5px;

  /* Engraved + metallic */
  text-shadow:
    0px -1px 2px rgba(255,255,255,0.06),
    0px 1px 2px rgba(0,0,0,0.65);

  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;
}

/* Hover – Gold shimmer light wash */
.g2-cat-btn:hover {
  background: rgba(201,175,108,0.22);
  color: rgba(201,175,108,0.95);

  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);
}

/* ============================================================
   CATEGORY GALLERY GRID
============================================================ */

#g2-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  margin-bottom: 60px; /* Always give breathing room before footer */
  padding: 0 40px;        /* add left + right breathing room */
  box-sizing: border-box; /* ensures padding doesn’t break grid */
}

/* Prevent layout collapse when no category is selected */
#g2-gallery:empty {
  min-height: 100px; /* adjust as needed */
}

.g2-gallery-item {
  width: 100%;
  height: 220px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #222;
  transition: transform .25s ease;
}

.g2-gallery-item:hover {
  transform: scale(1.05);
}

.g2-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

.g2-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  object-fit: contain;
}

.g2-lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  cursor: pointer;
  color: white;
}

.g2-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  cursor: pointer;
  padding: 12px;
  color: white;
}

.g2-lightbox-nav.left { left: 40px; }
.g2-lightbox-nav.right { right: 40px; }
