/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f5f0;
  --bg-card: #eaeae5;
  --text: #222;
  --text-muted: #666;
  --accent: #111;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* === Navigation === */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.site-title:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

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

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

/* === Hero (Homepage) === */
.hero {
  text-align: center;
  padding: 6rem 1rem 4rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* === Section Header === */
.section-header {
  margin-bottom: 2rem;
}

.section-header h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.section-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

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

.gallery-card:hover {
  transform: translateY(-3px);
  text-decoration: none;
}

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

.gallery-card-info {
  padding: 1rem 1.25rem;
}

.gallery-card-info h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.gallery-card-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.gallery-card-info .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* === Photo Grid (Single Gallery) === */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.5rem;
}

.photo-grid a {
  display: block;
  overflow: hidden;
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-grid a:hover img {
  transform: scale(1.03);
}

/* === CSS Lightbox === */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

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

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  z-index: 1001;
}

.lightbox-close:hover {
  text-decoration: none;
  color: #ddd;
}

/* === Single Page (About) === */
.single-content {
  max-width: 700px;
  margin: 3rem auto;
}

.single-content h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.single-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.single-content a {
  border-bottom: 1px solid var(--text-muted);
}

/* === Gallery Page Header === */
.gallery-header {
  margin: 2rem 0;
}

.gallery-header h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.gallery-header p {
  color: var(--text-muted);
  margin-top: 0.5rem;
  max-width: 600px;
}

/* === Footer === */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .site-nav {
    padding: 1rem 1.25rem;
  }

  .hero {
    padding: 3rem 1rem 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  main {
    padding: 0 1.25rem 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
  }
}
