:root {
  --bg: #f6f1eb;
  --bg-2: #efe8e0;
  --surface: #fbf7f2;
  --text: #1f1a17;
  --muted: #6e635b;
  --line: #ddd2c8;
  --primary: #a75131;
  --primary-dark: #8f4327;
  --shadow: 0 12px 30px rgba(49, 32, 24, 0.08);
  --radius: 22px;
  --container: min(1200px, calc(100% - 2rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.eyebrow {
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
}
.serif, h1, h2, h3 { font-family: "Indie Flower", cursive; }
.page-shell { min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 235, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(221, 210, 200, 0.6);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}
.site-header.nav-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.btn.hero-cta-ghost,
.hero-cta-ghost {
  background: transparent !important;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  margin-bottom: 1.5rem;
  display: inline-flex;
}
.btn.hero-cta-ghost:hover,
.hero-cta-ghost:hover {
  background: rgba(255,255,255,0.15) !important;
  border-color: #fff;
  transform: translateY(-1px);
}

/* Parallax target */
.hero-inner {
  will-change: transform;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}
.brand {
  font-family: "Great Vibes", cursive;
  letter-spacing: 0.05em;
  text-transform: none;
  font-size: 1.7rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav a {
  color: var(--muted);
  font-size: 0.98rem;
}
.nav a.active,
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  padding: 0.92rem 1.35rem;
  min-height: 48px;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn:hover,
.button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 999px;
}
.mobile-nav {
  display: none;
  padding-bottom: 1rem;
}
.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(221, 210, 200, 0.5);
}
.mobile-nav.is-open { display: block; }

.hero {
  position: relative;
  min-height: clamp(320px, 65vh, 700px);
  display: grid;
  align-items: center;
  isolation: isolate;
}
.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  background: linear-gradient(90deg, rgba(10,7,5,0.75) 0%, rgba(10,7,5,0.55) 40%, rgba(10,7,5,0.2) 70%, rgba(10,7,5,0.05) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  width: var(--container);
  margin: 0 auto;
  will-change: transform;
}
.hero-copy { max-width: 36rem; }
.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
  color: #fff;
}
.hero h1 .italic { font-style: italic; font-weight: 400; }
.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.8rem;
  max-width: 32rem;
}
.section { padding: 5rem 0; }
.section.soft { background: var(--bg-2); }
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin: 0.35rem 0 0;
  line-height: 1.08;
}
.section-header p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}
.card {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(221,210,200,0.7);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  background: #e7ddd5;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card h3 {
  margin: 1rem 0 0.25rem;
  font-size: 1.6rem;
}
.card .meta,
.meta {
  color: var(--muted);
  font-size: 0.92rem;
}
.card .actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.card .actions .btn,
.card .actions .button {
  width: 100%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}
.frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(49,32,24,0.12);
}
.frame img {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.copy-block h2,
.copy-block h1 {
  margin: 0.45rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}
.copy-block p {
  margin: 0 0 1rem;
  color: var(--muted);
}
.tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.tag {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--line);
  font-size: 0.85rem;
}
.newsletter {
  text-align: center;
  padding: 4.5rem 0;
}
.newsletter p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.2rem; }
.newsletter-form {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}
.newsletter-form input {
  width: min(100%, 320px);
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.6);
  padding: 0.9rem 1rem;
}

.site-footer {
  background: #f1e9e1;
  border-top: 1px solid rgba(221,210,200,0.9);
  padding: 2.2rem 0 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
}
.footer-grid h4 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.footer-grid p,
.footer-grid a { color: var(--muted); }
.footer-links { display: grid; gap: 0.6rem; }
.footer-links a:hover { color: var(--text); }
.small { font-size: 0.88rem; }

.page-hero {
  padding: 4.5rem 0 2rem;
}
.page-hero h1 {
  font-size: clamp(2.7rem, 7vw, 5rem);
  margin: 0.45rem 0 0.8rem;
  line-height: 1.02;
}
.page-hero p {
  max-width: 42rem;
  color: var(--muted);
  margin: 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.gallery-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  position: relative;
}
.gallery-card-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}
.gallery-card-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-card-link img {
  transform: scale(1.04);
}
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,25,22,0.82) 0%, rgba(30,25,22,0.3) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}
.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}
.gallery-card-title {
  font-family: "Indie Flower", cursive;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.2;
}

.artwork-grid {
  align-items: start;
}
.artwork-info {
  position: sticky;
  top: 104px;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spec-label {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  margin-bottom: 0.2rem;
}
.quote-box {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: rgba(167,81,49,0.08);
  border-left: 3px solid var(--primary);
  border-radius: 14px;
  font-style: italic;
}

.admin-shell {
  padding: 3rem 0 4rem;
}
.notice {
  background: #fff7e8;
  border: 1px solid #ecd8a8;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}
.admin-grid {
  display: grid;
  gap: 1rem;
}
.admin-panel {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
}
.admin-panel h2,
.admin-panel h3 {
  margin-top: 0;
}
.field-grid {
  display: grid;
  gap: 0.9rem;
}
.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
label span {
  display: block;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 0.85rem 0.9rem;
}
textarea { min-height: 110px; resize: vertical; }
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 1.2rem;
}
.code-block {
  background: #201b18;
  color: #f6f1eb;
  padding: 1rem;
  border-radius: 16px;
  overflow: auto;
  font-size: 0.85rem;
}

/* ── Gallery filter ──────────────────────────────────────── */
.gallery-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}
.gallery-filter {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-filter:hover {
  border-color: var(--text);
  color: var(--text);
}
.gallery-filter.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
}
.carousel-track {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0 1.5rem;
  flex: 1;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 220px;
  scroll-snap-align: start;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  padding: 0;
}
.carousel-card h3 {
  margin: 0.75rem 0 0.2rem;
  font-size: 1.2rem;
  padding: 0 0.25rem;
}
.carousel-card .meta {
  padding: 0 0.25rem;
}

/* Half-height images vs the original 3/4 ratio */
.carousel-media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 18px;
  background: #e7ddd5;
}
.carousel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.carousel-card:hover .carousel-media img {
  transform: scale(1.03);
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}
.carousel-btn:hover { background: white; }

@media (max-width: 980px) {
  .carousel-card { flex: 0 0 calc(50% - 0.75rem); }
  .cards-grid,
  .philosophy-grid,
  .about-grid,
  .artwork-grid,
  .footer-grid,
  .field-grid.two {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
  .section-header { align-items: start; flex-direction: column; }
}

@media (max-width: 600px) {
  .carousel-card { flex: 0 0 80%; }
  .carousel-btn { display: none; }
}

@media (max-width: 900px) {
  :root { --container: min(100% - 1.25rem, 100% - 1.25rem); }
  .nav,
  .header-actions .desktop-only { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .hero { min-height: auto; }
  .hero-overlay { background: linear-gradient(180deg, rgba(10,7,5,0.65) 0%, rgba(10,7,5,0.45) 50%, rgba(10,7,5,0.15) 100%); }
  .hero-inner { padding: 3rem 0 4rem; }
  .cards-grid,
  .philosophy-grid,
  .about-grid,
  .artwork-grid,
  .footer-grid,
  .field-grid.two,
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .artwork-info { position: static; }
  .hero h1,
  .page-hero h1,
  .copy-block h1,
  .copy-block h2,
  .section-header h2 { word-break: break-word; }
}

/* ── Homepage hero nav ───────────────────────────────────── */
.hero-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s ease;
}
.hero-nav .brand,
.hero-nav .nav a,
.hero-nav .menu-toggle {
  color: #fff;
}
.hero-nav .nav a.active,
.hero-nav .nav a:hover { color: rgba(255,255,255,0.7); }
.hero-nav .menu-toggle { border-color: rgba(255,255,255,0.5); }
.hero-nav .mobile-nav { background: rgba(10,7,5,0.92); }
.hero-nav .mobile-nav a { color: #fff; border-top-color: rgba(255,255,255,0.15); }

/* Once scrolled past hero, snap back to normal style */
.hero-nav.nav-scrolled {
  background: rgba(246,241,235,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(221,210,200,0.6);
}
.hero-nav.nav-scrolled .brand,
.hero-nav.nav-scrolled .nav a,
.hero-nav.nav-scrolled .menu-toggle {
  color: var(--text);
}
.hero-nav.nav-scrolled .nav a.active,
.hero-nav.nav-scrolled .nav a:hover { color: var(--text); }
.hero-nav.nav-scrolled .menu-toggle { border-color: var(--line); }

/* Push page-shell down so hero fills behind fixed nav */
.hero-page-shell { padding-top: 0; }
#app {
  will-change: opacity, transform;
}

/* ── Carousel hover overlay ──────────────────────────────── */
.carousel-media {
  position: relative;
  display: block;
}
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,25,22,0.82) 0%, rgba(30,25,22,0.3) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  border-radius: 18px;
}
.carousel-card:hover .carousel-overlay { opacity: 1; }
.carousel-overlay-title {
  font-family: "Indie Flower", cursive;
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.2;
}

/* ── Gallery sold/available dot ──────────────────────────── */
.status-dot {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  z-index: 2;
}
.status-dot--available { background: #4caf50; }
.status-dot--sold { background: #aaa; }

/* ── About portrait fixed aspect ratio ───────────────────── */
.portrait-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(49,32,24,0.12);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ── Artwork full-width hero ─────────────────────────────── */
.artwork-hero {
  width: 100%;
  max-height: 75vh;
  overflow: hidden;
  position: relative;
}
.artwork-hero img {
  width: 100%;
  height: 100%;
  max-height: 75vh;
  object-fit: cover;
  display: block;
}
.artwork-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,7,5,0.72) 0%, rgba(10,7,5,0.25) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem calc((100% - min(1200px, calc(100% - 2rem))) / 2);
}
.artwork-hero-title {
  font-family: "Indie Flower", cursive;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  margin: 0;
  line-height: 1.1;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.back-link {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.back-link:hover { color: var(--text); }
.artwork-detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
.artwork-detail-left h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}
.artwork-detail-right {
  position: sticky;
  top: 104px;
}
@media (max-width: 900px) {
  .artwork-detail {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .artwork-detail-right { position: static; }
  .artwork-hero { max-height: 55vw; }
}

/* ── Artwork image carousel ──────────────────────────────── */
.art-carousel {
  position: relative;
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e7ddd5;
}
.art-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.art-slide {
  flex: 0 0 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: zoom-in;
}
.art-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.art-slide:hover img { transform: scale(1.03); }

.art-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
}
.art-nav-btn:hover { background: #fff; }
.art-prev { left: 0.75rem; }
.art-next { right: 0.75rem; }

.art-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0 0.5rem;
  background: transparent;
}
.art-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(49,32,24,0.2);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.art-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,7,5,0.96);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  z-index: 2;
}
.lb-counter {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.lb-close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.lb-close:hover { background: rgba(255,255,255,0.15); }
.lb-body {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.lb-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.lb-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 4rem;
}
.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s;
}
.lb-nav:hover { background: rgba(255,255,255,0.15); }
#lbPrev { left: 0.75rem; }
#lbNext { right: 0.75rem; }
@media (max-width: 900px) {
  .lb-slide { padding: 0.5rem 3rem; }
  #lbPrev { left: 0.25rem; }
  #lbNext { right: 0.25rem; }
}

/* ── 2: Scroll indicator ─────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.7;
}
.scroll-indicator-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
  animation: scroll-line 1.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); opacity: 1; }
  70% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── 3: Gallery count ────────────────────────────────────── */
.gallery-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.gallery-count {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── 5: Skeleton loader ──────────────────────────────────── */
.skeleton-page { min-height: 100vh; }
.skeleton-nav {
  height: 78px;
  background: rgba(255,255,255,0.6);
  border-bottom: 1px solid var(--line);
}
.skeleton-hero {
  height: 65vh;
  background: linear-gradient(110deg, #ede8e3 30%, #f5f1ec 50%, #ede8e3 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
  margin-top: 2rem;
}
.skeleton-card {
  aspect-ratio: 3/2;
  border-radius: var(--radius);
  background: linear-gradient(110deg, #ede8e3 30%, #f5f1ec 50%, #ede8e3 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-card:nth-child(2) { animation-delay: 0.15s; }
.skeleton-card:nth-child(3) { animation-delay: 0.3s; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── 7: Blur-up image loading ────────────────────────────── */
.blur-img {
  filter: blur(12px);
  transform: scale(1.04);
  transition: filter 0.5s ease, transform 0.5s ease;
}
.blur-img.loaded {
  filter: blur(0);
  transform: scale(1);
}

/* ── 9: Gallery card enquire on hover ────────────────────── */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,25,22,0.82) 0%, rgba(30,25,22,0.3) 45%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.25rem;
  gap: 0.6rem;
}
.gallery-card:hover .gallery-card-overlay { opacity: 1; }
.gallery-card-title {
  font-family: "Indie Flower", cursive;
  font-size: 1.2rem;
  color: #fff;
  line-height: 1.2;
}
.gallery-card-enquire {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}
.gallery-card-enquire:hover { background: rgba(255,255,255,0.28); }

/* ── 10: Nav active underline animation ──────────────────── */
.nav a {
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--text);
  transition: width 0.25s ease;
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }
.hero-nav .nav a::after { background: rgba(255,255,255,0.8); }
.hero-nav.nav-scrolled .nav a::after { background: var(--text); }

/* ── 11: Back to top ─────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-to-top:hover { background: var(--primary); }

/* ── Related artworks ────────────────────────────────────── */
.related-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.related-heading {
  font-family: "Indie Flower", cursive;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.related-card a {
  display: block;
  text-decoration: none;
  color: var(--text);
}
.related-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 16px;
  background: #e7ddd5;
  margin-bottom: 0.75rem;
}
.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.related-card:hover .related-img img { transform: scale(1.04); }
.related-title { display: block; font-family: "Indie Flower", cursive; font-size: 1.1rem; }
.related-meta { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

@media (max-width: 900px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
  .skeleton-grid .skeleton-card:last-child { display: none; }
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}
