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

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --text-light: #666;
  --border: #e0e0e0;
  --font: 'LTC Bodoni 175', 'Bodoni Moda', 'Georgia', serif;
}

html {
  scroll-behavior: smooth;
}

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

/* ── Header ── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.site-title {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 36px;
}

.nav-link {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-light);
  cursor: pointer;
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* ── Main ── */

main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 48px 80px;
}

h1 {
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: 48px;
  letter-spacing: 0.04em;
}

/* ── Gallery grid ── */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  grid-auto-flow: dense;
}

.gallery-item {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.gallery-item.gallery-large {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: opacity 0.3s;
}

.gallery-item:hover img {
  opacity: 0.88;
}

.gallery-item .caption {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
  padding-bottom: 4px;
}

.gallery-item.gallery-small img {
  max-height: 280px;
  object-fit: cover;
}

.gallery-item.gallery-medium img {
  max-height: 460px;
  object-fit: cover;
}

/* ── Lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

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

.lightbox-caption {
  color: #ccc;
  margin-top: 16px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* ── About page ── */

.about-page {
  max-width: 900px;
}

.about-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.about-portrait {
  flex-shrink: 0;
  width: 280px;
}

.portrait-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f0f0f0;
  border: 1px solid var(--border);
}

.about-portrait-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--border);
  display: block;
}

.about-text {
  flex: 1;
}

.about-text h1 {
  margin-bottom: 28px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 20px;
}

.about-text a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-contact {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.about-contact h2 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.about-contact .contact-row {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 6px;
}

.about-contact .contact-row:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .about-content {
    flex-direction: column;
    gap: 32px;
  }

  .about-portrait {
    width: 100%;
    max-width: 300px;
  }
}

/* ── Empty state ── */

.empty-msg {
  color: var(--text-light);
  font-size: 1.05rem;
  font-style: italic;
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.06em;
}

/* ── Responsive ── */

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

  .gallery-item.gallery-large {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  header {
    padding: 20px 24px;
  }

  .hamburger {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 12px;
    border-bottom: 1px solid var(--border);
  }

  nav.open {
    display: flex;
  }

  .nav-link {
    text-align: left;
    font-size: 1rem;
  }

  main {
    padding: 36px 24px 60px;
  }

  h1 {
    font-size: 1.6rem;
    margin-bottom: 32px;
  }

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

  .gallery-item.gallery-large {
    grid-column: span 1;
  }

  footer {
    padding: 24px;
  }
}
