:root {
  --glass-bg: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  --glass-hover: rgba(255, 255, 255, 0.20);
  --text: #1a1a2e;
  --text-light: rgba(26, 26, 46, 0.55);
  --text-on-dark: rgba(255, 255, 255, 0.85);
  --accent: #8b5e3c;
  --accent-warm: #c4956a;
  --gold: #b8941f;
  --cream: #faf6f0;
  --bg-start: #fdf5ed;
  --bg-mid: #f5e6d8;
  --bg-end: #ede0d4;
  --radius: 20px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--text);
  min-height: 100vh;
  background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* ---- Animated background blobs ---- */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.30;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(196, 149, 106, 0.3);
  top: -15%;
  left: -10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 450px;
  height: 450px;
  background: rgba(184, 148, 31, 0.2);
  top: 35%;
  right: -12%;
  animation-delay: -5s;
  animation-duration: 25s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: rgba(139, 94, 60, 0.15);
  bottom: -8%;
  left: 25%;
  animation-delay: -10s;
  animation-duration: 22s;
}

.blob-4 {
  width: 350px;
  height: 350px;
  background: rgba(237, 224, 212, 0.4);
  top: 60%;
  left: 55%;
  animation-delay: -15s;
  animation-duration: 28s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  background: rgba(250, 246, 240, 0.6);
  border-bottom: 1px solid rgba(139, 94, 60, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--accent);
}

.logo-accent {
  font-style: italic;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--accent);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  z-index: 1;
  padding: 100px 28px 80px;
  text-align: center;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- Section headers ---- */
.gallery-section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--accent);
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--accent-warm);
  margin: 16px auto 24px;
  opacity: 0.5;
}

/* ---- Filter nav ---- */
.filter-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1px solid rgba(139, 94, 60, 0.15);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.25);
  color: var(--text-light);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.45);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}

/* ---- Gallery grid ---- */
.gallery-grid {
  columns: 2;
  column-gap: 24px;
}

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

@media (min-width: 1100px) {
  .gallery-grid { columns: 3; }
}

/* ---- Gallery card ---- */
.gallery-card {
  break-inside: avoid;
  margin-bottom: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow: 0 4px 20px rgba(139, 94, 60, 0.06);
  cursor: pointer;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.gallery-card:hover, .gallery-card:active {
  transform: translateY(-6px) translateZ(0);
  box-shadow: 0 16px 48px rgba(139, 94, 60, 0.12);
}

.card-image-wrap {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  display: block;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: transform 0.5s ease;
}

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

.card-body {
  padding: 20px 22px 24px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* On touch devices */
@media (hover: none) {
  .gallery-card:active {
    transform: scale(0.98);
  }
}

/* ---- Artist section ---- */
.artist-section {
  position: relative;
  z-index: 1;
  padding: 80px 28px 100px;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.artist-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.artist-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 16px;
}

.artist-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 8px;
}

.artist-divider {
  width: 50px;
  height: 1px;
  background: var(--accent-warm);
  margin: 24px auto 32px;
  opacity: 0.4;
}

.artist-bio {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  text-align: left;
}

.artist-quote {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent-warm);
  margin: 40px 0 12px;
  line-height: 1.5;
}

.artist-attribution {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.35);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

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

.lightbox-content {
  max-width: 92vw;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 20px 0;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 70dvh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  transform: scale(0.92);
  transition: transform 0.35s ease;
}

.lightbox.active .lightbox-content img {
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  text-align: center;
}

.lightbox-desc {
  margin-top: 10px;
  max-width: 560px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 0 20px;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 51;
  font-size: 32px;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s;
  line-height: 1;
}

.lightbox-close:hover {
  color: white;
  background: rgba(255,255,255,0.12);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 51;
  font-size: 44px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s;
  line-height: 1;
}

.lightbox-nav:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
  .lightbox-nav { display: none; }
}

/* ---- Footer ---- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 28px;
  background: rgba(26, 26, 46, 0.96);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.footer-logo em {
  font-style: italic;
  color: var(--accent-warm);
}

.footer-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* ---- Fade-in animation ---- */
.gallery-card {
  animation: fadeUp 0.6s ease both;
}

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