:root {
  --bg-primary: #111110;
  --bg-secondary: #191816;
  --bg-card: #1f1e1b;
  --bg-elevated: #272521;
  --text-primary: #f3efe6;
  --text-secondary: #b8b2a6;
  --text-muted: #857f74;
  --accent-gold: #c9a66b;
  --accent-gold-hover: #dfb97a;
  --accent-gold-subtle: rgba(201, 166, 107, 0.14);
  --border-subtle: rgba(243, 239, 230, 0.09);
  --border-gold: rgba(201, 166, 107, 0.35);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.45);
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

[data-theme="light"] {
  --bg-primary: #f7f4ee;
  --bg-secondary: #efeae0;
  --bg-card: #ffffff;
  --bg-elevated: #f3efe6;
  --text-primary: #1c1a17;
  --text-secondary: #544f46;
  --text-muted: #7d766b;
  --accent-gold: #9a7438;
  --accent-gold-hover: #7d5c28;
  --accent-gold-subtle: rgba(154, 116, 56, 0.12);
  --border-subtle: rgba(28, 26, 23, 0.1);
  --border-gold: rgba(154, 116, 56, 0.35);
  --shadow-card: 0 10px 28px rgba(28, 26, 23, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(17, 17, 16, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .site-header {
  background: rgba(247, 244, 238, 0.92);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-dates {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-icon {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.42rem 0.72rem;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-icon:hover {
  border-color: var(--border-gold);
  color: var(--accent-gold);
}

.count-chip,
.badge-count {
  background: var(--accent-gold);
  color: #111110;
  border-radius: 999px;
  padding: 0.05rem 0.42rem;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Hero Section */
.hero {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.3vw, 3.9rem);
  font-weight: 500;
  line-height: 1.08;
  margin-bottom: 1.15rem;
}

.hero-subtitle {
  font-size: 1.04rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 1.85rem;
  line-height: 1.72;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.hero-showcase {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.hero-showcase img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-showcase:hover img {
  transform: scale(1.025);
}

.hero-caption {
  padding: 0.95rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hero-caption-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.hero-caption-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Section Layout */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.25rem 2rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.15;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 700px;
  margin-top: 0.35rem;
}

/* Controls: Search, Category Pills & Color Mood Pills */
.controls-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-secondary);
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

.search-box {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.search-box input {
  width: 100%;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box input:focus {
  border-color: var(--accent-gold);
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.filter-pills,
.color-mood-pills,
.mood-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  align-items: center;
}

.color-mood-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
}

.filter-row-label,
.mood-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.pill,
.mood-pill {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pill:hover,
.mood-pill:hover {
  border-color: var(--border-gold);
  color: var(--text-primary);
}

.pill.active,
.mood-pill.active {
  background: var(--accent-gold);
  color: #111110;
  border-color: var(--accent-gold);
  font-weight: 600;
}

.mood-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: inline-block;
}

.pill-count {
  font-size: 0.72rem;
  opacity: 0.78;
}

.results-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Gallery Grid & Cards */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}

.art-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.art-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card);
}

.art-thumb-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  background: #0b0b0a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .art-thumb-wrap {
  background: #e7e1d5;
}

.art-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform 0.45s ease;
}

.art-card:hover .art-thumb-wrap img {
  transform: scale(1.04);
}

.art-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.badge {
  background: rgba(17, 17, 16, 0.84);
  backdrop-filter: blur(6px);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.52rem;
  border-radius: 4px;
  font-weight: 600;
}

.card-fav-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(17, 17, 16, 0.78);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.card-fav-btn:hover,
.card-fav-btn.active {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(17, 17, 16, 0.92);
}

.art-body {
  padding: 1.05rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.art-title {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.26;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.art-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.art-palette-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-bottom: 0.65rem;
}

.swatch-group {
  display: flex;
  gap: 0.28rem;
}

.swatch-dot {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.swatch-dot:hover {
  transform: scale(1.25);
}

.loc-tag {
  font-size: 0.73rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.art-meta-footer {
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Catalog Table View */
.catalog-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: var(--bg-card);
}

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.catalog-table th,
.catalog-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.catalog-table th {
  background: var(--bg-secondary);
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.06em;
}

.catalog-table tr:hover {
  background: var(--accent-gold-subtle);
  cursor: pointer;
}

.table-thumb {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* Interactive Geographic Map Section */
.map-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.map-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  margin-top: 1.35rem;
  align-items: start;
}

.artist-map-canvas,
.artist-map {
  width: 100%;
  height: 460px;
  border-radius: 10px;
  border: 1px solid var(--border-gold);
  overflow: hidden;
  background: #0d1117;
  z-index: 10;
}

.map-sidebar,
.location-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.loc-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.location-art-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  max-height: 270px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.mini-art-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.4rem;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mini-art-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.mini-art-card img {
  width: 100%;
  height: 85px;
  object-fit: cover;
  border-radius: 4px;
}

.mini-art-title {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Curated Guided Tours Section */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.35rem;
}

.tour-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.tour-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.tour-card-img {
  position: relative;
  height: 170px;
  background: #0b0b0a;
}

.tour-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-card-img .badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
}

.tour-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Paris Salon Pairings Section */
.salon-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.salon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(540px, 1fr));
  gap: 1.65rem;
}

.salon-pair-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.salon-pair-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.7rem;
}

.salon-year-badge {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.salon-entry-code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.salon-pair-images {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 1rem;
  align-items: stretch;
}

.salon-slot {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.salon-slot:hover {
  border-color: var(--accent-gold);
}

.salon-slot img {
  width: 100%;
  height: 215px;
  object-fit: contain;
}

.salon-slot-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Timeline Section */
.timeline {
  position: relative;
  margin-top: 1.75rem;
  padding-left: 2rem;
  border-left: 2px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.15rem 1.4rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.42rem;
  top: 1.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid var(--bg-primary);
}

.timeline-year {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.timeline-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.timeline-art-link {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-weight: 500;
}

/* Lightbox Modal + Virtual Wall & Unframed Canvas Modes */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 9, 0.92);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  max-width: 1320px;
  width: 100%;
  max-height: 93vh;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75);
}

.lightbox-left-col {
  display: flex;
  flex-direction: column;
  background: #080807;
  max-height: 93vh;
}

.stage-toolbar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #121110;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.stage-mode-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #c8c2b6;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.32rem 0.75rem;
  border-radius: 6px;
  font-size: 0.77rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.stage-mode-btn.active {
  background: var(--accent-gold);
  color: #111110;
  border-color: var(--accent-gold);
  font-weight: 600;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  overflow: auto;
  padding: 1.5rem;
  transition: background 0.35s ease;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  transition: all 0.3s ease;
  cursor: zoom-in;
}

.lightbox-stage img.zoomed {
  max-width: none;
  max-height: none;
  width: 175%;
  cursor: zoom-out;
}

/* Unframed Canvas Crop Mode */
.lightbox-stage.unframed-mode {
  background: #141311;
}

.lightbox-stage img.unframed-crop-frame {
  clip-path: inset(12% 12% 12% 12% round 4px);
  transform: scale(1.22);
  cursor: default;
}

.lightbox-stage img.unframed-crop-mat {
  clip-path: inset(19% 18% 19% 18% round 4px);
  transform: scale(1.38);
  cursor: default;
}

/* Virtual Museum Wall ("In-Room Scale") Mode */
.lightbox-stage.wall-mode {
  background: radial-gradient(circle at 50% 18%, #e8e2d5 0%, #cfc6b4 58%, #b3a996 100%);
  justify-content: flex-start;
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
}

.lightbox-stage.wall-mode img {
  max-height: 44vh;
  max-width: 62%;
  box-shadow: 0 22px 45px rgba(20, 16, 10, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: default;
}

.wall-plaque {
  display: none;
  margin-top: 1.1rem;
  background: #f9f6f0;
  color: #222;
  padding: 0.45rem 0.85rem;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  font-size: 0.72rem;
  text-align: center;
  border-left: 3px solid #9a7438;
}

.wall-bench {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: linear-gradient(to bottom, #6b5b45 0%, #4b3f2f 30%, #2e261c 100%);
  border-top: 3px solid #8a755a;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-stage.wall-mode .wall-bench {
  display: flex;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(25, 24, 22, 0.85);
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.lightbox-nav-btn.prev { left: 1rem; }
.lightbox-nav-btn.next { right: 1rem; }

.lightbox-details {
  padding: 1.65rem 1.75rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 1px solid var(--border-subtle);
}

.lightbox-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-close {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

.lightbox-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.lb-palette-bar,
.lb-palette {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.lb-swatch {
  flex: 1;
  height: 30px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
}

.lb-swatch span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  padding: 0 3px;
  border-radius: 2px;
}

.meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.68rem;
  padding-top: 0.68rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  font-weight: 600;
}

.meta-val {
  color: var(--text-secondary);
  word-break: break-word;
}

.meta-val.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.lightbox-actions {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn-primary {
  background: var(--accent-gold);
  color: #111110;
  text-decoration: none;
  border: none;
  padding: 0.56rem 1rem;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
}

/* Ambient Full-Screen Slideshow Modal */
.slideshow-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: #070706;
  color: #f3efe6;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
}

.slideshow-modal.open {
  display: flex;
}

.ss-top-bar,
.ss-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ss-tour-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.ss-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ss-stage {
  flex: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.ss-img-wrap,
.ss-stage > img {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 72vh;
  width: 100%;
  object-fit: contain;
}

.ss-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}

.ss-caption-box,
.ss-caption {
  padding: 1.5rem;
  background: rgba(31, 30, 27, 0.75);
  border-left: 3px solid var(--accent-gold);
  border-radius: 8px;
  max-height: 68vh;
  overflow-y: auto;
}

/* Custom Exhibition Builder Drawer */
.exhibition-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 440px;
  max-width: 94vw;
  height: 100vh;
  z-index: 1100;
  background: var(--bg-card);
  border-left: 1px solid var(--border-gold);
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: right 0.28s ease;
}

.exhibition-drawer.open {
  right: 0;
}

.exh-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
  padding-right: 0.25rem;
}

.exh-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 0.5rem;
  border-radius: 7px;
}

.exh-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
}

.exh-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  overflow: hidden;
}

/* Interactive Before/After Curtain Slider for Salon Pairings */
.salon-mode-toggle {
  background: var(--bg-elevated);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.salon-mode-toggle:hover,
.salon-mode-toggle.active {
  background: var(--accent-gold);
  color: #111110;
}

.salon-curtain-wrap {
  position: relative;
  width: 100%;
  height: 290px;
  background: #0b0b0a;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  overflow: hidden;
  user-select: none;
}

.salon-curtain-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0b0a;
}

.salon-curtain-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
  pointer-events: none;
}

.salon-curtain-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.salon-curtain-tag {
  position: absolute;
  bottom: 0.6rem;
  background: rgba(17, 17, 16, 0.85);
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 4;
  pointer-events: none;
}

.salon-curtain-tag.left { left: 0.65rem; }
.salon-curtain-tag.right { right: 0.65rem; }

.salon-curtain-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent-gold);
  z-index: 5;
  pointer-events: none;
  transform: translateX(-50%);
}

.salon-curtain-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: #111110;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.salon-curtain-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
  margin: 0;
}

/* Circle of Friends, Masters & Influences */
.circle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.4rem;
}

.circle-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.circle-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.circle-role {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  font-weight: 600;
}

.circle-name {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.circle-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.circle-art-strip {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
}

.circle-art-thumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.3rem 0.5rem 0.3rem 0.3rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.18s ease;
}

.circle-art-thumb:hover {
  border-color: var(--accent-gold);
}

.circle-art-thumb img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
}

.circle-art-thumb span {
  font-size: 0.74rem;
  color: var(--text-primary);
  max-width: 125px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Magnifying Loupe Inspector & Stage Canvas Box */
.stage-canvas-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.lightbox-stage.loupe-mode img {
  cursor: crosshair;
}

.loupe-lens {
  position: absolute;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), inset 0 0 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  background-repeat: no-repeat;
  background-color: #0b0b0a;
  z-index: 15;
  transform: translate(-50%, -50%);
}

/* Custom Wall Color Picker in Virtual Wall Mode */
.wall-color-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(17, 17, 16, 0.82);
  backdrop-filter: blur(8px);
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  margin-bottom: 0.65rem;
  z-index: 8;
}

.wall-color-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #e6dfd3;
  margin-right: 0.2rem;
}

.wall-color-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.wall-color-swatch:hover,
.wall-color-swatch.active {
  transform: scale(1.2);
  border-color: var(--accent-gold);
}

/* Academic Citation & Museum Label Generator */
.citation-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.citation-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cite-tab-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 0.24rem 0.6rem;
  font-size: 0.73rem;
  cursor: pointer;
}

.cite-tab-btn.active {
  background: var(--accent-gold);
  color: #111110;
  border-color: var(--accent-gold);
  font-weight: 600;
}

.citation-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  padding: 0.65rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
}

/* Visually & Thematically Similar Works */
.similar-works-block {
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.similar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.35rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.similar-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.similar-card img {
  width: 100%;
  height: 58px;
  object-fit: cover;
  border-radius: 4px;
}

.similar-card-title {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exh-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  background: var(--accent-gold);
  color: #111110;
  padding: 0.6rem 1.1rem;
  border-radius: 7px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.22s ease;
}

.toast-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  .hero,
  .map-layout,
  .ss-stage {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 2.25rem 1.25rem 2rem;
    gap: 2rem;
  }
  .section {
    padding: 2.25rem 1.25rem;
  }
  .salon-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-content {
    grid-template-columns: 1fr;
    max-height: 94vh;
    overflow-y: auto;
  }
  .lightbox-stage {
    min-height: 320px;
    padding: 1rem;
  }
  .lightbox-stage img {
    max-height: 52vh;
  }
  .lightbox-details {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
    overflow-y: visible;
  }
  .ss-stage {
    gap: 1.25rem;
    overflow-y: auto;
    padding: 0.75rem 0;
  }
  .ss-img-wrap,
  .ss-stage > img {
    max-height: 44vh;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 0.65rem 1rem;
    gap: 0.55rem;
  }
  .brand-name {
    font-size: 1.2rem;
  }
  .nav-links {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    gap: 1rem;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-actions {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-actions::-webkit-scrollbar {
    display: none;
  }
  .btn-icon {
    padding: 0.36rem 0.6rem;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-stats {
    gap: 1.25rem;
  }
  .hero-showcase img {
    height: 260px;
  }
  .controls-bar {
    padding: 0.9rem;
  }
  .search-box {
    min-width: 100%;
  }
  .filter-pills,
  .color-mood-pills,
  .mood-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-pills::-webkit-scrollbar,
  .color-mood-pills::-webkit-scrollbar,
  .mood-pills::-webkit-scrollbar {
    display: none;
  }
  .pill,
  .mood-pill {
    flex-shrink: 0;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .artist-map-canvas,
  .artist-map {
    height: 300px;
  }
  .salon-pair-images {
    grid-template-columns: 1fr;
  }
  .salon-curtain-wrap {
    height: 220px;
  }
  .similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .loupe-lens {
    width: 140px;
    height: 140px;
  }
  .salon-slot img {
    height: 180px;
  }
  .timeline {
    padding-left: 1.35rem;
  }
  .timeline-item::before {
    left: -1.78rem;
  }
  .lightbox {
    padding: 0.5rem;
  }
  .lightbox-stage {
    min-height: 250px;
    padding: 0.75rem 0.5rem;
  }
  .lightbox-stage.wall-mode img {
    max-width: 78%;
    max-height: 34vh;
  }
  .lightbox-details {
    padding: 1.15rem;
  }
  .lightbox-title {
    font-size: 1.4rem;
  }
  .slideshow-modal {
    padding: 1rem;
  }
  .ss-caption-box,
  .ss-caption {
    padding: 1rem;
  }
}

@media print {
  .site-header,
  .hero,
  .controls-bar,
  .map-section,
  .salon-section,
  #circle-section,
  #tours-section,
  #chronology,
  .exhibition-drawer,
  .card-fav-btn,
  .site-footer {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
  .art-card {
    break-inside: avoid;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}
