/* Digital Exhibition — floating panel + responsive layout */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: 'Arial', sans-serif;
  background: #000;
  margin: 0;
  overflow: hidden;
}

.exhibition-root {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}

/* Full-viewport canvas — fixed sizing avoids 0-size iframe black screen */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Top frosted bar */
.exhibition-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
}

.exhibition-top-bar .title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.exhibition-top-bar .top-actions {
  display: flex;
  gap: 8px;
}

.exhibition-top-bar .top-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.exhibition-top-bar .top-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Guide drawer */
.exhibition-guide-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 90vw;
  background: rgba(30, 40, 60, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 24px;
}

.exhibition-guide-drawer.open {
  transform: translateX(0);
}

.exhibition-guide-drawer h2 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 16px;
}

.exhibition-guide-section {
  margin-bottom: 16px;
}

.exhibition-guide-section h3 {
  font-size: 14px;
  color: #93c5fd;
  margin-bottom: 6px;
}

.exhibition-guide-section p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.exhibition-guide-drawer .close-btn {
  width: 100%;
  padding: 10px;
  margin-top: 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.exhibition-guide-drawer .close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.exhibition-guide-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.exhibition-guide-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* First-visit tip */
.exhibition-first-tip {
  position: fixed;
  bottom: 24px;
  left: 24px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  z-index: 800;
  transition: opacity 0.5s ease;
}

.exhibition-first-tip.hidden {
  opacity: 0;
  pointer-events: none;
}

.orbit-canvas {
  cursor: grab;
}

/* ========== Responsive ========== */

/* Narrow screens (<768px) */
@media (max-width: 767px) {
  .exhibition-first-tip {
    bottom: 16px;
    left: 16px;
    font-size: 12px;
  }

  .exhibition-guide-drawer {
    width: 100%;
    max-width: 100%;
  }
}

