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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background-color: #0a0a0a;
  color: #f0f0f0;
  font-size: 16px;
  line-height: 1.6;
}

/* Homepage styles */
header {
  padding: 32px 48px;
  display: flex;
  justify-content: flex-end;
}

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

nav a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 1;
}

main {
  padding: 120px 48px;
}

h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}

main p {
  font-size: 18px;
  opacity: 0.5;
  font-weight: 300;
}

/* Gallery page styles */
body.gallery-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-header {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 28px 48px;
  flex-shrink: 0;
}

.site-name {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  white-space: nowrap;
}

.gallery-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.series-link {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.series-link:hover,
.series-link.active {
  opacity: 1;
}

.divider {
  color: #f0f0f0;
  opacity: 0.2;
  font-size: 11px;
}

.slideshow {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 80px 40px;
}

.slide-container {
  position: relative;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#slide-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  display: block;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.slide-caption {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-top: 10px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #f0f0f0;
  font-size: 48px;
  cursor: pointer;
  opacity: 0.2;
  transition: opacity 0.2s ease;
  padding: 0 16px;
  line-height: 1;
  font-weight: 200;
}

.arrow:hover {
  opacity: 0.8;
}

.arrow.left { left: 0; }
.arrow.right { right: 0; }