:root {
  --bg: #1a1a1a;
  --bg-card: #252525;
  --text: #e0e0e0;
  --text-muted: #999;
  --accent: #c8a45a;
  --accent-hover: #dbb96e;
  --nav-bg: #111;
  --radius: 4px;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* Header */
.site-header {
  background: var(--nav-bg);
  border-bottom: 1px solid #333;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.main-nav { display: flex; gap: 0; }
.main-nav a {
  padding: 0 1rem;
  line-height: 60px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0.5rem; }

/* Sub-nav for gallery themes */
.sub-nav {
  background: #222;
  border-bottom: 1px solid #333;
  padding: 0 1rem;
}

.sub-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.sub-nav a {
  padding: 0.6rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.sub-nav a:hover, .sub-nav a.active { color: var(--accent); }

/* Main content */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 0;
}

.hero img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.hero-tagline {
  margin-top: 1.5rem;
  font-size: 1.3rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Artist statement */
.artist-statement {
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.artist-statement p + p { margin-top: 1em; }

/* Gallery cards (photography landing page) */
.gallery-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gallery-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s;
}

.gallery-card:hover { transform: translateY(-4px); }

.gallery-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.gallery-card-body {
  padding: 1rem;
}

.gallery-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.gallery-card-body .photo-count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  transition: opacity 0.2s;
  display: block;
}

.gallery-grid img:hover { opacity: 0.8; }

/* Page title */
.page-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

/* Resume */
.resume { max-width: 800px; margin: 0 auto; }
.resume h2 { color: var(--accent); font-size: 1.3rem; margin: 2rem 0 0.5rem; border-bottom: 1px solid #333; padding-bottom: 0.3rem; }
.resume h2:first-of-type { margin-top: 0; }
.resume h3 { font-size: 1.1rem; margin: 1.2rem 0 0.2rem; }
.resume .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.resume .contact-info { color: var(--text-muted); margin-bottom: 1.5rem; }
.resume .contact-info a { color: var(--accent); }
.resume .job { margin-bottom: 1.5rem; }
.resume .job-header { margin-bottom: 0.3rem; }
.resume .job-title { font-weight: 600; }
.resume .job-dates { color: var(--text-muted); font-size: 0.9rem; }
.resume p + p { margin-top: 0.8rem; }

/* Footer */
.site-footer {
  background: var(--nav-bg);
  border-top: 1px solid #333;
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.5rem; }

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

.lightbox-overlay.active { display: flex; }

.lightbox-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 2rem;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-prev { left: 0.5rem; }
.lightbox-next { right: 0.5rem; }

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .header-inner { flex-wrap: wrap; height: auto; padding: 0.8rem 0; }
  .main-nav { display: none; flex-direction: column; width: 100%; }
  .main-nav.open { display: flex; }
  .main-nav a { line-height: 2.5; }
  .nav-toggle { display: block; }

  .sub-nav-inner { flex-direction: column; }
  .sub-nav a { padding: 0.4rem 0; }

  .page-title { font-size: 1.4rem; }

  .lightbox-prev, .lightbox-next { font-size: 2rem; padding: 0.5rem; }
}
