:root {
  --bg: #1a1a1a;
  --bg-card: #252525;
  --text: #e0e0e0;
  --text-muted: #999;
  --accent: #5aa8c8;
  --accent-hover: #6ec4e0;
  --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; flex-wrap: wrap; }
.main-nav a {
  padding: 0 0.75rem;
  line-height: 60px;
  color: var(--text-muted);
  transition: color 0.2s;
  font-size: 0.95rem;
}
.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; }

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

/* Group description */
.group-description {
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.group-description p + p { margin-top: 1em; }

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

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

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

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

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

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

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

/* Photographer bio */
.photographer-bio {
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.photographer-bio p + p { margin-top: 1em; }

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

/* 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; }

/* 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;
}

/* 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; }

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

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