/* Base Resets & Colors matching Raymond Studio Index */
:root {
  --bg-color: #0c0c0c;
  --card-bg: #141414;
  --card-border: #222222;
  --text-main: #f5f5f5;
  --text-muted: #888888;
  --tag-color: #9c8e82; /* Warm architectural taupe */
  --accent-btn: #b89d87;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Header Navigation */
.site-header {
  width: 100%;
  padding: 32px 48px;
  box-sizing: border-box;
  background: var(--bg-color);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

/* Hero Section */
.gallery-hero {
  max-width: 1400px;
  margin: 40px auto 30px;
  padding: 0 48px;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--tag-color);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0 0 12px 0;
  color: var(--text-main);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  line-height: 1.6;
  margin: 0;
}

/* Filter Bar (Matching Index Tab Boxes) */
.filter-section {
  max-width: 1400px;
  margin: 36px auto;
  padding: 0 48px;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #444444;
  color: var(--text-main);
}

.filter-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.count-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Grid Layout */
.gallery-wrapper {
  max-width: 1400px;
  margin: 0 auto 100px;
  padding: 0 48px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

/* Dark Minimalist Card */
.gallery-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.gallery-card:hover {
  border-color: #444444;
  transform: translateY(-2px);
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #111111;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.card-details {
  padding: 18px 20px;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--tag-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.card-notes {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1001;
  max-width: 960px;
  width: 90%;
  background: #121212;
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--text-main);
}

.lightbox-image-wrap img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #000000;
  display: block;
}

.lightbox-info {
  padding: 24px 28px;
}

.lightbox-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--tag-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lightbox-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 8px 0;
  color: var(--text-main);
}

.lightbox-notes {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .site-header,
  .gallery-hero,
  .filter-section,
  .gallery-wrapper {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-title {
    font-size: 1.8rem;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
