/* ═══════════════════════════════════════
   GALLERY PAGE — ADDITIONAL STYLES
═══════════════════════════════════════ */

/* Re-use page-hero, breadcrumb, page-title, page-sub from services.css */
.page-hero { position: relative; padding: 160px 0 80px; overflow: hidden; background: var(--dark); }
.page-hero-checker {
  position: absolute; inset: 0; opacity: 0.035;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%),
    linear-gradient(-45deg, #fff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fff 75%),
    linear-gradient(-45deg, transparent 75%, #fff 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(232,180,0,0.06) 0%, transparent 55%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-race-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 6px;
  background-image:
    linear-gradient(45deg, var(--gold) 25%, transparent 25%),
    linear-gradient(-45deg, var(--gold) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--gold) 75%),
    linear-gradient(-45deg, transparent 75%, var(--gold) 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #111;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.8rem; color: var(--gray); }
.breadcrumb a { color: var(--gray); text-decoration: none; transition: color var(--transition); }
.breadcrumb a:hover { color: var(--gold); }
.bc-sep { color: rgba(232,180,0,0.25); }
.page-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: 0.03em; line-height: 1; margin-bottom: 16px; }
.page-sub { font-size: 1.05rem; color: var(--gray); max-width: 520px; }
.nav-active { color: var(--gold) !important; }

/* ── FILTER BAR ──────────────────────── */
.filter-bar {
  background: var(--dark2);
  border-bottom: 1px solid rgba(232,180,0,0.08);
  position: sticky;
  top: 74px;
  z-index: 90;
}
.filter-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
  padding: 9px 20px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gray);
  background: transparent;
  border: 1px solid rgba(232,180,0,0.12);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.filter-pill:hover { color: var(--white); border-color: rgba(232,180,0,0.25); }
.filter-pill.active {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
}

/* ── GALLERY MAIN ────────────────────── */
.gallery-main {
  background: var(--black);
  padding: 64px 0 100px;
}

/* ── SHOWCASE STRIP ──────────────────── */
.shop-showcase {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 3px;
  margin-bottom: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.showcase-main {
  position: relative;
  background: var(--dark2);
  overflow: hidden;
  cursor: pointer;
}
.showcase-inner {
  width: 100%;
  height: 100%;
  line-height: 0;
  min-height: 380px;
}
.showcase-inner svg { width: 100%; height: auto; display: block; }
.showcase-inner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.showcase-main:hover .showcase-inner img { transform: scale(1.03); }

.showcase-side {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.showcase-small {
  position: relative;
  background: var(--dark2);
  overflow: hidden;
  flex: 1;
  cursor: pointer;
}
.ss-inner { width: 100%; height: 100%; line-height: 0; min-height: 180px; }
.ss-inner svg { width: 100%; height: auto; display: block; }
.ss-inner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.showcase-small:hover .ss-inner img { transform: scale(1.03); }

/* Overlay labels */
.showcase-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(4px);
  transition: transform var(--transition);
}
.showcase-main:hover .showcase-label,
.showcase-small:hover .showcase-label { transform: translateY(0); }
.showcase-label-sm { padding: 14px 16px; }

.sl-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.sl-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}
.showcase-label-sm .sl-title { font-size: 0.82rem; }

/* ── MASONRY GALLERY GRID ────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 3px;
}

.gallery-item {
  position: relative;
  background: var(--dark2);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.gallery-item:hover { z-index: 2; }
.gallery-item:hover .gi-overlay { opacity: 1; transform: translateY(0); }

.gi-tall { grid-row: span 2; }
.gi-wide { grid-column: span 2; }

.gi-inner {
  width: 100%;
  height: 100%;
  min-height: 260px;
  line-height: 0;
  overflow: hidden;
}
.gi-inner svg { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.gi-inner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-item:hover .gi-inner svg,
.gallery-item:hover .gi-inner img { transform: scale(1.03); }

/* Before/After split */
.gi-split {
  display: flex;
  position: relative;
}
.split-half {
  flex: 1;
  line-height: 0;
  overflow: hidden;
  min-height: 260px;
}
.split-half svg { width: 100%; height: auto; display: block; }
.split-half img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.split-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--black);
  flex-shrink: 0;
}

/* Gallery item overlay */
.gi-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 20px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s ease;
}
.gi-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.gi-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

/* Filter hidden state */
.gallery-item.hidden,
.showcase-main.hidden,
.showcase-small.hidden {
  display: none;
}
.gallery-item.fade-in {
  animation: fadeInUp 0.35s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── GALLERY CTA ─────────────────────── */
.gallery-cta {
  position: relative;
  padding: 80px 0;
  background: var(--dark2);
  overflow: hidden;
}
.gcta-checker {
  position: absolute; inset: 0; opacity: 0.025;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%),
    linear-gradient(-45deg, #fff 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #fff 75%),
    linear-gradient(-45deg, transparent 75%, #fff 75%);
  background-size: 32px 32px;
  background-position: 0 0, 0 16px, 16px -16px, -16px 0;
}
.gcta-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.gcta-text h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.gcta-text p { color: var(--gray); font-size: 1rem; }
.gcta-actions { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* ── LIGHTBOX ────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: var(--dark2);
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.25s ease;
  border: 1px solid rgba(232,180,0,0.12);
}
.lightbox-overlay.open .lightbox-content { transform: scale(1); }
.lightbox-img { width: 100%; line-height: 0; }
.lightbox-img svg { width: 100%; height: auto; display: block; }
.lightbox-info {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid rgba(232,180,0,0.08);
}
.lightbox-meta { display: flex; flex-direction: column; gap: 4px; }
.lightbox-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox-title { font-size: 1rem; font-weight: 600; color: var(--white); }
.lightbox-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(232,180,0,0.08);
  border: 1px solid rgba(232,180,0,0.12);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.lightbox-close:hover { background: rgba(255,255,255,0.12); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.lightbox-nav:hover { background: rgba(232,180,0,0.2); border-color: var(--gold); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 960px) {
  .shop-showcase { grid-template-columns: 1fr; }
  .showcase-side { flex-direction: row; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gi-wide { grid-column: span 2; }
  .gi-tall { grid-row: span 1; }
  .gi-overlay { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gi-wide { grid-column: span 1; }
  .showcase-side { flex-direction: column; }
  .gcta-content { flex-direction: column; align-items: flex-start; }
  .lightbox-nav { display: none; }
}
