@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

:root {
  /* Analog Warmth Palette */
  --bg-color: #F5F1E8;
  --text-color: #2C2C2C;
  --accent-color: #C15B3E;
  --secondary-accent: #D4C5B0;
  --overlay-color: rgba(245, 241, 232, 0.95);

  /* Spacing */
  --spacing-unit: 1rem;
  --container-width: 1200px;

  /* Typography */
  --font-serif: 'Crimson Text', serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Analog Warmth JSX Styles */
.analog-texture {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

.analog-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  background: linear-gradient(to bottom, #F5F1E8 0%, #F5F1E8 60%, transparent 100%);
}

.analog-logo {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: #8B4513;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.analog-nav {
  display: flex;
  gap: 3rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.analog-nav a {
  color: #2C2C2C;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.analog-nav a:hover {
  opacity: 1;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem;
  position: relative;
}

.hero-ornament {
  width: 60px;
  height: 1px;
  background: #8B4513;
  margin-bottom: 2rem;
  opacity: 0.6;
  transform: scaleX(1);
  transition: all 1s ease;
  transition-delay: 0.3s;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 1s ease;
  transition-delay: 0.5s;
}

.hero-subtitle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: #8B4513;
  opacity: 0.8;
  transform: translateY(0);
  transition: all 0.8s ease;
  transition-delay: 0.7s;
}

.hero-scroll {
  position: absolute;
  bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  opacity: 0.5;
  transition: opacity 1s ease;
  transition-delay: 1s;
}

.hero-scroll-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #8B4513, transparent);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

.section-header {
  text-align: center;
  padding: 0 4rem 4rem;
}

.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: #8B4513;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
}

.gallery-grid-section {
  padding: 8rem 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-item {
  cursor: pointer;
  opacity: 1;
  /* Ensure visibility */
}

.gallery-item:nth-child(even) {
  transform: translateY(4rem);
}

.gallery-frame {
  background: #FFFDF8;
  padding: 1.5rem;
  box-shadow:
    0 2px 8px rgba(139, 69, 19, 0.08),
    0 8px 32px rgba(139, 69, 19, 0.06);
  transition: all 0.5s ease;
  position: relative;
}

.gallery-frame::before {
  content: '';
  position: absolute;
  inset: 0.5rem;
  border: 1px solid rgba(139, 69, 19, 0.1);
  pointer-events: none;
}

.gallery-item:hover .gallery-frame {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow:
    0 4px 16px rgba(139, 69, 19, 0.12),
    0 16px 48px rgba(139, 69, 19, 0.1);
}

.gallery-image {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg,
      #e8dcc8 0%,
      #d9c9b0 25%,
      #c8b598 50%,
      #baa582 75%,
      #a89070 100%);
  position: relative;
  object-fit: cover;
}

.gallery-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%);
  pointer-events: none;
}

.gallery-caption {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.gallery-info h3 {
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.5rem;
}

.gallery-info p {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #8B4513;
  opacity: 0.7;
}

.gallery-number {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #8B4513;
  opacity: 0.5;
}

.about-section {
  padding: 8rem 4rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.about-content {
  max-width: 600px;
  text-align: center;
}

.about-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.about-ornament span {
  width: 40px;
  height: 1px;
  background: #8B4513;
  opacity: 0.4;
}

.about-ornament svg {
  width: 20px;
  height: 20px;
  color: #8B4513;
  opacity: 0.6;
}

.about-text {
  font-size: 1.3rem;
  line-height: 1.9;
  color: #3d3d3d;
  margin-bottom: 3rem;
}

.about-signature {
  font-style: italic;
  font-size: 1.5rem;
  color: #8B4513;
}

.footer {
  padding: 4rem;
  border-top: 1px solid rgba(139, 69, 19, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  opacity: 0.5;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #8B4513;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

/* Lightbox Styles (Preserved) */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.lightbox-close {
  position: fixed;
  top: 2rem;
  right: 2rem;
  font-family: var(--font-mono);
  cursor: pointer;
  font-size: 2rem;
  color: var(--text-color);
  z-index: 10001;
  background: rgba(255, 255, 255, 0.5);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.8);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: var(--text-color);
  cursor: pointer;
  z-index: 10001;
  background: rgba(255, 255, 255, 0.5);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
  user-select: none;
}

.lightbox-prev {
  left: 2rem;
}

.lightbox-next {
  right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Ensure the old film‑strip is never visible */
.film-strip,
.film-strip-section {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

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

  .gallery-item:nth-child(odd) {
    margin-top: 0;
  }

  .gallery-item:nth-child(even) {
    transform: none;
  }

  .analog-header {
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
  }

  .hero {
    padding: 2rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .gallery-grid-section {
    padding: 4rem 2rem;
  }

  .about-section {
    padding: 4rem 2rem;
  }

  .footer {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    text-align: center;
  }
}