
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px;

  background: rgba(0, 0, 0, 0.94);

  cursor: zoom-out;
}

.lightbox-image {
  display: block;

  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain;

  user-select: none;
  -webkit-user-drag: none;

  cursor: default;
}

.lightbox-close {
  position: absolute;

  top: 20px;
  right: 25px;

  z-index: 10000;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.3);

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.12);

  color: #ffffff;

  font-size: 30px;

  line-height: 1;

  cursor: pointer;

  transition:
    background 180ms ease,
    transform 180ms ease;
}

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

  transform: scale(1.06);
}

.lightbox-close:active {
  transform: scale(0.95);
}

.lightbox-close:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

.lightbox-caption {
  position: absolute;

  bottom: 15px;

  margin: 0;

  color: #ffffff;

  font-size: 0.9rem;

  text-align: center;

  pointer-events: none;
}


/* ========================================
   VARIABLES
======================================== */

:root {

  --bg: #f4f0e9;

  --surface: #fffdf9;

  --ink: #1f211e;

  --muted: #6d6d66;

  --line: rgba(31, 33, 30, 0.12);

  --shadow:
    0 24px 70px rgba(31, 33, 30, 0.13);

  --radius: 28px;

}


/* ========================================
   GLOBAL
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {

  margin: 0;

  min-height: 100vh;

  background: var(--bg);

  color: var(--ink);

  font-family:
    "DM Sans",
    system-ui,
    sans-serif;

}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ========================================
   HEADER
======================================== */

.site-header {

  position: sticky;

  top: 0;

  z-index: 20;

  background:
    rgba(244, 240, 233, 0.88);

  backdrop-filter: blur(14px);

  border-bottom:
    1px solid var(--line);

}

.nav {

  width:
    min(1160px, calc(100% - 40px));

  min-height: 76px;

  margin: 0 auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 24px;

}

.brand {

  font-weight: 600;

  letter-spacing: -0.02em;

}

.nav-links {

  display: flex;

  gap: 8px;

}

.nav-link {

  padding: 10px 14px;

  color: var(--muted);

  border-radius: 999px;

  transition: 180ms ease;

}

.nav-link:hover,
.nav-link.active {

  color: var(--ink);

  background:
    rgba(255, 253, 249, 0.85);

}


/* ========================================
   TYPOGRAPHY
======================================== */

h1,
h2 {

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-weight: 500;

  letter-spacing: -0.035em;

}

.eyebrow {

  margin: 0 0 14px;

  color: var(--muted);

  font-size: 0.78rem;

  font-weight: 600;

  letter-spacing: 0.16em;

  text-transform: uppercase;

}


/* ========================================
   HOME PAGE
======================================== */

.hero {

  width:
    min(1160px, calc(100% - 40px));

  min-height:
    calc(100vh - 76px);

  margin: 0 auto;

  padding: 72px 0;

  display: grid;

  grid-template-columns:
    0.9fr 1.1fr;

  align-items: center;

  gap: 70px;

}

.hero h1 {

  margin: 0;

  font-size:
    clamp(3.5rem, 8vw, 6.7rem);

  line-height: 0.92;

}

.intro {

  max-width: 480px;

  margin: 28px 0;

  color: var(--muted);

  font-size: 1.08rem;

  line-height: 1.75;

}

.button {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-height: 48px;

  padding: 0 20px;

  border-radius: 999px;

  background: var(--ink);

  color: #fff;

  transition:
    transform 180ms ease,
    opacity 180ms ease;

}

.button:hover {

  transform:
    translateY(-2px);

  opacity: 0.9;

}


/* ========================================
   FEATURE PHOTO
======================================== */

.feature-frame {

  position: relative;

  aspect-ratio: 4 / 5;

  overflow: hidden;

  border-radius: var(--radius);

  background: #dad5cc;

  box-shadow: var(--shadow);

}

.feature-frame img {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  position: relative;

  z-index: 2;

  background: #dad5cc;

}

.feature-frame img[src=""],
.feature-frame img:not([src]) {
  display: none;
}

.photo-placeholder {

  position: absolute;

  inset: 0;

  z-index: 1;

  display: grid;

  place-content: center;

  gap: 8px;

  text-align: center;

  padding: 24px;

  color: #55554f;

}

.photo-placeholder span {

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size:
    clamp(2rem, 4vw, 3.4rem);

}

.photo-placeholder small {

  max-width: 260px;

  line-height: 1.5;

}

.home-note {

  width:
    min(1160px, calc(100% - 40px));

  margin:
    -20px auto 70px;

  padding:
    0 0 40px;

  color: var(--muted);

}


/* ========================================
   JOURNAL PAGE
======================================== */

.journal-page {

  width:
    min(1160px, calc(100% - 40px));

  margin: 0 auto;

  padding: 80px 0 100px;

}

.journal-heading {

  max-width: 800px;

  margin: 0 auto 50px;

  text-align: center;

}

.journal-heading h1 {

  margin: 0;

  font-size:
    clamp(3.5rem, 8vw, 6.7rem);

  line-height: 0.92;

}

.journal-heading > p:last-child {

  max-width: 650px;

  margin: 24px auto 0;

  color: var(--muted);

  line-height: 1.7;

}


/* ========================================
   GALLERY TITLE
   Keeps "Sep 25 Gallery" separate
   from the gallery grid
======================================== */

.gallery-title {

  width: 100%;

  margin: 0 0 22px;

  text-align: left;

}

.gallery-title h2 {

  margin: 0;

  font-size:
    clamp(1.4rem, 3vw, 1.9rem);

  text-align: left;

}


/* ========================================
   GALLERY
======================================== */

.gallery {

  display: grid;

  grid-template-columns:
    auto minmax(0, 1fr) auto;

  align-items: center;

  gap: 18px;

}

.gallery-viewport {

  overflow: hidden;

  border-radius: var(--radius);

  touch-action: pan-y;

  cursor: grab;

  box-shadow: var(--shadow);

  user-select: none;

}

.gallery-viewport.dragging {

  cursor: grabbing;

}

.gallery-track {

  display: flex;

  width: 100%;

  will-change: transform;

}

.slide {

  position: relative;

  flex: 0 0 100%;

  min-width: 100%;

  aspect-ratio: 16 / 10;

  overflow: hidden;

  background: #ddd8cf;

}



/* ========================================
   CLICKABLE GALLERY IMAGES
   The entire photograph is clickable
======================================== */

.slide img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  cursor: zoom-in;

  user-select: none;
  -webkit-user-drag: none;
}


.slide::after {

  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.68),
      transparent 55%
    );

  pointer-events: none;

}


/* ========================================
   PHOTO CAPTION
======================================== */

.slide-caption {

  position: absolute;

  left:
    clamp(22px, 4vw, 50px);

  right:
    clamp(22px, 4vw, 50px);

  bottom:
    clamp(22px, 4vw, 42px);

  z-index: 1;

  color: #fff;

}

.slide-caption span {

  display: block;

  margin-bottom: 7px;

  font-size: 0.75rem;

  letter-spacing: 0.16em;

  opacity: 0.82;

}

.slide-caption h2 {

  margin: 0 0 8px;

  font-size:
    clamp(2rem, 4vw, 3.6rem);

}

.slide-caption p {

  max-width: 560px;

  margin: 0;

  font-size: 0.98rem;

  line-height: 1.5;

  opacity: 0.9;

}


/* ========================================
   GALLERY BUTTONS
======================================== */

.gallery-button {

  width: 52px;

  height: 52px;

  display: grid;

  place-items: center;

  flex: 0 0 auto;

  border:
    1px solid var(--line);

  border-radius: 50%;

  background: var(--surface);

  color: var(--ink);

  cursor: pointer;

  transition:
    transform 180ms ease,
    background 180ms ease;

}

.gallery-button:hover {

  transform: scale(1.06);

  background: #fff;

}

.gallery-button:active {

  transform: scale(0.96);

}


/* ========================================
   DOTS + COUNTER
======================================== */

.gallery-controls {

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 18px;

  margin-top: 24px;

}

.dots {

  display: flex;

  align-items: center;

  gap: 8px;

}

.dot {

  width: 8px;

  height: 8px;

  padding: 0;

  border: 0;

  border-radius: 50%;

  background: #c8c2b8;

  cursor: pointer;

  transition:
    transform 180ms ease,
    background 180ms ease;

}

.dot.active {

  background: var(--ink);

  transform: scale(1.45);

}

.counter {

  margin: 0;

  min-width: 42px;

  color: var(--muted);

  font-size: 0.85rem;

}

.swipe-hint {

  margin: 20px 0 0;

  color: var(--muted);

  text-align: center;

  font-size: 0.88rem;

}


/* ========================================
   FOOTER
======================================== */

.site-footer {

  width:
    min(1160px, calc(100% - 40px));

  margin: 0 auto;

  padding: 24px 0 40px;

  color: var(--muted);

  font-size: 0.88rem;

  border-top:
    1px solid var(--line);

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 850px) {

  .hero {

    grid-template-columns: 1fr;

    gap: 45px;

    padding: 50px 0 70px;

  }

  .hero-copy {
    text-align: center;
  }

  .intro {

    margin-left: auto;

    margin-right: auto;

  }

  .feature-frame {

    max-width: 650px;

    width: 100%;

    margin: 0 auto;

  }

  .journal-page {

    padding-top: 60px;

  }

}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 640px) {

  .nav {

    min-height: 68px;

  }

  .brand {

    font-size: 0.95rem;

  }

  .nav-links {

    gap: 0;

  }

  .nav-link {

    padding:
      9px 10px;

    font-size: 0.88rem;

  }

  .hero h1,
  .journal-heading h1 {

    font-size:
      clamp(3rem, 17vw, 5rem);

  }

  .gallery {

    grid-template-columns: 1fr;

    position: relative;

  }

  .gallery-viewport {

    order: 1;

  }

  .gallery-button {

    position: absolute;

    z-index: 3;

    top: 50%;

    transform:
      translateY(-50%);

    width: 44px;

    height: 44px;

    background:
      rgba(255, 253, 249, 0.9);

  }

  .gallery-button:hover {

    transform:
      translateY(-50%)
      scale(1.06);

  }

  .gallery-button.prev {

    left: 12px;

  }

  .gallery-button.next {

    right: 12px;

  }

  .slide {

    aspect-ratio: 4 / 5;

  }


  /* Mobile full-screen viewer */

  .lightbox {

    padding: 20px;

  }

  .lightbox-close {

    top: 12px;

    right: 12px;

    width: 42px;

    height: 42px;

    font-size: 26px;

  }

}