:root {
  --bg: #000;
  --accent: #e8e4d8;
  --fg: #e8e4d8;
  --muted: rgba(232, 228, 216, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Cormorant Garamond', Georgia, serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* ---- Hero ---- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 2rem 1rem;
  position: relative;
}
.hero-title {
  font-family: 'Cinzel Decorative', serif; font-weight: 700;
  color: var(--accent);
  font-size: clamp(2.4rem, 11vw, 7rem);
  letter-spacing: 0.06em; line-height: 1.15;
  text-shadow: 0 0 18px rgba(232,228,216,0.18), 0 0 48px rgba(180,160,110,0.10);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .86; } 50% { opacity: 1; } }
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-size: 2rem; color: var(--muted); cursor: pointer;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---- Gallery sections ---- */
main { padding: 0 0 3rem; }
.series { padding: 3.5rem 1rem 1rem; max-width: 1400px; margin: 0 auto; }
.series-title {
  font-family: 'Cinzel Decorative', serif; font-weight: 400;
  color: var(--accent); text-align: center;
  font-size: clamp(1.3rem, 5.5vw, 2.2rem); letter-spacing: 0.05em;
  margin-bottom: 1.6rem;
}
/* Masonry via CSS columns — preserves each image's own crop/aspect ratio. */
.grid { column-gap: 12px; column-width: clamp(150px, 44vw, 320px); }
.grid .cell {
  break-inside: avoid; margin-bottom: 12px; cursor: pointer;
  position: relative; border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.grid .cell img {
  width: 100%; height: auto;
  transition: transform .5s ease, opacity .4s ease;
}
.grid .cell:active img { transform: scale(0.985); }
@media (hover: hover) {
  .grid .cell:hover img { transform: scale(1.03); }
}
.cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .7rem .5rem; font-size: .95rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  opacity: 0; transition: opacity .3s;
}
@media (hover: hover) { .grid .cell:hover .cap { opacity: 1; } }

.empty { text-align: center; color: var(--muted); padding: 4rem 1rem; font-size: 1.2rem; }

/* ---- Contact ---- */
.contact {
  text-align: center; padding: 4rem 1.5rem 1rem; max-width: 600px; margin: 0 auto;
}
.contact[hidden] { display: none; }
.contact-name {
  font-family: 'Cinzel Decorative', serif; font-weight: 400; color: var(--accent);
  font-size: clamp(1.5rem, 6vw, 2.4rem); letter-spacing: .05em; margin-bottom: 1.4rem;
}
.contact-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.channel {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid rgba(232,228,216,0.25); border-radius: 50%;
  color: var(--fg); background: none; cursor: pointer;
  transition: border-color .25s, transform .25s, background .25s;
  -webkit-tap-highlight-color: transparent;
}
.channel svg { width: 24px; height: 24px; }
.channel:active { transform: scale(0.92); }
@media (hover: hover) {
  .channel:hover { border-color: var(--accent); background: rgba(232,228,216,0.06); }
}

.foot {
  text-align: center; color: var(--muted); padding: 2.5rem 1rem 3rem;
  font-family: 'Cinzel Decorative', serif; letter-spacing: 0.1em; font-size: .85rem;
}

.copied-toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%);
  background: rgba(232,228,216,0.95); color: #111; padding: .6rem 1.1rem;
  border-radius: 20px; font-size: .95rem; letter-spacing: .03em; z-index: 200;
}
.copied-toast[hidden] { display: none; }

/* ---- Lightbox ---- */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.96);
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y;
}
.lb[hidden] { display: none; }
.lb-figure { max-width: 100vw; max-height: 100svh; padding: 1rem; text-align: center; }
.lb-figure img {
  max-width: 96vw; max-height: 82svh; margin: 0 auto;
  object-fit: contain; border-radius: 2px;
}
.lb-figure figcaption {
  color: var(--fg); margin-top: .9rem; font-size: 1.05rem; letter-spacing: .02em;
  min-height: 1.2em;
}
.lb-close, .lb-nav {
  position: absolute; background: none; border: none; color: #fff;
  cursor: pointer; opacity: .8; transition: opacity .2s; z-index: 1;
  -webkit-tap-highlight-color: transparent;
}
.lb-close:active, .lb-nav:active { opacity: .4; }
.lb-close { top: .4rem; right: .7rem; font-size: 2.6rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 1rem; }
.lb-prev { left: .1rem; } .lb-next { right: .1rem; }
.lb-nav[hidden] { display: none; }
