/* === GALLERY PAGE === */

/* Hero */
.gallery-hero {
  padding: 120px 40px 64px;
  max-width: 900px;
  margin: 0 auto;
}

.gallery-hero-inner { max-width: 600px; }

.gallery-headline {
  font-family: var(--font-head);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.08;
  margin-bottom: 20px;
}

.gallery-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
}

/* Filter tabs */
.filter-bar {
  position: sticky;
  top: 65px;
  z-index: 50;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}

.filter-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar-inner::-webkit-scrollbar { display: none; }

.filter-tab {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  background: none;
  border: none;
  padding: 18px 20px;
  cursor: pointer;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.filter-tab:hover { color: var(--fg); }

.filter-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Gallery grid */
.gallery-grid-section {
  padding: 48px 40px 80px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card */
.gallery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.gallery-card:hover {
  border-color: rgba(200, 169, 110, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.gallery-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-2);
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.04);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-card:hover .gallery-card-overlay { opacity: 1; }

.overlay-icon {
  color: var(--accent);
  background: rgba(200, 169, 110, 0.12);
  border: 1px solid rgba(200, 169, 110, 0.3);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-label {
  font-size: 13px;
  color: var(--fg);
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

/* Card body */
.gallery-card-body {
  padding: 24px;
}

.gallery-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gallery-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200, 169, 110, 0.1);
  border: 1px solid rgba(200, 169, 110, 0.2);
  padding: 3px 10px;
  border-radius: 20px;
}

.gallery-card-views {
  font-size: 12px;
  color: var(--fg-dim);
  font-family: var(--font-body);
}

.gallery-card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  line-height: 1.25;
}

.gallery-card-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.gallery-card-client {
  font-size: 12px;
  color: var(--fg-dim);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* CTA section */
.gallery-cta {
  border-top: 1px solid var(--border);
  padding: 80px 40px;
  text-align: center;
}

.gallery-cta-inner { max-width: 560px; margin: 0 auto; }

.gallery-cta h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 16px;
}

.gallery-cta p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 28px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-accent:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-accent:active { transform: translateY(0); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: var(--fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 1001;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-content {
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-hero { padding: 100px 24px 48px; }
  .gallery-grid-section { padding: 32px 16px 64px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .filter-bar { padding: 0 16px; }
  .gallery-cta { padding: 64px 24px; }
}

@media (max-width: 480px) {
  .gallery-headline { font-size: 32px; }
}