/* =============================================
   CREATING YOUR DREAMS — Gallery
   ============================================= */

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

:root {
  --ink: #111111;
  --ink-soft: #555555;
  --ink-faint: #999999;
  --paper: #fafaf8;
  --rule: #e8e8e5;
  --tag-bg: #f0f0ec;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --max-w: 1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.1rem clamp(1.25rem,5vw,2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

nav ul { list-style: none; display: flex; gap: 2rem; }

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
nav a:hover { color: var(--ink); }

/* =============================================
   HERO
   ============================================= */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(4rem,10vw,7rem) clamp(1.25rem,5vw,2.5rem) clamp(2rem,5vw,3.5rem);
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem,6.5vw,5rem);
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  animation: fadeUp 0.7s ease both;
}

.hero h1 em { font-style: italic; color: var(--ink-soft); }

.hero-sub {
  max-width: 460px;
  color: var(--ink-soft);
  font-size: 1rem;
  animation: fadeUp 0.7s 0.15s ease both;
}

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

.gallery {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem,5vw,2.5rem) clamp(4rem,10vw,8rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

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

.item {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s calc(var(--delay,0s)) ease,
    transform 0.5s calc(var(--delay,0s)) ease,
    box-shadow 0.25s ease;
}

.item.visible {
  opacity: 1;
  transform: translateY(0);
}

.item:hover {
  box-shadow: 0 6px 32px rgba(0,0,0,0.09);
}

.item-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--tag-bg);
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.item:hover .item-img img {
  transform: scale(1.04);
}

figcaption {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid var(--rule);
}

.tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  align-self: flex-start;
}

figcaption h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

/* =============================================
   LIGHTBOX
   ============================================= */

.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.85);
  z-index: 200;
  backdrop-filter: blur(4px);
}
.lb-overlay.open { display: block; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 201;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
}
.lightbox.open { display: flex; }

.lb-img-wrap {
  max-width: min(90vw, 640px);
  max-height: 80vh;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.lb-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 80vh;
}

.lb-caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
  z-index: 202;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,0.22);
}

.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* =============================================
   ABOUT
   ============================================= */

.about {
  border-top: 1px solid var(--rule);
  padding: clamp(4rem,10vw,7rem) clamp(1.25rem,5vw,2.5rem);
}

.about-inner { max-width: 620px; margin: 0 auto; }

.about h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem,5vw,3.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  margin: 1rem 0 1.5rem;
}

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

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

footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem clamp(1.25rem,5vw,2.5rem);
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* =============================================
   ANIMATIONS
   ============================================= */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 600px) {
  nav ul { gap: 1.25rem; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
}

@media (max-width: 380px) {
  .gallery { grid-template-columns: 1fr; }
}
