/* === Base === */
html {
  background: #fff !important;
  color-scheme: light only;
}
body {
  font-family: 'Didact Gothic', Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  background: #fff !important;
  color-scheme: light only;
}
body.page-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  height: auto;
}

/* === Nav Links === */
.nav-link {
  font-size: 11px;
  color: #333;
  text-decoration: none;
  line-height: 1.8;
  display: block;
  letter-spacing: 0.3px;
}
.nav-link:hover { color: #000; }
.nav-link.active {
  color: #e74c3c;
  text-decoration: underline;
}

/* === Site Title === */
.site-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.3;
  text-decoration: none;
}
a.site-title:hover { color: #000; }

/* === Gallery (Book pages / index) === */
.gallery-container {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  background: #fff !important;
}
.gallery-container::-webkit-scrollbar { display: none; }
.gallery-container img {
  height: 100vh;
  height: 100dvh;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

/* === Footer === */
.copyright {
  font-size: 9px;
  color: #999;
  margin-top: 16px;
  line-height: 1.4;
}
.social-icons {
  margin-top: 8px;
  display: flex;
  gap: 4px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #333;
  border-radius: 50%;
  color: #fff;
  font-size: 9px;
  text-decoration: none;
  transition: background 0.2s;
}
.social-icons a:hover { background: #000; }

/* === Hamburger (mobile) === */
.hamburger {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.85);
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* === Mobile Overlay Nav === */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.97);
  z-index: 40;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mobile-overlay.open { display: flex; }
.mobile-overlay .nav-link {
  font-size: 15px;
  line-height: 2.2;
  text-align: center;
}
.mobile-overlay .social-icons {
  margin-top: 20px;
  gap: 8px;
}
.mobile-overlay .social-icons a {
  width: 28px;
  height: 28px;
}
.mobile-overlay .social-icons svg {
  width: 12px;
  height: 12px;
}
.mobile-overlay .copyright {
  margin-top: 20px;
  font-size: 10px;
}

/* === Content Area (non-gallery pages) === */
.content-area {
  flex: 1;
  overflow-y: auto;
  padding: 60px 50px;
  -webkit-overflow-scrolling: touch;
}
.content-area h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 30px;
}
.content-area h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #333;
  margin-top: 40px;
  margin-bottom: 16px;
}
.content-area p {
  font-size: 13px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
  max-width: 640px;
}
.content-area ul {
  font-size: 13px;
  line-height: 2;
  color: #555;
  padding-left: 20px;
  max-width: 640px;
}

/* === Mobile === */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .desktop-sidebar { display: none !important; }

  /* Gallery pages */
  .gallery-container {
    background: #fff !important;
  }
  .gallery-container img {
    width: 100vw;
    height: 100dvh;
    object-fit: contain;
    background: #fff !important;
  }

  /* Content pages */
  .content-area {
    padding: 24px 20px;
    padding-top: 56px;
  }
  .content-area h1 {
    font-size: 22px;
    margin-bottom: 20px;
  }
}
