/* ==========================================================================
   Green Source Electrical — gallery page
   Layered on top of style.css. Reuses about page hero/trust patterns.
   ========================================================================== */

/* —— hero (reuses about hero structure) —— */
.gs-gallery-hero { padding: 24px 0 22px; }
.gs-gallery-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: var(--green-deep);
  padding: 5px 11px 5px 9px; border-radius: 100px;
  font-size: 11px; font-weight: 600; margin-bottom: 14px;
}
.gs-gallery-hero .eyebrow .pill-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center;
}
.gs-gallery-hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 32px; line-height: 1.04;
  letter-spacing: -0.03em; font-weight: 800;
}
.gs-gallery-hero .tag {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 14.5px; line-height: 1.55;
  max-width: 60ch;
}

/* —— Instagram CTA —— */
.gs-ig-cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 20px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, #f6f3ec 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  max-width: 100%;
}
.gs-ig-cta:hover {
  transform: translateY(-1px);
  border-color: var(--green);
  box-shadow: 0 4px 14px rgba(45,90,61,0.10);
}
.gs-ig-cta > svg:first-of-type {
  flex-shrink: 0;
  width: 32px; height: 32px;
  padding: 6px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
  box-sizing: content-box;
}
.gs-ig-cta .t {
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.gs-ig-cta .t strong {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.gs-ig-cta .t small {
  font-size: 11.5px;
  color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.gs-ig-cta .arrow {
  flex-shrink: 0; color: var(--green-deep);
  transition: transform 0.15s;
}
.gs-ig-cta:hover .arrow { transform: translateX(2px); }

/* —— filter chips —— */
.gs-gallery { padding: 0 0 32px; }
.gs-gallery .g-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 16px 0 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.gs-gallery .g-filter::-webkit-scrollbar { display: none; }
.gs-gallery .g-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  transition: all .15s ease;
}
.gs-gallery .g-chip .ct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--ink-2);
  font-weight: 500;
}
.gs-gallery .g-chip:hover { border-color: var(--green); }
.gs-gallery .g-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.gs-gallery .g-chip.active .ct {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* —— grid —— */
.gs-gallery .g-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.gs-gallery .g-tile {
  position: relative;
  background: #20272d;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  text-align: left;
  display: block;
  transition: transform .18s ease;
  width: 100%;
}
.gs-gallery .g-tile.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}
.gs-gallery .g-tile:active { transform: scale(0.985); }
.gs-gallery .g-tile.is-hidden { display: none; }

.gs-gallery .g-tile .g-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .4s ease;
}
.gs-gallery .g-tile .g-img.placeholder {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, var(--c1, #b8b1a0), var(--c2, #6e6450));
}
.gs-gallery .g-tile:hover .g-img { transform: scale(1.04); }

.gs-gallery .g-tile::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.gs-gallery .g-tile .g-cat {
  position: absolute;
  top: 8px; left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.92);
  color: var(--ink-2);
  padding: 3px 7px;
  border-radius: 5px;
  z-index: 2;
  font-weight: 600;
}
.gs-gallery .g-tile .g-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 11px;
  display: flex; flex-direction: column;
  gap: 1px;
  z-index: 2;
}
.gs-gallery .g-tile .g-cap strong {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.gs-gallery .g-tile .g-cap small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.gs-gallery .g-tile.wide .g-cap strong { font-size: 15px; }
.gs-gallery .g-tile.wide .g-cap small { font-size: 10px; }

.gs-gallery .g-tile .g-zoom {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}

/* —— lightbox —— */
.g-lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 14, 12, 0.94);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.g-lightbox[data-open="true"] {
  display: flex;
  animation: lbFade .2s ease;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.g-lightbox .g-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  color: #fff;
}
.g-lightbox .g-lb-frame {
  width: 100%;
  max-width: 480px;
  background: var(--bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
  animation: lbPop .25s cubic-bezier(.2, .8, .2, 1);
}
@keyframes lbPop {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: scale(1); }
}
.g-lightbox .g-lb-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #20272d;
}
.g-lightbox .g-lb-meta {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  gap: 4px;
}
.g-lightbox .g-lb-meta .cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  font-weight: 600;
  margin-bottom: 4px;
}
.g-lightbox .g-lb-meta strong {
  font-family: 'Inter Tight', sans-serif;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
}
.g-lightbox .g-lb-meta .loc {
  font-size: 12.5px;
  color: var(--ink-2);
}
.g-lightbox .g-lb-meta p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* —— process (dark, mirrors about's trust grid) —— */
.gs-process {
  background: var(--charcoal);
  color: #f3eee2;
  padding: 32px 0;
  position: relative;
  overflow: hidden;
}
.gs-process::before {
  content: '';
  position: absolute;
  top: -50px; left: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 90, 61, 0.45), transparent 70%);
}
.gs-process .gs-section-eyebrow { color: #93c8a4; }
.gs-process .gs-section-eyebrow::before { background: #93c8a4; }
.gs-process h2 { color: #fff; font-size: 24px; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; }
.gs-process .lead { margin-top: 10px; color: rgba(243,238,226,0.7); font-size: 13.5px; line-height: 1.55; max-width: 60ch; }

.gs-process-grid {
  margin-top: 22px;
  display: flex; flex-direction: column;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.gs-process-row {
  background: var(--charcoal);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.gs-process-row .icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(147,200,164,0.14);
  color: #93c8a4;
  display: grid; place-items: center;
}
.gs-process-row h3 {
  color: #fff;
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.gs-process-row p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(243,238,226,0.65);
}

/* —— final CTA (dark gradient) —— */
.gs-final-cta {
  padding: 36px 0 40px;
  background: linear-gradient(140deg, var(--green-deep) 0%, var(--charcoal) 130%);
  color: #f3eee2;
  position: relative;
  overflow: hidden;
  border-top: 0;
}
.gs-final-cta::before {
  content: '';
  position: absolute;
  bottom: -80px; right: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,230,209,0.18), transparent 70%);
  pointer-events: none;
}
.gs-final-cta .gs-section-eyebrow { color: #c8e6d1; }
.gs-final-cta .gs-section-eyebrow::before { background: #c8e6d1; }
.gs-final-cta h2 { color: #fff; font-size: 24px; line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }
.gs-final-cta p { margin-top: 12px; font-size: 14px; line-height: 1.55; color: rgba(243,238,226,0.78); max-width: 60ch; }
.gs-final-cta .cta-row { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.gs-final-cta .cta-row .gs-btn-primary { background: #fff; color: var(--green-deep); }
.gs-final-cta .cta-row .gs-btn-primary:hover { background: #fdf9ee; }
.gs-final-cta .cta-row .gs-btn-secondary { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); color: #fff; }
.gs-final-cta .cta-row .gs-btn-secondary:hover { background: rgba(255,255,255,0.16); }

/* ==========================================================================
   Wider viewports
   ========================================================================== */
@media (min-width: 760px) {
  .gs-gallery-hero { padding: 56px 0 28px; }
  .gs-gallery-hero h1 { font-size: 48px; line-height: 1.02; letter-spacing: -0.035em; }
  .gs-gallery-hero .tag { font-size: 17px; }

  .gs-gallery .g-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .gs-gallery .g-tile.wide { grid-column: span 2; aspect-ratio: 16 / 10; }

  .gs-process { padding: 56px 0; }
  .gs-process h2 { font-size: 32px; }
  .gs-process-grid { display: grid; grid-template-columns: 1fr 1fr; }

  .gs-final-cta { padding: 64px 0 72px; }
  .gs-final-cta h2 { font-size: 36px; }
  .gs-final-cta .cta-row { flex-direction: row; max-width: 540px; }
  .gs-final-cta .cta-row .gs-btn { flex: 1; }
}

@media (min-width: 1100px) {
  .gs-gallery .g-grid { grid-template-columns: repeat(4, 1fr); }
  .gs-gallery .g-tile.wide { grid-column: span 2; }
}
