/* ════════════════════════════════════
   JBS — Gallery Page Styles
   gallery.css
════════════════════════════════════ */

/* ── Gallery Hero Banner ── */
.gallery-hero {
  background: var(--black);
  padding: 120px 0 64px;
  position: relative;
  overflow: hidden;
}
.gallery-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,168,76,.06) 0%, transparent 70%),
    repeating-linear-gradient(
      135deg, transparent, transparent 48px,
      rgba(201,168,76,.012) 48px, rgba(201,168,76,.013) 49px
    );
  pointer-events: none;
}
.gallery-hero__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}
.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color .25s;
}
.gallery-back:hover { color: var(--gold); }
.gallery-back svg { flex-shrink: 0; }

.gallery-hero .tag { color: var(--gold); margin-bottom: 12px; }
.gallery-hero .heading { color: #fff; margin-bottom: 16px; }

.gallery-hero__sub {
  font-size: .9rem;
  line-height: 1.85;
  font-weight: 300;
  color: rgba(255,255,255,.48);
  max-width: 560px;
  margin-bottom: 24px;
}
.gallery-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,.25);
  padding: 6px 16px;
}
.gallery-count span { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 700; }

/* ── Toolbar ── */
.gallery-toolbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 80px;       /* below fixed header */
  z-index: 500;
}
.gallery-toolbar__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}
.gallery-filter-tabs { display: flex; gap: 4px; }
.filter-tab {
  font-family: 'Montserrat', sans-serif;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid transparent;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: .25s;
  border-radius: 0;
}
.filter-tab:hover { color: var(--gold); }
.filter-tab.active {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(201,168,76,.06);
}
.gallery-view-btns { display: flex; gap: 4px; }
.view-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: .25s;
}
.view-btn:hover { border-color: var(--gold); color: var(--gold); }
.view-btn.active { background: var(--gold); border-color: var(--gold); color: var(--black); }
.view-btn svg { display: block; }

/* ── Gallery Main ── */
.gallery-main {
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 48px 80px;
}

/* ── Photo Grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  transition: gap .3s;
}
.gallery-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

/* ── Gallery Item ── */
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--warm-50);
}
/* Make every 7th item (first of a new group) taller — creates variety */
.gallery-item:nth-child(7n+1) { aspect-ratio: 4/3; }
.gallery-item:nth-child(7n+3) { aspect-ratio: 1/1; }
.gallery-item:nth-child(7n+6) { aspect-ratio: 16/10; }

.gallery-grid.cols-2 .gallery-item,
.gallery-grid.cols-2 .gallery-item:nth-child(n) { aspect-ratio: 4/3; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, filter .4s;
  filter: brightness(.92);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

/* Overlay */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .35s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-zoom {
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: background .25s, border-color .25s;
}
.gallery-item:hover .gallery-zoom {
  background: var(--gold);
  border-color: var(--gold);
}
.gallery-zoom svg { flex-shrink: 0; }

.gallery-caption {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  text-align: center;
  padding: 0 20px;
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
}

/* ── CTA Strip ── */
.gallery-cta-strip {
  background: var(--black);
  padding: 56px 0;
}
.gallery-cta-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.gallery-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.gallery-cta-sub {
  font-size: .84rem;
  font-weight: 300;
  color: rgba(255,255,255,.45);
}
.gallery-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.gallery-cta-actions .btn-ghost-dark {
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.2);
}
.gallery-cta-actions .btn-ghost-dark:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Lightbox ── */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  outline: none;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
#lb-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,.7);
  transition: opacity .2s;
}
.lightbox-caption {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  text-align: center;
}
.lightbox-counter {
  font-size: .68rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .15em;
}

/* Nav buttons */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(10,10,10,.7);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
  z-index: 1300;
}
.lightbox-close {
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
}
.lightbox-close:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }

.lightbox-prev, .lightbox-next {
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 64px;
}
.lightbox-prev { left: 16px; border-radius: 0 4px 4px 0; }
.lightbox-next { right: 16px; border-radius: 4px 0 0 4px; }
.lightbox-prev:hover, .lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}
.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }

/* ── RESPONSIVE — Gallery ── */
@media (max-width: 960px) {
  .gallery-hero { padding: 110px 0 48px; }
  .gallery-hero__inner { padding: 0 28px; }
  .gallery-toolbar__inner { padding: 0 28px; }
  .gallery-main { padding: 32px 28px 64px; }
  .gallery-cta-inner { padding: 0 28px; }
  .gallery-cta-strip { padding: 44px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gallery-hero { padding: 100px 0 40px; }
  .gallery-hero__inner { padding: 0 20px; }
  .gallery-toolbar__inner { padding: 0 20px; height: 50px; }
  .gallery-main { padding: 24px 20px 56px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-grid.cols-2 { grid-template-columns: 1fr; gap: 10px; }
  .gallery-item, .gallery-item:nth-child(n) { aspect-ratio: 4/3; }
  .gallery-cta-inner { padding: 0 20px; flex-direction: column; align-items: flex-start; }
  .gallery-cta-strip { padding: 44px 0; }
  .gallery-cta-actions { width: 100%; }
  .gallery-cta-actions .btn { flex: 1; justify-content: center; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ── Empty state (shown when folder has no images yet) ── */
.gallery-empty {
  text-align: center;
  padding: 100px 24px;
  color: var(--text-muted);
}
.gallery-empty__icon { font-size: 3rem; margin-bottom: 20px; }
.gallery-empty__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 600;
  color: var(--text-h); margin-bottom: 12px;
}
.gallery-empty__sub {
  font-size: .85rem; line-height: 1.8; font-weight: 300;
}
.gallery-empty__sub code {
  background: var(--warm-50); padding: 2px 8px;
  font-family: monospace; font-size: .82rem; color: var(--gold);
  border: 1px solid var(--border);
}

/* ════════════════════════════════════
   SEO Content Block
   Injected between toolbar and photo grid.
   Visually clean — matches site aesthetic.
════════════════════════════════════ */
.seo-content-block {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.seo-content-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 64px 48px;
  display: grid;
  gap: 56px;
}

/* Intro */
.seo-intro p {
  font-size: .92rem;
  line-height: 1.9;
  color: var(--text-body);
  font-weight: 300;
  margin-bottom: 16px;
  max-width: 820px;
}
.seo-intro p:last-child { margin-bottom: 0; }

/* Section headings */
.seo-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text-h);
  margin-bottom: 24px;
  line-height: 1.25;
}
.seo-h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-h);
  margin-bottom: 10px;
}

/* Service detail grid */
.seo-service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}
.seo-service-item {
  padding-left: 16px;
  border-left: 2px solid var(--gold);
}
.seo-service-item p {
  font-size: .875rem;
  line-height: 1.8;
  color: var(--text-body);
  font-weight: 300;
  margin: 0;
}

/* Why list */
.seo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  max-width: 860px;
}
.seo-list li {
  font-size: .88rem;
  line-height: 1.75;
  color: var(--text-body);
  font-weight: 300;
  padding-left: 20px;
  position: relative;
}
.seo-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}
.seo-list li strong {
  color: var(--text-h);
  font-weight: 600;
}

/* Process steps */
.seo-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  counter-reset: steps;
  max-width: 820px;
}
.seo-steps li {
  counter-increment: steps;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--text-body);
  font-weight: 300;
  padding-left: 44px;
  position: relative;
}
.seo-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--black);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.seo-steps li strong {
  color: var(--text-h);
  font-weight: 600;
}

/* FAQ */
.seo-faq-item {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  max-width: 820px;
}
.seo-faq-item:first-child { border-top: none; padding-top: 0; }
.seo-faq-item + .seo-faq-item { margin-top: 4px; }
.seo-faq-item p {
  font-size: .875rem;
  line-height: 1.8;
  color: var(--text-body);
  font-weight: 300;
  margin: 10px 0 0;
}
.seo-faq .seo-h2 { margin-bottom: 28px; }

/* ── Responsive — SEO Content Block ── */
@media (max-width: 960px) {
  .seo-content-inner { padding: 48px 28px; gap: 44px; }
  .seo-service-list { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .seo-content-inner { padding: 36px 20px; gap: 36px; }
  .seo-h2 { font-size: 1.45rem; }
}
