/* resources/css/exhibition.css */

:root {
  /* Earth Tones - Ruby's Palette */
  --color-clay: #C49A7C;
  --color-terracotta: #A65B45;
  --color-vermillion: #8B3A2D;
  --color-ochre: #D4A574;
  --color-umber: #6B4F3A;
  
  /* Gold Accents */
  --color-gold: #C9A96E;
  --color-gold-light: #E8D5A3;
  --color-gold-pale: #F5EDD6;
  
  /* Forest & Stone */
  --color-forest: #4A5D4A;
  --color-stone: #6B5E54;
  --color-charcoal: #2C2420;
  
  /* Exhibition Neutrals */
  --color-cream: #F5F0E8;
  --color-paper: #EDE5D8;
  --color-warm-white: #FDFBF7;
  --color-ivory: #F8F3EB;
  
  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-cream);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-paper);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-terracotta);
}

/* ========================================
   ENTRANCE PAGE
   ======================================== */

.entrance {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  background: var(--color-cream);
}

.entrance-container {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Decorative Gold Corners */
.entrance::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.3;
}

.entrance::after {
  content: '';
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.3;
}

/* Add corner accents */
.corner-tl,
.corner-tr,
.corner-bl,
.corner-br {
  position: absolute;
  opacity: 0.3;
  pointer-events: none;
}

.corner-tl {
  top: 2rem;
  left: 2rem;
  width: 60px;
  height: 1px;
  background: var(--color-gold);
}
.corner-tl::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 60px;
  background: var(--color-gold);
}

.corner-tr {
  top: 2rem;
  right: 2rem;
  width: 60px;
  height: 1px;
  background: var(--color-gold);
}
.corner-tr::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 60px;
  background: var(--color-gold);
}

.corner-bl {
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 1px;
  background: var(--color-gold);
}
.corner-bl::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 60px;
  background: var(--color-gold);
}

.corner-br {
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 1px;
  background: var(--color-gold);
}
.corner-br::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1px;
  height: 60px;
  background: var(--color-gold);
}

/* Entrance Typography */
.entrance-subtitle {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--color-stone);
  opacity: 0.5;
}

.entrance-gold-line {
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin: 1.5rem auto;
  opacity: 0.4;
}

.entrance-name {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  margin: 0.5rem 0;
}

.entrance-statement {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-stone);
  max-width: 600px;
  margin: 0 auto;
}

.entrance-statement .highlight {
  font-weight: 500;
  color: var(--color-terracotta);
}

.entrance-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-stone);
  text-decoration: none;
  border-bottom: 2px solid rgba(201, 169, 110, 0.4);
  padding-bottom: 0.25rem;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  margin-top: 2rem;
}

.entrance-btn:hover {
  color: var(--color-terracotta);
  letter-spacing: 0.5em;
  border-color: var(--color-gold);
}

.entrance-btn .arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.entrance-btn:hover .arrow {
  transform: translateX(4px);
}

.entrance-preserve {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-stone);
  opacity: 0.4;
  margin-top: 2rem;
}

/* ========================================
   GALLERY PAGE
   ======================================== */

.gallery-header {
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
  background: rgba(237, 229, 216, 0.3);
  padding: 1.5rem 0;
  backdrop-filter: blur(10px);
}

.gallery-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.gallery-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-stone);
  opacity: 0.6;
  text-decoration: none;
  transition: all 0.3s;
}

.gallery-nav-link:hover {
  color: var(--color-terracotta);
  opacity: 1;
}

.gallery-nav-link svg {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.3s;
}

.gallery-nav-link:hover svg {
  transform: translateX(-4px);
}

.gallery-title-area {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.gallery-subtitle {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-stone);
  opacity: 0.5;
  margin-top: 0.25rem;
}

.gallery-count {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-stone);
  opacity: 0.4;
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem 2rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-frame {
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(44, 36, 32, 0.08);
  transition: box-shadow 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-frame:hover {
  box-shadow: 0 30px 80px rgba(44, 36, 32, 0.15);
}

.gallery-frame-inner {
  background: var(--color-warm-white);
  padding: 0.75rem;
  transition: background 0.7s;
}

.gallery-frame-inner:hover {
  background: rgba(253, 251, 247, 0.95);
}

.gallery-artwork {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: rgba(237, 229, 216, 0.3);
}

.gallery-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-frame:hover .gallery-artwork img {
  transform: scale(1.03);
}

.gallery-artwork-gold {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 169, 110, 0);
  transition: all 0.7s;
  pointer-events: none;
}

.gallery-frame:hover .gallery-artwork-gold {
  border-color: rgba(201, 169, 110, 0.3);
}

.gallery-label {
  margin-top: 1.25rem;
  text-align: center;
}

.gallery-label-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: color 0.7s;
}

.gallery-item:hover .gallery-label-title {
  color: var(--color-terracotta);
}

.gallery-label-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-stone);
  opacity: 0.5;
  margin-top: 0.25rem;
}

.gallery-label-dimensions {
  font-size: 0.75rem;
  color: var(--color-stone);
  opacity: 0.4;
}

.gallery-label-description {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--color-stone);
  opacity: 0.6;
  max-width: 280px;
  margin: 0.75rem auto 0;
}

.gallery-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
  text-align: center;
}

.gallery-footer-text {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--color-stone);
  opacity: 0.4;
}

.gallery-footer-text span {
  color: var(--color-terracotta);
  opacity: 0.6;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .about-section {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 2rem;
  }
}

.about-portrait {
  position: relative;
}

.about-portrait-frame {
  background: var(--color-warm-white);
  padding: 1rem;
  box-shadow: 0 20px 60px rgba(44, 36, 32, 0.08);
}

.about-portrait-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: rgba(237, 229, 216, 0.3);
}

.about-portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-portrait-gold-tl {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  width: 3rem;
  height: 3rem;
  border-top: 2px solid var(--color-gold);
  border-left: 2px solid var(--color-gold);
  opacity: 0.3;
}

.about-portrait-gold-br {
  position: absolute;
  bottom: -0.75rem;
  right: -0.75rem;
  width: 3rem;
  height: 3rem;
  border-bottom: 2px solid var(--color-gold);
  border-right: 2px solid var(--color-gold);
  opacity: 0.3;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.about-gold-line {
  width: 4rem;
  height: 1px;
  background: var(--color-gold);
  margin-top: 1rem;
}

.about-text {
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.8;
  color: var(--color-stone);
  opacity: 0.8;
}

.about-text .highlight {
  font-weight: 500;
  color: var(--color-terracotta);
}

.about-text p + p {
  margin-top: 1rem;
}

.about-quote {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201, 169, 110, 0.3);
}

.about-quote-text {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-stone);
  opacity: 0.5;
}

.about-quote-attribution {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-stone);
  opacity: 0.4;
  margin-top: 0.5rem;
}

/* ========================================
   GALLERY DARK MODE - FOR YOUR STRUCTURE
   ======================================== */

/* --- BASE DARK MODE --- */
html.gallery-dark-mode,
body.gallery-dark-mode {
    background-color: #0b0b0c !important;
    color: #e8e8ea !important;
    transition: background 0.8s ease, color 0.8s ease;
}

html.gallery-dark-mode body {
    background-color: #0b0b0c !important;
    color: #e8e8ea !important;
}

/* --- TEXT LIGHTENING --- */
html.gallery-dark-mode h1:not(.gallery-title),
body.gallery-dark-mode h1:not(.gallery-title),
html.gallery-dark-mode h2:not(.gallery-title),
body.gallery-dark-mode h2:not(.gallery-title),
html.gallery-dark-mode h3:not(.gallery-title),
body.gallery-dark-mode h3:not(.gallery-title),
html.gallery-dark-mode h4,
body.gallery-dark-mode h4,
html.gallery-dark-mode h5,
body.gallery-dark-mode h5,
html.gallery-dark-mode h6,
body.gallery-dark-mode h6 {
    color: #f5f5f7 !important;
}

html.gallery-dark-mode .gallery-title,
body.gallery-dark-mode .gallery-title {
    color: #e8e8ea !important;
}

html.gallery-dark-mode .gallery-subtitle,
body.gallery-dark-mode .gallery-subtitle {
    color: #a0a0a8 !important;
}

html.gallery-dark-mode .gallery-count,
body.gallery-dark-mode .gallery-count {
    color: #88888f !important;
}

html.gallery-dark-mode p,
body.gallery-dark-mode p,
html.gallery-dark-mode span,
body.gallery-dark-mode span,
html.gallery-dark-mode li,
body.gallery-dark-mode li {
    color: #d0d0d5 !important;
}

html.gallery-dark-mode a:not(.nav-admin):not(.entrance-btn):not(.gallery-mode-toggle),
body.gallery-dark-mode a:not(.nav-admin):not(.entrance-btn):not(.gallery-mode-toggle) {
    color: #c9a96e !important;
}

html.gallery-dark-mode a:not(.nav-admin):not(.entrance-btn):not(.gallery-mode-toggle):hover,
body.gallery-dark-mode a:not(.nav-admin):not(.entrance-btn):not(.gallery-mode-toggle):hover {
    color: #e8d5a3 !important;
}

/* --- TOGGLE BUTTON --- */
.gallery-mode-toggle {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--color-stone);
    padding: 0.35rem 1rem 0.35rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-family: var(--font-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1001;
}

.gallery-mode-toggle:hover {
    border-color: rgba(201, 169, 110, 0.4);
    background: rgba(201, 169, 110, 0.08);
    transform: scale(1.02);
}

.gallery-mode-toggle .toggle-icon {
    transition: transform 0.6s ease;
}

html.gallery-dark-mode .gallery-mode-toggle,
body.gallery-dark-mode .gallery-mode-toggle {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

html.gallery-dark-mode .gallery-mode-toggle:hover,
body.gallery-dark-mode .gallery-mode-toggle:hover {
    border-color: rgba(201, 169, 110, 0.3);
    background: rgba(201, 169, 110, 0.1);
    color: #f0f0f0;
}

html.gallery-dark-mode .gallery-mode-toggle .toggle-icon,
body.gallery-dark-mode .gallery-mode-toggle .toggle-icon {
    transform: rotate(180deg);
}

/* --- NAVIGATION --- */
html.gallery-dark-mode .main-nav,
body.gallery-dark-mode .main-nav {
    background: rgba(11, 11, 12, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html.gallery-dark-mode .main-nav .logo,
body.gallery-dark-mode .main-nav .logo {
    color: #f0f0f0 !important;
}

html.gallery-dark-mode .main-nav .logo span,
body.gallery-dark-mode .main-nav .logo span {
    color: var(--color-gold) !important;
}

html.gallery-dark-mode .main-nav-links a,
body.gallery-dark-mode .main-nav-links a {
    color: rgba(255, 255, 255, 0.6) !important;
}

html.gallery-dark-mode .main-nav-links a:hover,
body.gallery-dark-mode .main-nav-links a:hover,
html.gallery-dark-mode .main-nav-links a.active,
body.gallery-dark-mode .main-nav-links a.active {
    color: #f0f0f0 !important;
}

html.gallery-dark-mode .main-nav-links a.active::after,
body.gallery-dark-mode .main-nav-links a.active::after {
    background: var(--color-gold) !important;
}

html.gallery-dark-mode .main-nav-links .nav-admin,
body.gallery-dark-mode .main-nav-links .nav-admin {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

html.gallery-dark-mode .main-nav-links .nav-admin:hover,
body.gallery-dark-mode .main-nav-links .nav-admin:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* --- GALLERY HEADER --- */
html.gallery-dark-mode .gallery-header,
body.gallery-dark-mode .gallery-header {
    background: rgba(11, 11, 12, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

html.gallery-dark-mode .gallery-nav-link,
body.gallery-dark-mode .gallery-nav-link {
    color: rgba(255, 255, 255, 0.5) !important;
}

html.gallery-dark-mode .gallery-nav-link:hover,
body.gallery-dark-mode .gallery-nav-link:hover {
    color: var(--color-gold) !important;
    opacity: 1 !important;
}

/* ========================================
   SIMPLIFIED DARK MODE WITH DIRECT GLOW
   ======================================== */

/* --- BASE DARK MODE --- */
html.gallery-dark-mode,
body.gallery-dark-mode {
    background-color: #0b0b0c !important;
    color: #e8e8ea !important;
    transition: background 0.8s ease, color 0.8s ease;
}

html.gallery-dark-mode body {
    background-color: #0b0b0c !important;
    color: #e8e8ea !important;
}

/* --- NAVIGATION --- */
html.gallery-dark-mode .main-nav,
body.gallery-dark-mode .main-nav {
    background: rgba(11, 11, 12, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html.gallery-dark-mode .main-nav .logo,
body.gallery-dark-mode .main-nav .logo {
    color: #f0f0f0 !important;
}

html.gallery-dark-mode .main-nav .logo span,
body.gallery-dark-mode .main-nav .logo span {
    color: var(--color-gold) !important;
}

html.gallery-dark-mode .main-nav-links a,
body.gallery-dark-mode .main-nav-links a {
    color: rgba(255, 255, 255, 0.6) !important;
}

html.gallery-dark-mode .main-nav-links a:hover,
body.gallery-dark-mode .main-nav-links a:hover,
html.gallery-dark-mode .main-nav-links a.active,
body.gallery-dark-mode .main-nav-links a.active {
    color: #f0f0f0 !important;
}

html.gallery-dark-mode .main-nav-links a.active::after,
body.gallery-dark-mode .main-nav-links a.active::after {
    background: var(--color-gold) !important;
}

html.gallery-dark-mode .main-nav-links .nav-admin,
body.gallery-dark-mode .main-nav-links .nav-admin {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

html.gallery-dark-mode .main-nav-links .nav-admin:hover,
body.gallery-dark-mode .main-nav-links .nav-admin:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* --- TOGGLE BUTTON --- */
.gallery-mode-toggle {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--color-stone);
    padding: 0.35rem 1rem 0.35rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-family: var(--font-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1001;
}

.gallery-mode-toggle:hover {
    border-color: rgba(201, 169, 110, 0.4);
    background: rgba(201, 169, 110, 0.08);
    transform: scale(1.02);
}

.gallery-mode-toggle .toggle-icon {
    transition: transform 0.6s ease;
}

html.gallery-dark-mode .gallery-mode-toggle,
body.gallery-dark-mode .gallery-mode-toggle {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

html.gallery-dark-mode .gallery-mode-toggle:hover,
body.gallery-dark-mode .gallery-mode-toggle:hover {
    border-color: rgba(201, 169, 110, 0.3);
    background: rgba(201, 169, 110, 0.1);
    color: #f0f0f0;
}

html.gallery-dark-mode .gallery-mode-toggle .toggle-icon,
body.gallery-dark-mode .gallery-mode-toggle .toggle-icon {
    transform: rotate(180deg);
}

/* ========================================
   INSTANT DARK MODE - COMPLETE
   ======================================== */

/* --- BASE DARK MODE --- */
body.gallery-dark-mode {
    background-color: #0b0b0c !important;
    color: #e6e6e6 !important;
    position: relative;
}

/* Force all standard text elements to stay visible in dark mode */
body.gallery-dark-mode h1,
body.gallery-dark-mode h2,
body.gallery-dark-mode h3,
body.gallery-dark-mode h4,
body.gallery-dark-mode h5,
body.gallery-dark-mode h6,
body.gallery-dark-mode p,
body.gallery-dark-mode span,
body.gallery-dark-mode label,
body.gallery-dark-mode th,
body.gallery-dark-mode td {
    color: #f0f0f0 !important;
}

/* Dim secondary/muted text */
body.gallery-dark-mode .text-muted,
body.gallery-dark-mode small,
body.gallery-dark-mode .gallery-subtitle,
body.gallery-dark-mode .gallery-count {
    color: #a0a0a5 !important;
}

/* ========================================
   ENTRANCE PAGE - DARK MODE
   ======================================== */

body.gallery-dark-mode .entrance {
    background: #0b0b0c !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.gallery-dark-mode .entrance-container {
    background: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.gallery-dark-mode .entrance-subtitle {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

body.gallery-dark-mode .entrance-name {
    color: #f5f5f7 !important;
    opacity: 1 !important;
}

body.gallery-dark-mode .entrance-statement {
    color: #d0d0d5 !important;
    opacity: 1 !important;
}

body.gallery-dark-mode .entrance-statement .highlight {
    color: var(--color-gold) !important;
    opacity: 1 !important;
}

body.gallery-dark-mode .entrance-btn {
    color: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(201, 169, 110, 0.3) !important;
    opacity: 1 !important;
}

body.gallery-dark-mode .entrance-btn:hover {
    color: var(--color-gold) !important;
    border-color: var(--color-gold) !important;
}

body.gallery-dark-mode .entrance-preserve {
    color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

body.gallery-dark-mode .entrance-gold-line {
    background: rgba(201, 169, 110, 0.4) !important;
    opacity: 1 !important;
}

body.gallery-dark-mode .corner-tl::after,
body.gallery-dark-mode .corner-tl::before,
body.gallery-dark-mode .corner-tr::after,
body.gallery-dark-mode .corner-tr::before,
body.gallery-dark-mode .corner-bl::after,
body.gallery-dark-mode .corner-bl::before,
body.gallery-dark-mode .corner-br::after,
body.gallery-dark-mode .corner-br::before {
    background: rgba(201, 169, 110, 0.3) !important;
    opacity: 1 !important;
}

body.gallery-dark-mode .entrance-btn .arrow {
    stroke: rgba(255, 255, 255, 0.7) !important;
}

body.gallery-dark-mode .entrance-btn:hover .arrow {
    stroke: var(--color-gold) !important;
}

/* ========================================
   NAVIGATION
   ======================================== */

body.gallery-dark-mode .main-nav {
    background: rgba(11, 11, 12, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.gallery-dark-mode .main-nav .logo {
    color: #f0f0f0 !important;
}

body.gallery-dark-mode .main-nav .logo span {
    color: var(--color-gold) !important;
}

body.gallery-dark-mode .main-nav-links a {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.gallery-dark-mode .main-nav-links a:hover,
body.gallery-dark-mode .main-nav-links a.active {
    color: #f0f0f0 !important;
}

body.gallery-dark-mode .main-nav-links a.active::after {
    background: var(--color-gold) !important;
}

body.gallery-dark-mode .main-nav-links .nav-admin {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

body.gallery-dark-mode .main-nav-links .nav-admin:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ========================================
   GALLERY HEADER
   ======================================== */

body.gallery-dark-mode .gallery-header {
    background: rgba(11, 11, 12, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.gallery-dark-mode .gallery-title {
    color: #f0f0f0 !important;
}

body.gallery-dark-mode .gallery-subtitle {
    color: #a0a0a8 !important;
}

body.gallery-dark-mode .gallery-nav-link {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.gallery-dark-mode .gallery-nav-link:hover {
    color: var(--color-gold) !important;
}

/* ========================================
   PAINTINGS GLOW EFFECT
   ======================================== */

body.gallery-dark-mode .painting-frame-container {
    background: #141416 !important;
    border-radius: 4px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8) !important;
    position: relative !important;
}

body.gallery-dark-mode .painting-item:hover .painting-frame-container {
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.12), 0 0 160px rgba(255, 255, 255, 0.06), 0 0 240px rgba(255, 255, 255, 0.03), 0 20px 40px rgba(0, 0, 0, 0.9) !important;
    transform: translateY(-4px) !important;
}

body.gallery-dark-mode .painting-img {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7) !important;
    filter: brightness(0.98) contrast(1.02) !important;
}

body.gallery-dark-mode .painting-item:hover .painting-img {
    box-shadow: 0 0 80px rgba(255, 255, 255, 0.30), 0 0 160px rgba(255, 255, 255, 0.15), 0 0 240px rgba(255, 255, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.8) !important;
    filter: brightness(1.08) contrast(1.06) !important;
    transform: scale(1.03) !important;
}

body.gallery-dark-mode .painting-frame-container::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 80% !important;
    height: 80% !important;
    transform: translate(-50%, -50%) !important;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, transparent 70%) !important;
    pointer-events: none !important;
    z-index: 0 !important;
    opacity: 0 !important;
}

body.gallery-dark-mode .painting-item:hover .painting-frame-container::after {
    opacity: 1 !important;
}

/* ========================================
   MODAL
   ======================================== */

body.gallery-dark-mode #paintingModal {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(8px) !important;
}

body.gallery-dark-mode #paintingModal > div {
    background: #141416 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9) !important;
}

body.gallery-dark-mode #modalTitle {
    color: #f0f0f2 !important;
}

body.gallery-dark-mode #modalMeta {
    color: #a0a0a8 !important;
}

body.gallery-dark-mode #modalDesc {
    color: #c8c8ce !important;
}

body.gallery-dark-mode #paintingModal button[onclick="closeModal()"] {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.gallery-dark-mode #paintingModal button[onclick="closeModal()"]:hover {
    color: #f0f0f0 !important;
}

body.gallery-dark-mode #paintingModal button[onclick="toggleInquiryForm(true)"] {
    background: transparent !important;
    border-color: rgba(201, 169, 110, 0.3) !important;
    color: #c9a96e !important;
}

body.gallery-dark-mode #paintingModal button[onclick="toggleInquiryForm(true)"]:hover {
    background: rgba(201, 169, 110, 0.15) !important;
    border-color: rgba(201, 169, 110, 0.5) !important;
    color: #f0f0f0 !important;
}

body.gallery-dark-mode #modalInquiryView {
    border-top-color: rgba(255, 255, 255, 0.08) !important;
}

body.gallery-dark-mode #modalInquiryView h3 {
    color: #f0f0f2 !important;
}

body.gallery-dark-mode #modalInquiryView label {
    color: #a0a0a8 !important;
}

body.gallery-dark-mode #modalInquiryView input,
body.gallery-dark-mode #modalInquiryView textarea {
    background: #1a1a1e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f0f0f0 !important;
}

body.gallery-dark-mode #modalInquiryView input:focus,
body.gallery-dark-mode #modalInquiryView textarea:focus {
    border-color: rgba(201, 169, 110, 0.3) !important;
}

body.gallery-dark-mode #modalInquiryView button[type="submit"] {
    background: rgba(201, 169, 110, 0.15) !important;
    color: #c9a96e !important;
    border: 1px solid rgba(201, 169, 110, 0.2) !important;
}

body.gallery-dark-mode #modalInquiryView button[type="submit"]:hover {
    background: rgba(201, 169, 110, 0.25) !important;
    border-color: rgba(201, 169, 110, 0.4) !important;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

body.gallery-dark-mode .about-name {
    color: #f5f5f7 !important;
}

body.gallery-dark-mode .about-text {
    color: #c8c8ce !important;
}

body.gallery-dark-mode .about-text .highlight {
    color: var(--color-gold) !important;
}

body.gallery-dark-mode .about-portrait-frame {
    background: #141416 !important;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

body.gallery-dark-mode .contact-input,
body.gallery-dark-mode .contact-textarea {
    background: #1a1a1e !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #f0f0f0 !important;
}

body.gallery-dark-mode .contact-submit {
    background: rgba(201, 169, 110, 0.15) !important;
    color: #f0f0f0 !important;
    border: 1px solid rgba(201, 169, 110, 0.2) !important;
}

/* ========================================
   TOGGLE BUTTON - INSTANT
   ======================================== */

.gallery-mode-toggle {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--color-stone);
    padding: 0.35rem 1rem 0.35rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-family: var(--font-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.gallery-mode-toggle:hover {
    border-color: rgba(201, 169, 110, 0.4);
    background: rgba(201, 169, 110, 0.08);
    transform: scale(1.02);
}

.gallery-mode-toggle .toggle-icon {
    transform: rotate(0deg);
}

body.gallery-dark-mode .gallery-mode-toggle {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

body.gallery-dark-mode .gallery-mode-toggle:hover {
    border-color: rgba(201, 169, 110, 0.3);
    background: rgba(201, 169, 110, 0.1);
    color: #f0f0f0;
}

body.gallery-dark-mode .gallery-mode-toggle .toggle-icon {
    transform: rotate(180deg);
}

/* ========================================
   FOOTER
   ======================================== */

body.gallery-dark-mode .gallery-footer {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.gallery-dark-mode .gallery-footer-text {
    color: rgba(255, 255, 255, 0.3) !important;
}

body.gallery-dark-mode .gallery-footer-text span {
    color: var(--color-gold) !important;
}

/* ========================================
   EVENTS CARDS
   ======================================== */

body.gallery-dark-mode .event-card {
    background: #141416 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

body.gallery-dark-mode .event-card * {
    color: #e8e8ea !important;
}

body.gallery-dark-mode .event-card .event-card-title {
    color: #f0f0f2 !important;
}

body.gallery-dark-mode .event-card .event-card-date {
    color: #a0a0a8 !important;
}

body.gallery-dark-mode .event-card .event-card-location {
    color: #88888f !important;
}

body.gallery-dark-mode .event-card .event-card-description {
    color: #b8b8c0 !important;
}

body.gallery-dark-mode .event-card .event-status-upcoming {
    background: rgba(201, 169, 110, 0.2) !important;
    color: #c9a96e !important;
}

body.gallery-dark-mode .event-card .event-status-ongoing {
    background: rgba(166, 91, 69, 0.3) !important;
    color: #d48a7a !important;
}

body.gallery-dark-mode .event-card .event-status-past {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #88888f !important;
}

body.gallery-dark-mode .event-card:hover {
    border-color: rgba(201, 169, 110, 0.2) !important;
}

body.gallery-dark-mode .events-empty-title {
    color: #a0a0a8 !important;
}

body.gallery-dark-mode .events-empty-text {
    color: #88888f !important;
}

/* ========================================
   WORKSHOPS CARDS
   ======================================== */

body.gallery-dark-mode .workshop-card {
    background: #141416 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

body.gallery-dark-mode .workshop-card * {
    color: #e8e8ea !important;
}

body.gallery-dark-mode .workshop-card .workshop-card-title {
    color: #f0f0f2 !important;
}

body.gallery-dark-mode .workshop-card .workshop-card-date {
    color: #a0a0a8 !important;
}

body.gallery-dark-mode .workshop-card .workshop-card-location {
    color: #88888f !important;
}

body.gallery-dark-mode .workshop-card .workshop-card-description {
    color: #b8b8c0 !important;
}

body.gallery-dark-mode .workshop-card .workshop-card-price {
    color: #c9a96e !important;
}

body.gallery-dark-mode .workshop-card .workshop-card-register {
    background: rgba(201, 169, 110, 0.15) !important;
    color: #c9a96e !important;
}

body.gallery-dark-mode .workshop-link:hover .workshop-card-register {
    background: rgba(201, 169, 110, 0.25) !important;
}

body.gallery-dark-mode .workshop-card:hover {
    border-color: rgba(201, 169, 110, 0.2) !important;
}

body.gallery-dark-mode .workshops-empty-title {
    color: #a0a0a8 !important;
}

body.gallery-dark-mode .workshops-empty-text {
    color: #88888f !important;
}

/* ========================================
   WORKSHOP DETAIL CARD
   ======================================== */

body.gallery-dark-mode .workshop-detail-card {
    background: #141416 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

body.gallery-dark-mode .workshop-detail-card * {
    color: #e8e8ea !important;
}

body.gallery-dark-mode .workshop-detail-card h1,
body.gallery-dark-mode .workshop-detail-card h2,
body.gallery-dark-mode .workshop-detail-card h3,
body.gallery-dark-mode .workshop-detail-card h4 {
    color: #f0f0f2 !important;
}

body.gallery-dark-mode .workshop-detail-card p[style*="color:var(--color-terracotta)"] {
    color: #c9a96e !important;
}

body.gallery-dark-mode .workshop-detail-card p[style*="color:var(--color-stone)"] {
    color: #a0a0a8 !important;
}

body.gallery-dark-mode .workshop-detail-card p[style*="color:var(--color-stone);opacity:0.8;"],
body.gallery-dark-mode .workshop-detail-card p {
    color: #c8c8ce !important;
    opacity: 0.9 !important;
}

body.gallery-dark-mode .workshop-detail-card div[style*="background:var(--color-paper)"] {
    background: #1a1a1e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.gallery-dark-mode .workshop-detail-card div[style*="background:var(--color-paper)"] * {
    color: #e8e8ea !important;
}

body.gallery-dark-mode .workshop-detail-card div[style*="background:var(--color-paper)"] p {
    color: #a0a0a8 !important;
    opacity: 1 !important;
}

body.gallery-dark-mode .workshop-detail-card input[type="text"],
body.gallery-dark-mode .workshop-detail-card input[type="email"],
body.gallery-dark-mode .workshop-detail-card input[type="tel"] {
    background: #1a1a1e !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f0f0f0 !important;
}

body.gallery-dark-mode .workshop-detail-card input:focus {
    border-color: rgba(201, 169, 110, 0.3) !important;
    outline: none !important;
}

body.gallery-dark-mode .workshop-detail-card label {
    color: #a0a0a8 !important;
}

body.gallery-dark-mode .workshop-detail-card .admin-btn,
body.gallery-dark-mode .workshop-detail-card button[type="submit"] {
    background: rgba(201, 169, 110, 0.15) !important;
    color: #c9a96e !important;
    border: 1px solid rgba(201, 169, 110, 0.2) !important;
}

body.gallery-dark-mode .workshop-detail-card .admin-btn:hover,
body.gallery-dark-mode .workshop-detail-card button[type="submit"]:hover {
    background: rgba(201, 169, 110, 0.25) !important;
}

body.gallery-dark-mode .workshop-detail-card hr {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.gallery-dark-mode .workshop-detail-card img {
    filter: brightness(0.95) contrast(1.05) !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.03), 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

/* ========================================
   EVENT DETAIL CARD
   ======================================== */

body.gallery-dark-mode .event-detail-card {
    background: #141416 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

body.gallery-dark-mode .event-detail-card * {
    color: #e8e8ea !important;
}

body.gallery-dark-mode .event-detail-card h1,
body.gallery-dark-mode .event-detail-card h2,
body.gallery-dark-mode .event-detail-card h3,
body.gallery-dark-mode .event-detail-card h4 {
    color: #f0f0f2 !important;
}

body.gallery-dark-mode .event-detail-card p[style*="color:var(--color-stone)"] {
    color: #a0a0a8 !important;
}

body.gallery-dark-mode .event-detail-card p[style*="color:var(--color-stone);opacity:0.8;"],
body.gallery-dark-mode .event-detail-card p {
    color: #c8c8ce !important;
    opacity: 0.9 !important;
}

body.gallery-dark-mode .event-detail-card img {
    filter: brightness(0.95) contrast(1.05) !important;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.03), 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

body.gallery-dark-mode .event-detail-card hr {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

body.gallery-dark-mode .event-detail-card div[style*="background:rgba(201,169,110,0.1)"] {
    background: rgba(201, 169, 110, 0.08) !important;
    border-color: rgba(201, 169, 110, 0.15) !important;
}

body.gallery-dark-mode .event-detail-card div[style*="background:rgba(201,169,110,0.1)"] p {
    color: #c9a96e !important;
}

/* ========================================
   SUCCESS/ERROR MESSAGES
   ======================================== */

body.gallery-dark-mode div[style*="background:#e6f4ea"] {
    background: rgba(20, 60, 30, 0.3) !important;
    color: #6fcf97 !important;
    border: 1px solid rgba(111, 207, 151, 0.2) !important;
}

body.gallery-dark-mode div[style*="background:#fce8e6"] {
    background: rgba(60, 20, 20, 0.3) !important;
    color: #f28b82 !important;
    border: 1px solid rgba(242, 139, 130, 0.2) !important;
}

body.gallery-dark-mode div[style*="background:#e6f4ea"] *,
body.gallery-dark-mode div[style*="background:#fce8e6"] * {
    color: inherit !important;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
    .gallery-mode-toggle {
        font-size: 0.6rem;
        padding: 0.25rem 0.8rem 0.25rem 0.6rem;
    }
}

@media (max-width: 600px) {
    .gallery-mode-toggle {
        font-size: 0.5rem;
        padding: 0.2rem 0.6rem 0.2rem 0.5rem;
    }
}
