/* ===== GALLERY PAGE ===== */
.gallery-header {
  padding: var(--section-gap) 0 48px;
}
.gallery-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--primary);
}
.gallery-stats {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 20px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.03em;
}
.gallery-stat { display: flex; align-items: center; gap: 6px; }
.gallery-stat-sep { opacity: 0.4; }

/* Before & after grid */
.gallery-section { padding-bottom: var(--section-gap); }
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.ba-card {
  background: var(--surface-container-lowest);
  border: 1px solid rgba(199,197,204,0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(31,33,48,0.05);
}
.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--surface-container-lowest);
}
.ba-photo {
  position: relative;
  display: block;
  padding: 0; border: 0; margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--surface-container);
}
.ba-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.ba-photo:hover img { transform: scale(1.04); }
.ba-tag {
  position: absolute; top: 10px; left: 10px;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  pointer-events: none;
}
.ba-tag-before { background: rgba(8,11,25,0.75); color: #fff; }
.ba-tag-after { background: var(--secondary-container); color: var(--on-secondary-fixed); }
.ba-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px;
}
.ba-title {
  font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: 600;
  color: var(--primary); margin: 0;
}
.ba-cat {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.04em;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,11,25,0.92);
  backdrop-filter: blur(6px);
}
.lb-content {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 16px;
  max-width: 95vw; max-height: 95vh;
  padding: 0 56px;
}
.lb-img {
  max-width: 85vw; max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
}
.lb-close {
  position: fixed; top: 20px; right: 24px;
  background: rgba(255,255,255,0.12);
  border: none; cursor: pointer;
  color: #fff; font-size: 22px;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }
.lb-nav {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none; cursor: pointer;
  color: #fff; font-size: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  top: 50%; transform: translateY(-50%);
  transition: background 0.2s;
}
.lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 0.05em;
}

/* Estimate form */
.est-section { padding-bottom: var(--section-gap); }
.est-card {
  background: var(--surface-container-lowest);
  border: 1px solid rgba(199,197,204,0.3);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 4px 20px rgba(31,33,48,0.05);
  text-align: center;
  position: relative; overflow: hidden;
}
.est-card-deco {
  position: absolute; top: 0; right: 0;
  width: 256px; height: 256px;
  background: var(--secondary-container);
  opacity: 0.2;
  border-radius: 0 0 0 100%;
  pointer-events: none;
}
.est-form {
  max-width: 560px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(199,197,204,0.3);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: left;
}
.est-form-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.est-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.est-field.full { grid-column: 1 / -1; }
.form-input {
  width: 100%;
  font-family: 'Inter', sans-serif; font-size: 16px;
  background: var(--surface-container-lowest);
  border: 1px solid #E5E5E5;
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: var(--text-main);
  resize: vertical;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(8,11,25,0.08);
}

@media (max-width: 860px) {
  .ba-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .gallery-header h1 { font-size: 32px; }
  .est-card { padding: 24px 20px; }
  .est-grid { grid-template-columns: 1fr; }
  .lb-content { padding: 0 44px; }
}
