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

:root {
  --bg: #0d0d0d;
  --bg-alt: #141414;
  --bg-card: #1a1a1a;
  --text: #f0ece4;
  --text-muted: rgba(240, 236, 228, 0.5);
  --accent: #b8a99a;
  --accent-dim: rgba(184, 169, 154, 0.08);
  --accent-hover: #d4c8bc;
  --border: rgba(240, 236, 228, 0.08);
  --glow: rgba(184, 169, 154, 0.06);

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --touch-target-min: 44px;
}

.light-theme {
  --bg: #f5f2ed;
  --bg-alt: #ece7e0;
  --bg-card: #e5dfd6;
  --text: #1a1816;
  --text-muted: rgba(26, 24, 22, 0.5);
  --accent: #8a7a6a;
  --accent-dim: rgba(138, 122, 106, 0.08);
  --accent-hover: #6d5f52;
  --border: rgba(26, 24, 22, 0.08);
  --glow: rgba(138, 122, 106, 0.06);
}
.light-theme #navbar {
  background: rgba(245, 242, 237, 0.88);
}
.light-theme .nav-overlay {
  background: rgba(245, 242, 237, 0.97);
}
.light-theme .hero-overlay {
  background: linear-gradient(transparent, rgba(245, 242, 237, 0.88) 60%);
}


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 300;
  letter-spacing: -0.01em;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  font-size: 15px;
  overflow-x: hidden;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.4s;
}
a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

/* SPA Routing views */
.view-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.view-panel.active-view {
  display: block;
  opacity: 1;
}

/* Base Page Padding */
section {
  padding: 64px 24px 48px;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-header h1,
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── Minimal Navbar ─── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 300;
  letter-spacing: 0.5px;
  text-decoration: none;
}
.nav-menu-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.3s;
}
.nav-menu-btn:hover {
  color: var(--text);
}
.theme-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  position: relative;
}
.theme-toggle-btn:hover {
  color: var(--text);
}
.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  transition: opacity 0.4s, transform 0.4s;
}
.theme-icon-moon {
  opacity: 1;
  transform: rotate(0);
}
.theme-icon-sun {
  opacity: 0;
  transform: rotate(90deg);
}
.light-theme .theme-icon-moon {
  opacity: 0;
  transform: rotate(-90deg);
}
.light-theme .theme-icon-sun {
  opacity: 1;
  transform: rotate(0);
}

/* ─── Full-Screen Navigation Overlay ─── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(13, 13, 13, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.nav-overlay-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}
.nav-overlay-close:hover {
  color: var(--text);
}
.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  list-style: none;
}
.nav-overlay-links a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 200;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.4s, padding-left 0.4s;
}
.nav-overlay-links a:hover,
.nav-overlay-links a.active {
  color: var(--text);
  padding-left: 16px;
}
.nav-overlay-sublinks {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-overlay-sublinks a {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  transition: color 0.3s;
}
.nav-overlay-sublinks a:hover {
  color: var(--accent);
}
.nav-overlay-social {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  padding-bottom: 32px;
}
.nav-overlay-social a {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s;
}
.nav-overlay-social a:hover {
  color: var(--text);
}

/* ─── Single-Column Layout (no sidebar) ─── */
.global-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 32px 40px;
  min-height: 100vh;
}

/* ─── Hero Section (Full-bleed Featured Artwork) ─── */
#heroSection {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
}
.hero-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image {
  padding: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 48px 48px;
  background: linear-gradient(transparent, rgba(13, 13, 13, 0.85) 60%);
  pointer-events: none;
}
.hero-overlay h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 200;
  color: var(--text);
  margin-bottom: 4px;
  pointer-events: all;
}
.hero-overlay .hero-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  pointer-events: all;
}
.hero-overlay .hero-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  pointer-events: all;
  transition: border-color 0.3s, background 0.3s;
  background: transparent;
  cursor: pointer;
}
.hero-overlay .hero-cta:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* ─── Landing Gallery (Homepage) ─── */
.landing-gallery-header {
  text-align: center;
  margin-bottom: 40px;
}
.landing-gallery-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 200;
  color: var(--text);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.category-card {
  cursor: pointer;
  transition: var(--transition);
}
.category-card:hover {
  opacity: 0.8;
}
.category-img-wrapper {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.category-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-card:hover .category-img-wrapper img {
  transform: scale(1.04);
}
.category-card h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.5px;
}
.category-footer {
  text-align: center;
  margin-bottom: 60px;
}
.category-subtext {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.btn-view-all {
  display: inline-block;
  padding: 12px 32px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.btn-view-all:hover {
  border-color: var(--accent);
  background: rgba(240, 236, 228, 0.05);
}
.commission-banner {
  text-align: center;
  padding: 32px 0;
  margin-bottom: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.commission-banner p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}
.commission-social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.social-link:hover {
  color: var(--accent);
}
.social-link svg {
  transition: transform 0.3s ease;
}
.social-link:hover svg {
  transform: translateY(-1px);
}

/* ─── Secondary Navigation Grid ─── */
.secondary-nav-container {
  margin-bottom: 20px;
}
.secondary-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.sec-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  text-align: center;
  min-height: 80px;
}
.sec-nav-link:hover {
  background: var(--bg-card);
  color: var(--accent);
}

@media (max-width: 700px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .secondary-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .category-card h3 {
    font-size: 0.85rem;
  }
  .secondary-nav-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sec-nav-link {
    padding: 18px 12px;
    font-size: 0.85rem;
    min-height: 64px;
  }
}

/* Featured Artwork Section (below hero) */
#featuredSection {
  margin-bottom: 80px;
}
.featured-card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.featured-card-image {
  flex: 0 0 50%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
  transition: box-shadow 0.5s ease;
}
.featured-card-image:hover {
  box-shadow: 0 0 60px var(--glow);
}
.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.featured-card-image:hover img {
  transform: scale(1.02);
}
.featured-card-info {
  flex: 1;
  padding-top: 4px;
}
.featured-card-info h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text);
}
.featured-card-info .featured-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.featured-card-info .featured-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.featured-card-info .featured-description p {
  margin: 0 0 12px;
}
.featured-card-info .featured-description p:last-child {
  margin-bottom: 0;
}
.featured-card-info .featured-price {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.featured-card-info .featured-cta {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}
.featured-card-info .featured-cta:hover {
  background: rgba(240, 236, 228, 0.08);
  border-color: var(--accent);
}

/* ─── Artist Statement ─── */
.artist-statement {
  max-width: 700px;
  margin: 100px auto 120px auto;
  text-align: center;
  padding: 80px 24px 0;
  border-top: 1px solid var(--border);
}
.statement-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  font-weight: 300;
  margin-bottom: 24px;
  opacity: 0.9;
}
.statement-author {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  font-weight: 400;
}
.statement-bio {
  margin-top: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  line-height: 1.8;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.statement-bio p {
  margin-bottom: 16px;
}
.statement-bio strong {
  color: var(--text);
  font-weight: 400;
}
.statement-bio a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 169, 154, 0.2);
}
.statement-bio a:hover {
  border-bottom-color: var(--accent);
}

/* ─── About / Career ─── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.about-card {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
}
.about-card:hover {
  border-color: rgba(240, 236, 228, 0.15);
  background: var(--bg-card);
}
.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 6px;
}
.about-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.about-back {
  margin-bottom: 32px;
}
.career-section {
  max-width: 700px;
  margin: 0 auto;
}
.career-heading {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 200;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.career-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.career-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.career-item:last-child {
  border-bottom: none;
}
.career-year {
  flex-shrink: 0;
  width: 60px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 400;
  padding-top: 1px;
}
.career-detail {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.career-detail strong {
  color: var(--text);
  font-weight: 400;
}
.career-desc {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
}
.career-type {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  padding: 2px 8px;
  border: 1px solid rgba(184, 169, 154, 0.2);
  border-radius: 2px;
  margin-left: 8px;
}
.career-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}
.career-link:hover {
  color: var(--accent-hover);
}

@media (max-width: 700px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .career-item {
    flex-direction: column;
    gap: 4px;
  }
  .career-year {
    width: auto;
  }
}
@media (max-width: 480px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Gallery Grid ─── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px 40px;
  padding: 20px 0;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  outline: none;
  border-radius: 2px;
}
.gallery-item:hover {
  transform: translateY(-4px);
}
.gallery-item:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
.gallery-img-wrapper {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  position: relative;
}
.gallery-img-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, var(--bg-alt) 30%, var(--bg-card) 50%, var(--bg-alt) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.gallery-img-wrapper.loaded::before {
  opacity: 0;
  animation: none;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.gallery-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: box-shadow 0.5s ease;
  pointer-events: none;
  z-index: 2;
}
.gallery-item:hover .gallery-img-wrapper::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 0 60px var(--glow);
}
.gallery-img-wrapper img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-img-wrapper.loaded img {
  opacity: 1;
}
.gallery-item:hover .gallery-img-wrapper img {
  transform: scale(1.05);
}
.gallery-info {
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}
.gallery-item:hover .gallery-info {
  padding-top: 18px;
}
.gallery-info-main h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 400;
  line-height: 1.3;
  transition: color 0.4s ease;
}
.gallery-item:hover .gallery-info-main h3 {
  color: var(--accent);
}
.gallery-info-main p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: color 0.4s ease;
}
.gallery-item:hover .gallery-info-main p {
  color: rgba(240, 236, 228, 0.65);
}
.gallery-info-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  margin-top: 4px;
}
.gallery-info-meta .price {
  color: var(--accent);
  font-weight: 400;
  transition: color 0.4s ease;
}
.gallery-item:hover .gallery-info-meta .price {
  color: var(--accent-hover);
}
.gallery-info-meta .availability {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 400;
}
.availability.available {
  color: rgba(122, 184, 148, 0.7);
}
.availability.sold {
  color: var(--text-muted);
}
.availability.commissioned {
  color: rgba(184, 169, 154, 0.6);
  font-style: italic;
}
.availability.not-for-sale {
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Category Filter Bar ─── */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.filter-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
  font-family: var(--font-sans);
  font-weight: 400;
}
.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.filter-btn:hover {
  color: var(--text);
}
.filter-btn.active {
  color: var(--text);
}
.filter-btn.active::after {
  transform: scaleX(1);
}

/* ─── Blog / Writings ─── */
.writings-container {
  max-width: 700px;
  margin: 0 auto;
}
.essay-item {
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
  cursor: pointer;
  transition: opacity 0.3s;
}
.essay-item:last-child {
  border-bottom: none;
}
.essay-item:hover {
  opacity: 0.7;
}
.essay-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-weight: 400;
}
.essay-item h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 300;
  line-height: 1.3;
}
.essay-snippet {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Essay Reader ─── */
.essay-read-container {
  max-width: 680px;
  margin: 40px auto 100px auto;
}
.essay-back-btn {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  background: none;
  border: none;
  transition: color 0.3s;
  font-family: var(--font-sans);
}
.essay-back-btn:hover {
  color: var(--text);
}
.essay-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
  margin-bottom: 48px;
}
.essay-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 14px;
  font-weight: 200;
}
.essay-body {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text);
  font-weight: 300;
}
.essay-body p {
  margin-bottom: 28px;
}
.essay-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border: 1px solid var(--border);
}

/* ─── Blog Cards ─── */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 24px;
  cursor: pointer;
  transition: border-color 0.4s, box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.blog-card:hover {
  border-color: rgba(240, 236, 228, 0.15);
  box-shadow: 0 0 60px var(--glow);
}
.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-alt);
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}
.blog-card-body {
  padding: 28px 28px 32px;
}
.blog-card-body-narrow {
  padding: 28px;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.blog-card-date {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
}
.blog-card-readtime {
  font-style: italic;
}
.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.blog-card-link {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: letter-spacing 0.3s;
}
.blog-card:hover .blog-card-link {
  letter-spacing: 2px;
}

/* ─── Exhibitions Timeline ─── */
.exhibitions-timeline {
  max-width: 700px;
  margin: 0 auto;
}
.exhibition-era {
  margin-bottom: 48px;
}
.exhibition-era:last-child {
  margin-bottom: 0;
}
.exhibition-era-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 200;
  color: var(--text);
}
.exhibition-era-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.exhibition-entry {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.3s;
}
.exhibition-entry:last-child {
  border-bottom: none;
}
.exhibition-entry:hover {
  opacity: 0.7;
}

.exhibition-entry-thumbs {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.exhibition-entry-thumb {
  width: 120px;
  height: 90px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  flex-shrink: 0;
}
.exhibition-entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.exhibition-entry-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exhibition-entry-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.exhibition-entry-body-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.exhibition-entry-year-tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 2px;
}
.exhibition-entry-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 4px;
}
.exhibition-entry-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2px;
}
.exhibition-entry-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.exhibition-entry-action {
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  transition: letter-spacing 0.3s;
}
.exhibition-entry:hover .exhibition-entry-action {
  letter-spacing: 1.5px;
}

@media (max-width: 599px) {
  .exhibition-entry {
    flex-direction: column;
    gap: 12px;
  }
  .exhibition-entry-thumbs {
    order: -1;
  }
  .exhibition-entry-thumb {
    width: 100px;
    height: 75px;
  }
}

/* Lightbox Gallery Navigation */
.lb-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 16px;
}
.lb-nav-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  line-height: 1;
}
.lb-nav-btn:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}
.lb-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}
.lb-counter {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  min-width: 60px;
  text-align: center;
}

/* Lightbox thumbnails (dark theme) */
.lightbox .lb-thumb-item {
  border-radius: 2px;
  transition: border-color 0.2s, opacity 0.2s;
  opacity: 0.6;
}
.lightbox .lb-thumb-item:hover {
  opacity: 0.9;
}
.lightbox .lb-thumb-item.active {
  opacity: 1;
}


/* ─── Contact Section ─── */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-details h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 16px;
}
.contact-details p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-icon {
  color: var(--accent);
  display: flex;
  opacity: 0.6;
}
.contact-item a {
  color: var(--text);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.contact-item a:hover {
  border-bottom-color: var(--accent);
}
.contact-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form input,
.contact-form textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 14px 18px;
  width: 100%;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
  font-weight: 300;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(240, 236, 228, 0.3);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid rgba(240, 236, 228, 0.2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  font-weight: 400;
  width: fit-content;
  font-family: var(--font-sans);
}
.btn:hover {
  border-color: rgba(240, 236, 228, 0.4);
  background: rgba(240, 236, 228, 0.05);
}
.btn-buy {
  background: rgba(184, 169, 154, 0.15) !important;
  border: 1px solid rgba(184, 169, 154, 0.3) !important;
  color: var(--text) !important;
}
.btn-buy:hover {
  background: rgba(184, 169, 154, 0.25) !important;
}

/* ─── Contact Form Feedback ─── */
.contact-feedback {
  padding: 12px 16px;
  margin-top: 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  text-align: center;
}

/* =============================== */
/* Immersive Gallery Mode (Lightbox) */
/* =============================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  user-select: none;
  -webkit-user-select: none;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* Close button */
.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 210;
  transition: background 0.3s, border-color 0.3s;
  width: var(--touch-target-min);
  height: var(--touch-target-min);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Counter badge */
.lightbox-counter {
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 2px;
  z-index: 210;
  font-weight: 500;
  pointer-events: none;
}

/* Main image area - fills available space */
.lightbox-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
  padding: 60px 80px 80px;
}
.lightbox-image .lb-img-current,
.lightbox-image .lb-img-next {
  position: absolute;
  inset: 60px 80px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-image .lb-img-current {
  opacity: 1;
  z-index: 1;
  transition: opacity 0.35s ease;
}
.lightbox-image .lb-img-current.fade-out {
  opacity: 0;
}
.lightbox-image .lb-img-next {
  opacity: 0;
  z-index: 0;
}
.lightbox-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Full-height prev/next hit zones */
.lightbox-nav-side {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 205;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}
.lightbox-nav-side:hover {
  background: rgba(255, 255, 255, 0.03);
}
.lightbox-nav-side.lb-nav-prev {
  left: 0;
}
.lightbox-nav-side.lb-nav-next {
  right: 0;
}
.lightbox-nav-side .lb-nav-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-nav-side:hover .lb-nav-icon {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.lightbox-nav-side.lb-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Metadata panel - bottom-left, auto-hides */
.lightbox-metadata {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 210;
  max-width: 520px;
  padding: 16px 20px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  transition: opacity 0.5s ease, transform 0.5s ease, padding 0.3s ease;
  pointer-events: all;
}

.lb-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lb-meta-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.5);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: transform 0.3s ease, background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.lb-meta-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}
.lb-meta-toggle.lb-toggle-collapsed {
  transform: rotate(-90deg);
}
.lb-meta-body {
  overflow: hidden;
  max-height: 600px;
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}
.lb-meta-body.lb-body-collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}
.lightbox-metadata.metadata-hidden {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.lightbox-metadata .lb-meta-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #fff;
  font-weight: 300;
  line-height: 1.3;
}
.lightbox-metadata .lb-meta-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.lightbox-metadata .lb-meta-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
.lightbox-metadata .lb-meta-details span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lightbox-metadata .lb-meta-details strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}
.lb-meta-description {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}
.lb-meta-description p {
  margin: 0 0 10px;
}
.lb-meta-description p:last-child {
  margin-bottom: 0;
}
.lb-meta-description::-webkit-scrollbar {
  width: 3px;
}
.lb-meta-description::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}
.lightbox-metadata .lb-meta-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.lightbox-metadata .lb-meta-actions button {
  padding: 10px 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}
.lb-btn-inquire {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}
.lb-btn-inquire:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
}
.lb-btn-buy {
  background: var(--accent);
  border: none;
  color: #fff;
}
.lb-btn-buy:hover {
  background: #3a5a60;
}

/* Availability tag */
.lb-availability {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  display: inline-block;
}
.lb-availability.available {
  color: #7ab894;
}
.lb-availability.sold {
  color: rgba(255, 255, 255, 0.35);
}

/* Razorpay form inside metadata */
.lb-razorpay-form {
  display: none;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}
.lb-razorpay-form.open {
  display: block;
}
.lb-razorpay-form p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px;
}
.lb-razorpay-form input {
  display: block;
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  border-radius: 3px;
  outline: none;
}
.lb-razorpay-form input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.lb-razorpay-form input:focus {
  border-color: rgba(255, 255, 255, 0.25);
}
.lb-razorpay-form .lb-rp-row {
  display: flex;
  gap: 8px;
}
.lb-razorpay-form .lb-rp-row button {
  flex: 1;
  padding: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
}
.lb-rp-submit {
  background: var(--accent);
  border: none;
  color: #fff;
}
.lb-rp-submit:hover {
  background: #3a5a60;
}
.lb-rp-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
}
.lb-rp-cancel:hover {
  background: rgba(255, 255, 255, 0.06);
}
.lb-rp-error {
  color: #e05050;
  font-size: 0.75rem;
  margin-top: 6px;
  display: none;
}

/* Description panel - merged into metadata */
.lightbox-description {
  display: none;
}

/* Filmstrip - bottom of screen */
.lightbox-filmstrip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 210;
  display: flex;
  justify-content: center;
  padding: 12px 80px 16px;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.9) 40%);
  pointer-events: none;
}
.lightbox-filmstrip-inner {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  pointer-events: all;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.lightbox-filmstrip-inner::-webkit-scrollbar {
  height: 2px;
}
.lightbox-filmstrip-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}
.lb-filmstrip-thumb {
  width: 60px;
  height: 45px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  pointer-events: all;
  scroll-snap-align: center;
  opacity: 0.5;
}
.lb-filmstrip-thumb:hover {
  opacity: 0.8;
  border-color: rgba(255, 255, 255, 0.25);
}
.lb-filmstrip-thumb.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.08);
}
.lb-filmstrip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Exhibition lightbox overrides (reuses lightbox) */
.lightbox.exhibition-mode .lightbox-metadata {
  position: static;
  background: none;
  backdrop-filter: none;
  border: none;
  padding: 0;
  max-width: 100%;
}
.lightbox.exhibition-mode .lightbox-image {
  flex: 1;
  padding: 60px 80px 100px;
}

/* Responsive: tablet */
@media (max-width: 900px) {
  .lightbox-image {
    padding: 56px 16px 80px;
  }
  .lightbox-image .lb-img-current,
  .lightbox-image .lb-img-next {
    inset: 56px 16px 80px;
  }
  .lightbox-nav-side {
    width: 56px;
  }
  .lightbox-nav-side .lb-nav-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .lightbox-metadata {
    left: 16px;
    bottom: 76px;
    max-width: 320px;
    padding: 14px 18px;
  }
  .lightbox-metadata .lb-meta-title {
    font-size: 1.2rem;
  }

  .lightbox-filmstrip {
    padding: 8px 56px 12px;
  }
  .lb-filmstrip-thumb {
    width: 48px;
    height: 36px;
  }
}

/* Responsive: mobile */
@media (max-width: 600px) {
  .lightbox-image {
    padding: 48px 0 64px;
  }
  .lightbox-image .lb-img-current,
  .lightbox-image .lb-img-next {
    inset: 48px 0 64px;
  }
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  .lightbox-counter {
    top: 18px;
    font-size: 0.65rem;
  }
  .lightbox-nav-side {
    width: 44px;
  }
  .lightbox-nav-side .lb-nav-icon {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .lightbox-metadata {
    left: 12px;
    right: 12px;
    bottom: 64px;
    max-width: none;
    padding: 12px 16px;
  }
  .lightbox-metadata .lb-meta-title {
    font-size: 1rem;
  }
  .lightbox-metadata .lb-meta-details {
    font-size: 0.72rem;
    gap: 4px 10px;
    margin-top: 6px;
  }
.lightbox-metadata .lb-meta-actions {
    margin-top: 10px;
  }
  .lightbox-metadata .lb-meta-actions button {
    padding: 8px 14px;
    font-size: 0.65rem;
    flex: 1;
    text-align: center;
  }
  .lightbox-filmstrip {
    padding: 6px 44px 10px;
  }
  .lb-filmstrip-thumb {
    width: 60px;
    height: 45px;
  }
  .lightbox-nav-side:hover {
    background: transparent;
  }
}

/* Responsive: small mobile (metadata minimal) */
@media (max-width: 400px) {
  .lightbox-image {
    padding: 44px 0 56px;
  }
  .lightbox-image .lb-img-current,
  .lightbox-image .lb-img-next {
    inset: 44px 0 56px;
  }
  .lightbox-metadata .lb-meta-sub {
    font-size: 0.72rem;
  }
  .lightbox-metadata .lb-meta-details span {
    font-size: 0.68rem;
  }
  .lb-filmstrip-thumb {
    width: 32px;
    height: 24px;
  }
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
  background: var(--bg);
  text-align: center;
}
footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .global-main {
    padding: 72px 24px 60px;
  }
  .contact-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .featured-card {
    flex-direction: column;
  }
  .featured-card-image {
    flex: none;
    width: 100%;
  }
  .hero-image {
    padding: 24px;
  }
  .hero-overlay {
    padding: 40px 24px 32px;
  }
  #heroSection {
    height: 60vh;
    min-height: 400px;
  }
  .nav-inner {
    padding: 14px 24px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 48px 16px 64px;
  }
  .global-main {
    padding: 64px 16px 48px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
  .nav-brand {
    font-size: 1.1rem;
  }
  .nav-overlay-links a {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
  #heroSection {
    height: 50vh;
    min-height: 320px;
  }
  .hero-image {
    padding: 16px;
  }
  .hero-overlay {
    padding: 32px 20px 24px;
  }
  .commission-social {
    gap: 16px;
    flex-wrap: wrap;
  }
  footer {
    padding: 32px 16px;
  }
  .exhibition-era-heading {
    font-size: 1.3rem;
  }
  .exhibition-entry-title {
    font-size: 1rem;
  }
  .career-heading {
    font-size: 1.3rem;
  }
  .contact-details h3 {
    font-size: 1.3rem;
  }
  .essay-item h3 {
    font-size: 1.2rem;
  }
  .essay-body {
    line-height: 1.7;
  }
  .blog-card-body,
  .blog-card-body-narrow {
    padding: 20px 16px 24px;
  }
  .blog-card-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .filter-bar {
    gap: 6px 12px;
  }
  .filter-btn {
    font-size: 0.7rem;
    padding: 8px 0;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 16px;
  }
  .nav-overlay-links a {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }
}

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

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 72px;
  right: 24px;
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.toast.success { border-left-color: rgba(122, 184, 148, 0.8); }
.toast.error { border-left-color: rgba(200, 70, 70, 0.8); }

/* ─── Spinner ─── */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-placeholder {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── Page Loader ─── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 1;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  visibility: visible;
  pointer-events: all;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-loader .spinner {
  width: 32px;
  height: 32px;
  border-width: 2px;
}
.page-loader p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
}

/* ─── Back to Top ─── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, border-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover {
  border-color: var(--accent);
}

/* ─── Policy Pages (Terms, Privacy, Refund) ─── */
.policy-page {
  max-width: 760px;
}
.policy-section {
  margin-bottom: 32px;
}
.policy-section h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text);
}
.policy-section p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.policy-section a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.policy-section a:hover {
  border-bottom-color: var(--accent);
}

/* ─── Footer Links ─── */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
  font-size: 0.78rem;
}
.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-links a:hover {
  color: var(--accent);
}

/* ─── Lightbox metadata panel overflow fix ─── */
.lightbox-metadata {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  bottom: 80px;
}
.lightbox-metadata::-webkit-scrollbar {
  width: 3px;
}
.lightbox-metadata::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}
.lb-meta-body {
  overflow-y: auto;
  max-height: 50vh;
}

/* ─── Light theme overrides (must come after base lightbox styles) ─── */
.light-theme .lightbox {
  background: #f2efe8;
}
.light-theme .lightbox-close {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}
.light-theme .lightbox-close:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}
.light-theme .lightbox-counter {
  color: rgba(0, 0, 0, 0.35);
}
.light-theme .lb-nav-icon {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.6);
}
.light-theme .lightbox-nav-side:hover .lb-nav-icon {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.15);
}
.light-theme .lightbox-nav-side:hover {
  background: rgba(0, 0, 0, 0.02);
}
.light-theme .lb-meta-toggle {
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.45);
}
.light-theme .lb-meta-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.7);
}
.light-theme .lightbox-metadata {
  background: rgba(245, 242, 237, 0.92);
  border-color: rgba(0, 0, 0, 0.08);
}
.light-theme .lightbox-metadata::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}
.light-theme .lightbox-metadata .lb-meta-title {
  color: #1a1816;
}
.light-theme .lightbox-metadata .lb-meta-sub {
  color: rgba(0, 0, 0, 0.5);
}
.light-theme .lightbox-metadata .lb-meta-details {
  color: rgba(0, 0, 0, 0.45);
}
.light-theme .lightbox-metadata .lb-meta-details strong {
  color: rgba(0, 0, 0, 0.7);
}
.light-theme .lightbox-metadata .lb-meta-description {
  color: rgba(0, 0, 0, 0.55);
  border-top-color: rgba(0, 0, 0, 0.06);
}
.light-theme .lightbox-metadata .lb-meta-description::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
}
.light-theme .lightbox-metadata .lb-btn-inquire {
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.7);
}
.light-theme .lightbox-metadata .lb-btn-inquire:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.25);
}
.light-theme .lightbox-metadata .lb-btn-buy {
  color: #fff;
}
.light-theme .lightbox-metadata .lb-btn-buy:hover {
  background: #2d4a50;
}
.light-theme .lightbox-metadata .lb-availability.available {
  color: #2d7a4e;
}
.light-theme .lightbox-metadata .lb-availability.sold {
  color: rgba(0, 0, 0, 0.35);
}
.light-theme .lb-razorpay-form {
  border-color: rgba(0, 0, 0, 0.08);
}
.light-theme .lb-razorpay-form p {
  color: rgba(0, 0, 0, 0.4);
}
.light-theme .lb-rp-form input {
  border-color: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}
.light-theme .lb-rp-form input::placeholder {
  color: rgba(0, 0, 0, 0.25);
}
.light-theme .lb-rp-form input:focus {
  border-color: rgba(0, 0, 0, 0.2);
}
.light-theme .lb-rp-submit {
  color: #fff;
}
.light-theme .lb-rp-submit:hover {
  background: #2d4a50;
}
.light-theme .lb-rp-cancel {
  border-color: rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.45);
}
.light-theme .lb-rp-cancel:hover {
  background: rgba(0, 0, 0, 0.06);
}
.light-theme .lb-rp-form {
  background: rgba(0, 0, 0, 0.03);
}
.light-theme .lightbox-filmstrip {
  background: linear-gradient(transparent, rgba(245, 242, 237, 0.95) 40%);
}
.light-theme .lightbox-filmstrip-inner::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}
.light-theme .lb-filmstrip-thumb {
  border-color: rgba(0, 0, 0, 0.1);
}
.light-theme .lb-filmstrip-thumb:hover {
  border-color: rgba(0, 0, 0, 0.2);
}
.light-theme .lb-filmstrip-thumb.active {
  border-color: rgba(0, 0, 0, 0.5);
}
.light-theme .lb-meta-body {
  overflow-y: auto;
}

/* ─── Fade Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--fade-delay, 0) * 1s);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
