/* ==========================================================================
   SANAL SANAT GALERİSİ - STYLESHEET
   Exhibition: Teknoloji ve Tasarım Sanal Sergisi
   Curator: Aynur YALÇIN, Emine Uyar TEMİREL
   School: Muharrem Candaş Ortaokulu
   ========================================================================== */

/* 1. VARIABLES & SYSTEM DEFAULTS */
:root {
  --bg-dark-900: #08090c;
  --bg-dark-800: #0f1115;
  --bg-dark-700: #171b22;
  --bg-glass: rgba(15, 17, 21, 0.75);
  --border-glass: rgba(255, 255, 255, 0.08);
  
  --primary-gold: #d4af37;
  --primary-gold-glow: rgba(212, 175, 55, 0.3);
  --primary-gold-dark: #aa851c;
  
  --accent-cyan: #00e5ff;
  --accent-blue: #0084ff;
  --accent-purple: #bd00ff;
  
  --text-primary: #f3f4f6;
  --text-secondary: #a1a8b5;
  --text-muted: #6b7280;
  
  --font-display: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark-900);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

/* Scrollbar Customization for scrollable areas */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-900);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-gold-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold);
}

/* 2. BASE SCREEN MANAGER */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  z-index: 10;
}

/* 3. AMBIENT BACKGROUND CANVAS */
.ambient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* 4. LANDING SCREEN DESIGN */
#landing-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: radial-gradient(circle at center, rgba(15, 18, 25, 0.3) 0%, rgba(8, 9, 12, 0.95) 80%);
}

.landing-content {
  z-index: 10;
  max-width: 900px;
  animation: fadeInDown 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.exhibition-header {
  margin-bottom: 2.5rem;
}

.school-name {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.4em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
  margin: 0.5rem auto 1.5rem;
}

.exhibition-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.accent-text {
  background: linear-gradient(135deg, #fff 30%, var(--primary-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  margin-top: 0.5rem;
}

.exhibition-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

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

.meta-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.meta-value {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-gold-dark) 0%, var(--primary-gold) 100%);
  color: #000;
  font-weight: 600;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.25);
  background: linear-gradient(135deg, var(--primary-gold) 0%, #fff 100%);
}

.btn-glowing {
  box-shadow: 0 0 15px var(--primary-gold-glow);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-primary);
  transform: translateY(-3px);
}

.landing-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-footer {
  position: absolute;
  bottom: 2rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* 5. MAIN APP INTERFACE (HEADER & LAYOUT) */
#app-screen {
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: rgba(10, 11, 13, 0.8);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(15px);
  z-index: 100;
  height: 70px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.school-tag {
  background: linear-gradient(135deg, var(--primary-gold-dark) 0%, var(--primary-gold) 100%);
  color: #000;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.title-wrap h2 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.title-wrap p {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-nav {
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.3rem;
  border-radius: 25px;
  border: 1px solid var(--border-glass);
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1.5rem;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 20px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn:hover {
  color: var(--text-primary);
}

.nav-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-gold);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.icon-btn-round:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* Audio Wave Button Styling */
.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.audio-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.audio-btn.playing {
  color: var(--primary-gold);
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(212, 175, 55, 0.05);
}

.sound-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 15px;
  height: 12px;
}

.sound-waves span {
  display: block;
  width: 2px;
  height: 2px;
  background-color: currentColor;
  border-radius: 1px;
  transition: height 0.2s ease;
}

.audio-btn.playing .sound-waves span {
  animation: wavePulse 1s infinite alternate;
}

.audio-btn.playing .sound-waves span:nth-child(1) { animation-delay: 0.1s; }
.audio-btn.playing .sound-waves span:nth-child(2) { animation-delay: 0.3s; }
.audio-btn.playing .sound-waves span:nth-child(3) { animation-delay: 0.5s; }
.audio-btn.playing .sound-waves span:nth-child(4) { animation-delay: 0.2s; }

.app-content-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  overflow: hidden;
}

.view-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  overflow: hidden;
}

.view-panel.active {
  opacity: 1;
  pointer-events: all;
  z-index: 5;
}

/* 6. 3D VIRTUAL GALLERY INTERFACE */
#view-3d {
  background-color: #030405;
}

#canvas-container {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Floating Glass Overlay Cards */
.overlay-card {
  position: absolute;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.25rem;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

/* Close button for overlay cards */
.close-overlay {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.close-overlay:hover {
  color: var(--text-primary);
}

.overlay-card h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 0.4rem;
}

/* Help Box (Top Left) */
.controls-help {
  top: 1.5rem;
  left: 1.5rem;
  width: 260px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.control-row kbd {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-primary);
  box-shadow: 0 2px 0 rgba(0,0,0,0.3);
}

.mouse-icon {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.hint-row {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Minimap Box (Top Right) */
.minimap-card {
  top: 1.5rem;
  right: 1.5rem;
  width: 150px;
  text-align: center;
  padding: 1rem;
}

.minimap-container {
  width: 120px;
  height: 120px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  margin: 0 auto 0.6rem;
  overflow: hidden;
  position: relative;
}

#minimap-canvas {
  width: 120px;
  height: 120px;
  display: block;
}

.minimap-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.minimap-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.player-dot {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

.painting-dot {
  background-color: var(--primary-gold);
}

/* Active Painting Info overlay card (Bottom Center) */
.artwork-focus-card {
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  width: 90%;
  max-width: 480px;
  opacity: 0;
  pointer-events: none;
  z-index: -10;
}

.artwork-focus-card.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
  z-index: 20;
}

.focus-card-body h4 {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 0.4rem;
  border: none;
  padding: 0;
}

.focus-art-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.85rem;
  color: var(--primary-gold);
  margin-bottom: 0.4rem;
}

.focus-art-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.focus-art-school {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.focus-card-actions {
  display: flex;
  gap: 0.8rem;
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
}

/* 3D Navigation Controls Panel (Bottom Center Float) */
.overlay-panel {
  position: absolute;
  z-index: 10;
  display: flex;
  gap: 0.8rem;
}

.bottom-controls {
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.overlay-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.4rem;
  font-size: 0.8rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.overlay-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateY(-2px);
}

.overlay-btn.active {
  background: var(--primary-gold);
  color: #000;
  border-color: var(--primary-gold);
}

.overlay-btn.active:hover {
  background: #fff;
  color: #000;
}

/* 7. 2D CATALOG LAYOUT */
#view-2d {
  background-color: var(--bg-dark-800);
  overflow-y: auto;
  padding: 2rem;
  height: 100%;
}

.catalog-header {
  max-width: 1400px;
  margin: 0 auto 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.5rem;
}

/* Search Bar */
.search-bar-wrap {
  position: relative;
  width: 320px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-glass);
  border-radius: 25px;
  padding: 0.6rem 1.2rem 0.6rem 2.8rem;
  display: flex;
  align-items: center;
  transition: var(--transition-fast);
}

.search-bar-wrap i {
  position: absolute;
  left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-bar-wrap input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}

.search-bar-wrap input::placeholder {
  color: var(--text-muted);
}

.search-bar-wrap:focus-within {
  border-color: var(--primary-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  font-size: 0.85rem;
  padding: 2px;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

/* Category Filter Buttons */
.filter-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.filter-btn.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--primary-gold);
  border-color: rgba(212, 175, 55, 0.4);
}

/* Dropdown Filter for Sub-classes */
.dropdown-filter {
  position: relative;
  display: inline-block;
}

.select-trigger-btn i {
  font-size: 0.7rem;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 110%;
  background: var(--bg-dark-700);
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border-radius: 8px;
  min-width: 120px;
  z-index: 200;
  padding: 0.5rem;
}

.dropdown-filter:hover .dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.dropdown-content .filter-btn {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.4rem 1rem;
}

.dropdown-content .filter-btn:hover {
  background: rgba(255,255,255,0.05);
}

/* Catalog Grid Structure */
.catalog-grid-container {
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.catalog-grid.loading {
  opacity: 0.3;
}

/* Artwork Grid Card */
.art-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.art-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-img-wrap {
  width: 100%;
  padding-top: 100%; /* Square ratio */
  position: relative;
  background-color: rgba(0,0,0,0.2);
  overflow: hidden;
}

.card-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.card-overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(15, 17, 21, 0.9) 0%, rgba(15, 17, 21, 0) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.art-card:hover .card-overlay-gradient {
  opacity: 1;
}

/* Multiple Images Badge Indicator */
.card-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(5px);
  color: var(--primary-gold);
  font-size: 0.7rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-class-badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: var(--primary-gold);
  color: #000;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

.card-info {
  padding: 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-info h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.card-student {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
}

.card-student i {
  color: var(--primary-gold);
}

.card-action-link {
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.art-card:hover .card-action-link {
  color: var(--primary-gold);
  transform: translateX(3px);
}

/* Empty/Error state */
.empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.empty-state p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* 8. LIGHTBOX / DETAILS MODAL */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 7, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
}

.modal-wrapper {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 1100px;
  height: 85vh;
  max-height: 720px;
  background: rgba(18, 22, 28, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.active .modal-wrapper {
  transform: scale(1);
}

/* Close & Navigation overlay elements inside lightbox */
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 100;
}

.modal-close:hover {
  background: var(--primary-gold);
  color: #000;
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  z-index: 50;
}

.modal-nav:hover {
  background: var(--primary-gold);
  color: #000;
}

.nav-prev {
  left: 1rem;
}

.nav-next {
  right: 1rem;
}

/* Modal Content Panel Alignment */
.modal-content {
  display: flex;
  width: 100%;
  height: 100%;
}

/* Media Viewport Panel (Left Side) */
.modal-media-panel {
  flex: 1.3;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem;
  position: relative;
  border-right: 1px solid var(--border-glass);
}

.main-image-viewport {
  width: 100%;
  height: 85%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.main-image-viewport img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-image-viewport img.loaded {
  opacity: 1;
}

/* Spinner Loader */
.image-loader {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.05);
  border-top-color: var(--primary-gold);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

/* Thumbnails selection bar */
.media-thumbnails-container {
  height: 15%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.media-thumb {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition-fast);
  background: #000;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-thumb:hover {
  opacity: 0.85;
}

.media-thumb.active {
  border-color: var(--primary-gold);
  opacity: 1;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* Information Panel (Right Side) */
.modal-details-panel {
  flex: 0.8;
  height: 100%;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.exhibition-tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

#modal-title {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.details-divider {
  width: 50px;
  height: 3px;
  background: var(--primary-gold);
  margin: 1.2rem 0;
  border-radius: 2px;
}

.details-body {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-group {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  font-size: 0.95rem;
}

.info-content {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.info-value {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.details-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
}

.school-stamp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.school-stamp i {
  color: var(--primary-gold);
  font-size: 0.95rem;
}

/* 9. KEYFRAMES & TRANSITIONS */
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wavePulse {
  0% { height: 2px; }
  100% { height: 12px; }
}

@keyframes spinner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 10. MEDIA QUERIES FOR RESPONSIVENESS */
@media (max-width: 1024px) {
  .modal-wrapper {
    width: 95%;
    height: 90vh;
    max-height: none;
  }
  
  .modal-details-panel {
    padding: 2rem;
  }
  
  .modal-media-panel {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .screen {
    overflow-y: auto;
  }
  
  /* Landing page tweaks */
  .exhibition-meta {
    gap: 1.5rem;
  }
  
  .landing-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .landing-actions .btn {
    width: 100%;
  }

  /* Header mobile adjustments */
  .app-header {
    padding: 0.8rem 1rem;
  }
  
  .app-nav .nav-btn span {
    display: none; /* Hide label, keep icon */
  }
  
  .nav-btn {
    padding: 0.5rem 1rem;
  }
  
  .audio-text {
    display: none; /* Hide audio text */
  }

  /* 3D view mobile HUD adjustments */
  .controls-help {
    display: none !important; /* Hide help on mobile, use tap to move */
  }
  
  .minimap-card {
    display: none !important; /* Hide minimap on mobile */
  }

  .artwork-focus-card {
    bottom: 5.5rem;
    padding: 1rem;
  }
  
  /* Catalog header tweaks */
  .catalog-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }
  
  .search-bar-wrap {
    width: 100%;
  }
  
  .filter-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  
  .filter-buttons {
    width: 100%;
    flex-wrap: wrap;
  }

  /* Lightbox/Modal Mobile layout */
  .modal-wrapper {
    flex-direction: column;
    height: 92vh;
    border-radius: 12px;
  }
  
  .modal-content {
    flex-direction: column;
    overflow-y: auto;
  }
  
  .modal-media-panel {
    flex: none;
    height: 45vh;
    min-height: 250px;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem;
  }
  
  .modal-details-panel {
    flex: none;
    height: auto;
    padding: 1.5rem;
  }
  
  .modal-nav {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .nav-prev {
    left: 0.5rem;
  }
  
  .nav-next {
    right: 0.5rem;
  }
  
  #modal-title {
    font-size: 1.3rem;
  }
  
  .details-body {
    gap: 1rem;
    margin: 1rem 0;
  }
}

/* --- NEW EXHIBITION UPGRADES --- */

/* Sergi Kapanış / Giriş Sunuş Kartı (Landing Screen) */
.exhibition-intro-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem 1.8rem;
  margin: 1.5rem auto;
  max-width: 680px;
  text-align: center;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 1.2s ease-out;
}

.exhibition-intro-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--primary-gold);
  margin-bottom: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.exhibition-intro-card p {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: justify;
  text-align-last: center;
  margin: 0;
}

/* Lightbox Modal Project Description Box */
.project-description-box {
  background: rgba(212, 175, 55, 0.04);
  border-left: 3px solid var(--primary-gold);
  padding: 1rem 1.2rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.project-description-box .desc-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-gold);
  margin-bottom: 0.4rem;
  letter-spacing: 0.08em;
}

#modal-description {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
}

/* Category Filter Button Icon spacing */
.filter-btn i {
  margin-right: 6px;
}

/* Legend items for minimap */
.legend-dot-biyotaklit {
  background-color: #d4af37; /* Gold */
  box-shadow: 0 0 4px #d4af37;
}

.legend-dot-ergonomi {
  background-color: #00e5ff; /* Cyan */
  box-shadow: 0 0 4px #00e5ff;
}

/* ==========================================================================
   2.5D INTERACTIVE GALLERY VIEWPORT STYLING
   ========================================================================== */

.gallery-viewport {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #1c212b 0%, #080a0e 100%);
  z-index: 1;
}

/* Hall Title Banner */
.gallery-hall-banner {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  pointer-events: none;
}

.gallery-hall-banner h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--primary-gold);
  margin-bottom: 0.3rem;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4), 0 4px 8px rgba(0,0,0,0.8);
}

.gallery-wall-subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* The Wall Layout */
.gallery-wall {
  display: flex;
  gap: 3.5rem;
  justify-content: center;
  align-items: center;
  width: 95%;
  height: 70%;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease;
  padding: 0 4rem;
}

.gallery-wall.wall-transitioning {
  opacity: 0;
  transform: scale(0.96) rotateY(15deg);
}

/* Wall Navigation Arrows */
.wall-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.75);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wall-nav-arrow:hover {
  background: var(--primary-gold);
  color: #000;
  border-color: var(--primary-gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  transform: translateY(-50%) scale(1.08);
}

.wall-nav-arrow.arrow-left {
  left: 2.5rem;
}

.wall-nav-arrow.arrow-right {
  right: 2.5rem;
}

/* Painting Frames and Placards */
.gallery-frame-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.gallery-frame-container:hover {
  transform: translateY(-10px) scale(1.05);
}

/* Spotlight Effect behind each painting */
.spotlight-beam {
  position: absolute;
  top: -120px;
  width: 250px;
  height: 400px;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.14) 0%, rgba(212, 175, 55, 0.02) 60%, transparent 100%);
  clip-path: polygon(43% 0, 57% 0, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(43% 0, 57% 0, 100% 100%, 0% 100%);
  pointer-events: none;
  z-index: 1;
}

.gallery-art-frame {
  position: relative;
  z-index: 2;
  border: 12px solid #1a130e; /* Elegant dark mahogany wood trim */
  outline: 2px solid #aa8c39; /* Gold inner frame */
  box-shadow: 0 25px 50px rgba(0,0,0,0.85), inset 0 0 20px rgba(0,0,0,0.7);
  background-color: #141519;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 250px;
  transition: box-shadow 0.3s ease;
}

.gallery-frame-container:hover .gallery-art-frame {
  box-shadow: 0 30px 60px rgba(212, 175, 55, 0.25), inset 0 0 20px rgba(0,0,0,0.7);
}

.gallery-art-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Placard card under painting */
.gallery-placard {
  margin-top: 1.2rem;
  background: rgba(15, 17, 21, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-align: center;
  min-width: 160px;
  max-width: 220px;
  z-index: 3;
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
  pointer-events: none;
}

.gallery-placard h5 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: bold;
  color: var(--primary-gold);
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-placard p {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Giriş Holü specific welcoming graphic info placard */
.entrance-welcome-board {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 2.2rem;
  max-width: 580px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-top: 2px solid var(--primary-gold);
}

.entrance-welcome-board h3 {
  font-family: var(--font-display);
  color: var(--primary-gold);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.entrance-welcome-board p {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.entrance-welcome-board .btn {
  margin: 0 0.5rem;
}

/* Floor Plan Container & Styling */
.floorplan-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0.8rem 0;
  width: 100%;
}

.floorplan-room {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: var(--text-muted);
}

.floorplan-room:hover {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
}

.floorplan-room.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.2), 0 0 12px rgba(212, 175, 55, 0.25);
  font-weight: bold;
}

.floorplan-wings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.legend-dot-active {
  background-color: var(--primary-gold);
  box-shadow: 0 0 6px var(--primary-gold);
}

.legend-dot-normal {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Responsive tweaks for 2.5D viewport */
@media (max-width: 992px) {
  .gallery-wall {
    gap: 2rem;
    padding: 0 2rem;
  }
  .gallery-art-frame {
    height: 200px;
    border-width: 8px;
  }
  .wall-nav-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  .wall-nav-arrow.arrow-left { left: 1rem; }
  .wall-nav-arrow.arrow-right { right: 1rem; }
}

@media (max-width: 768px) {
  .gallery-wall {
    flex-wrap: wrap;
    overflow-y: auto;
    justify-content: center;
    align-content: center;
    gap: 1.5rem;
    height: 75%;
    padding: 2rem 1rem 5rem 1rem;
  }
  .gallery-frame-container {
    width: 42%;
  }
  .gallery-art-frame {
    height: 140px;
    border-width: 6px;
    width: 100%;
  }
  .gallery-placard {
    padding: 0.4rem 0.6rem;
    min-width: 100%;
    margin-top: 0.6rem;
  }
  .spotlight-beam {
    display: none; /* Spotlights are hidden on mobile to simplify layout */
  }
  .gallery-hall-banner h2 {
    font-size: 1.3rem;
  }
}

/* --- GPU ACCELERATED CSS 3D ENGINE STYLES --- */
.gallery-3d-viewport {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  perspective: 800px;
  -webkit-perspective: 800px;
  background: radial-gradient(circle, #0e1117 0%, #030406 100%);
  z-index: 1;
}

.gallery-3d-scene {
  position: absolute;
  width: 0;
  height: 0;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
}

/* Floor and Ceiling */
.gallery-3d-floor {
  position: absolute;
  width: 2000px;
  height: 1000px;
  left: 0;
  top: 0;
  margin-left: -1000px;
  margin-top: -500px;
  background-color: #12161f;
  background-image: 
    radial-gradient(rgba(212, 175, 55, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 60px 60px;
  border: 4px solid rgba(212, 175, 55, 0.15);
}

.gallery-3d-ceiling {
  position: absolute;
  width: 2000px;
  height: 1000px;
  left: 0;
  top: 0;
  margin-left: -1000px;
  margin-top: -500px;
  background: #080a0f;
  border: 2px solid rgba(255, 255, 255, 0.01);
}

/* 3D Walls & Partitions */
.gallery-3d-wall {
  position: absolute;
  background: linear-gradient(to bottom, #0f131a, #07090d);
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.95);
}

/* Division partitions */
.gallery-3d-partition {
  position: absolute;
  background: linear-gradient(to bottom, #161d26, #0e1218);
  border: 2px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), inset 0 0 60px rgba(0, 0, 0, 0.6);
}

/* 3D Painting Frames */
.gallery-3d-painting {
  position: absolute;
  width: 180px;
  height: 220px;
  margin-left: -90px;
  margin-top: -110px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.3s ease;
  will-change: transform;
}

.gallery-3d-painting:hover {
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.45));
}

.gallery-3d-painting .spotlight {
  position: absolute;
  top: -90px;
  width: 150px;
  height: 180px;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.16) 0%, rgba(212, 175, 55, 0.02) 75%, transparent 100%);
  clip-path: polygon(45% 0, 55% 0, 100% 100%, 0% 100%);
  -webkit-clip-path: polygon(45% 0, 55% 0, 100% 100%, 0% 100%);
  pointer-events: none;
  transform: translateZ(-2px);
}

.gallery-3d-painting .frame {
  width: 140px;
  height: 140px;
  border: 8px solid #1a120b; /* Mahogany wood frame */
  outline: 1px solid #aa8c39; /* Gold inner outline */
  background-color: #14161d;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.95), inset 0 0 15px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
  transform: translateZ(5px);
}

.gallery-3d-painting .frame img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.gallery-3d-painting .placard {
  margin-top: 8px;
  background: rgba(13, 17, 23, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 8px;
  border-radius: 4px;
  text-align: center;
  width: 130px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
  transform: translateZ(12px);
  pointer-events: none;
}

.gallery-3d-painting .placard h5 {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: bold;
  color: var(--primary-gold);
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-3d-painting .placard p {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  color: var(--text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3D Title Signs */
.gallery-3d-sign {
  position: absolute;
  color: var(--primary-gold);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.5), 0 4px 8px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  text-align: center;
  width: 500px;
  margin-left: -250px;
  margin-top: -30px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.gallery-3d-sign span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 5px;
  letter-spacing: 0.1em;
}

/* Minimap Legend Color updates */
.legend-dot-biyotaklit {
  background-color: #2ecc71;
  box-shadow: 0 0 6px #2ecc71;
}

.legend-dot-ergonomi {
  background-color: #e67e22;
  box-shadow: 0 0 6px #e67e22;
}

/* Help card modifications */
.controls-help {
  display: block;
  z-index: 100;
}

/* Active painting focus card */
.artwork-focus-card {
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  width: 90%;
  max-width: 480px;
  opacity: 0;
  pointer-events: none;
  z-index: -10;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.artwork-focus-card.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
  z-index: 100;
}



