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

:root {
  --bg: #fff;
  --fg: #111;
  --fg-muted: #666;
  --border: #e0e0e0;
  --nav-hover: #000;
  --lightbox-bg: rgba(0, 0, 0, 0.95);
  --caption-bg: rgba(0, 0, 0, 0.7);
}


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

/* Header */
header {
  padding: 2rem 2rem 1rem;
  text-align: center;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.site-title a {
  color: var(--fg);
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--nav-hover);
}

nav li.active a {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

.secondary-nav {
  margin-top: 0.5rem;
}

/* Main */
main {
  flex: 1;
  padding: 1rem 2rem 2rem;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

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

.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Lightbox (CSS :target based) */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.lightbox:target {
  display: flex;
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: var(--lightbox-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.lightbox-content figcaption {
  color: #ccc;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
  letter-spacing: 0.05em;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  text-decoration: none;
  z-index: 1010;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

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

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 3rem;
  text-decoration: none;
  z-index: 1010;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 1rem;
  line-height: 1;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 0.5rem;
}

.lightbox-next {
  right: 0.5rem;
}

/* Page Content (About) */
.page-content {
  max-width: 800px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.portrait img {
  width: 100%;
  height: auto;
}

.page-body h3 {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.page-body h3:first-child {
  margin-top: 0;
}

.page-body p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  padding: 2rem;
}

/* Responsive */
@media (max-width: 600px) {
  header {
    padding: 1.5rem 1rem 0.75rem;
  }

  nav ul {
    gap: 1rem;
  }

  main {
    padding: 0.5rem 0;
  }

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

  .page-content {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

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

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