/* ════════════════════════════════════════════════════════════════════
   NCCHR ARventure Configurator — Styles
   ════════════════════════════════════════════════════════════════════ */

:root {
  --primary:       #122CA0;
  --primary-dark:  #0e2280;
  --primary-light: #1a3bc4;
  --bg:            #f4f4f4;
  --card:          #ffffff;
  --text:          #1a1a1a;
  --muted:         #666666;
  --border:        #e8e8e8;
  --shadow-sm:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:     0 6px 28px rgba(0,0,0,0.14);
  --shadow-lg:     0 16px 56px rgba(0,0,0,0.22);
  --radius:        18px;
  --font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Guard against Pannellum's global svg rules bleeding into our UI */
.lang-card svg:not(.pannellum-container svg),
.exhibits-header svg,
.exhibit-card svg,
.how-it-works svg,
.pano-hint svg,
.pano-close svg,
.btn-primary svg,
.start-btn svg,
.badge-360 svg,
.tap-pill svg { max-width: unset; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ── Unified VA250 header ── */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 850;
  display: flex;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.app-header-logo-link {
  display: inline-flex;
  align-items: center;
}

.app-header-logo {
  height: 46px;
  width: auto;
  display: block;
}

/* ════════════════════════════════════════════════════════════════════
   SCREEN FRAMEWORK
   ════════════════════════════════════════════════════════════════════ */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.screen.active {
  opacity: 1;
  pointer-events: all;
}
.screen.fade-out {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.screen.fade-in {
  animation: screenIn 0.45s ease forwards;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ════════════════════════════════════════════════════════════════════
   SCREEN 1 — LANGUAGE SELECTION
   ════════════════════════════════════════════════════════════════════ */
#screen-language {
  background: linear-gradient(145deg, #0d0d1a 0%, #1a1030 40%, #0d1f3c 100%);
  align-items: center;
  justify-content: center;
}

/* ── Flowing "hello" words ── */
#hello-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hw {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  font-weight: 700;
  user-select: none;
  pointer-events: none;
  animation: wordFlow linear infinite;
  opacity: 0;
}

@keyframes wordFlow {
  0%   { transform: translateX(-350px) translateY(var(--dy)); opacity: 0; }
  6%   { opacity: var(--op); }
  94%  { opacity: var(--op); }
  100% { transform: translateX(calc(100vw + 350px)) translateY(var(--dy)); opacity: 0; }
}

/* ── Language card ── */
.lang-card {
  position: relative;
  z-index: 10;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 26px;
  padding: 40px 32px 32px;
  width: min(440px, calc(100vw - 32px));
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

/* ── NCCHR Logo ── */
.ncchr-logo {
  display: flex;
  align-items: center;
  gap: 13px;
}
.ncchr-logo.small { gap: 10px; }

.logo-mark-svg { width: 48px; height: 48px; flex-shrink: 0; }
.logo-mark-svg.small { width: 36px; height: 36px; }

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.3;
}
.logo-line-top {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--muted);
  text-transform: uppercase;
}
.logo-line-bot {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: var(--primary);
  text-transform: uppercase;
}

.lang-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 2px 0;
}

.lang-card h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.lang-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 300px;
}

/* ── Language dropdown ── */
.select-wrap {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.select-icon {
  position: absolute;
  left: 14px;
  width: 18px !important;
  height: 18px !important;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}
.select-chevron {
  position: absolute;
  right: 13px;
  width: 16px !important;
  height: 16px !important;
  color: var(--muted);
  pointer-events: none;
}
#language-select {
  width: 100%;
  padding: 14px 40px 14px 44px;
  font-size: 16px;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}
#language-select:focus { border-color: var(--primary); }

/* ── Primary button ── */
.btn-primary {
  width: 100%;
  padding: 16px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(18,44,160,0.35);
}
.btn-primary:hover  { background: var(--primary-light); box-shadow: 0 6px 24px rgba(18,44,160,0.45); }
.btn-primary:active { background: var(--primary-dark); transform: scale(0.97); box-shadow: none; }

.powered-by {
  font-size: 12px;
  color: #bbb;
  margin-top: -4px;
}

/* ════════════════════════════════════════════════════════════════════
   SCREEN 2 — EXHIBITS
   ════════════════════════════════════════════════════════════════════ */
#screen-exhibits {
  background: var(--bg);
  overflow: hidden;
  padding-top: 68px;
}

/* ── Sticky header ── */
.exhibits-header {
  background: white;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  z-index: 10;
}
.exhibits-header .ncchr-logo { margin-bottom: 10px; }

#choose-heading {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* ── Scrollable list ── */
.exhibits-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overflow-anchor: none;
}
.exhibits-scroll::-webkit-scrollbar { display: none; }

#exhibits-list {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── How-it-works banner ── */
.how-it-works {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0f3fc;
  border: 1.5px solid rgba(18,44,160,0.2);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
}
.how-it-works svg {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 1px;
}
.how-it-works strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 5px;
}
.how-it-works p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════
   EXHIBIT CARD
   ════════════════════════════════════════════════════════════════════ */
.exhibit-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  scroll-margin-top: 88px;
}

.exhibit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ── Stop header thumbnail ── */
.thumb-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.thumb-wrap img,
.thumb-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Video play indicator ── */
.video-play-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play-ring {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.6);
  animation: ring-pulse 1.8s ease-out infinite;
}
.video-play-ring:nth-child(2) { animation-delay: 0.6s; }
.video-play-ring:nth-child(3) { animation-delay: 1.2s; }
@keyframes ring-pulse {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.video-play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(18,44,160,0.88);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.video-play-btn svg { margin-left: 3px; }

/* Placeholder when no thumbnail URL */
.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.thumb-placeholder-icon {
  opacity: 0.25;
}

/* 360° badge */
.badge-360 {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 6px 11px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
}

/* Tap-to-view overlay */
.tap-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.thumb-wrap:hover .tap-overlay,
.thumb-wrap:active .tap-overlay {
  background: rgba(0,0,0,0.25);
}

.thumb-wrap.is-playing .tap-overlay {
  opacity: 0;
  pointer-events: none;
}

.thumb-wrap.is-playing .tap-overlay.hidden {
  display: none;
}

.thumb-wrap.is-playing .badge-360 {
  opacity: 0;
}
.tap-pill {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  color: white;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 0.2s, opacity 0.2s;
}
.thumb-wrap:hover .tap-pill,
.thumb-wrap:active .tap-pill {
  transform: scale(1);
  opacity: 1;
}

/* ── Card body ── */
.card-body {
  padding: 20px 20px 22px;
}
.card-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}

/* ── Start Experience button ── */
.start-btn {
  width: 100%;
  padding: 15px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 13px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.18s, transform 0.12s, box-shadow 0.18s;
  box-shadow: 0 4px 16px rgba(18,44,160,0.32);
}
.start-btn:hover  { background: var(--primary-light); box-shadow: 0 6px 22px rgba(18,44,160,0.42); }
.start-btn:active { background: var(--primary-dark); transform: scale(0.97); box-shadow: none; }

.exhibits-footer {
  text-align: center;
  padding: 24px 20px 28px;
  font-size: 13px;
  color: #bbb;
}

/* ════════════════════════════════════════════════════════════════════
   360° PANORAMA MODAL
   ════════════════════════════════════════════════════════════════════ */
.pano-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.pano-modal.open {
  opacity: 1;
  pointer-events: all;
}
.pano-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pano-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 860px);
  height: min(96vw, 520px);
  max-height: 85vh;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

#pano-viewer {
  width: 100%;
  height: 100%;
  background: #0d0d0d;
}
/* iframe viewer fills the container */
#pano-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.pano-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.pano-close:hover { background: rgba(0,0,0,0.9); }

.pano-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  pointer-events: none;
}

/* Placeholder inside modal */
.pano-placeholder-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  text-align: center;
  padding: 32px;
}
.pano-placeholder-inner svg { opacity: 0.45; }
.pano-placeholder-inner h3 { font-size: 20px; font-weight: 700; }
.pano-placeholder-inner p  { font-size: 14px; opacity: 0.6; max-width: 280px; line-height: 1.5; }

/* ════════════════════════════════════════════════════════════════════
   LOADING OVERLAY
   ════════════════════════════════════════════════════════════════════ */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.25s;
}
.loading-screen.hidden { display: none; }

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #ececec;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loading-label {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════════════
   RTL SUPPORT (Arabic, Hebrew, etc.)
   ════════════════════════════════════════════════════════════════════ */
[dir="rtl"] .logo-text { align-items: flex-end; text-align: right; }
[dir="rtl"] .btn-primary svg,
[dir="rtl"] .start-btn svg { transform: scaleX(-1); }
[dir="rtl"] .select-icon  { left: auto; right: 14px; }
[dir="rtl"] .select-chevron { right: auto; left: 13px; }
[dir="rtl"] #language-select { padding: 14px 44px 14px 40px; }

/* ════════════════════════════════════════════════════════════════════
   EXPERIENCE DETAILS PAGE
   ════════════════════════════════════════════════════════════════════ */
.experience-page {
  overflow-y: auto;
  background: var(--bg);
}

.experience-back-bar {
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  z-index: 840;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
}

.experience-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.experience-back-link:hover {
  text-decoration: underline;
}

.experience-shell {
  min-height: 100dvh;
  max-width: 960px;
  margin: 0 auto;
  padding: 118px 16px 28px;
}

.experience-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.experience-header h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.experience-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.experience-video-wrap {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

#experience-video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 58vh;
}

.experience-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.experience-content h2 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 10px;
}

.experience-content p {
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}

.steps-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.step-panel > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-panel > summary::-webkit-details-marker {
  display: none;
}

.step-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  font-weight: 700;
}

.step-title {
  font-size: 16px;
  color: var(--text);
  font-weight: 600;
}

.step-body {
  border-top: 1px solid var(--border);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.step-youtube-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  contain: layout paint;
}

.step-youtube-mount,
.step-youtube-wrap > div {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.step-youtube-wrap iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border: 0;
}

.step-youtube-wrap.is-video-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
}

.step-video-unavailable {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.step-launch-btn {
  align-self: flex-start;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.step-launch-btn:hover {
  background: var(--primary-light);
}

.step-unavailable {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

.steps-empty {
  color: var(--muted);
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════════
   LANDING PAGE
   ════════════════════════════════════════════════════════════════════ */
.landing-page {
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
}

.landing-shell {
  max-width: 940px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 86px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.landing-hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.landing-hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.landing-hero-copy {
  padding: 18px 20px 20px;
}

.landing-kicker {
  color: var(--primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  font-weight: 700;
}

.landing-hero h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.landing-subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
}

.landing-welcome {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.landing-welcome-heading {
  font-size: 20px;
  color: var(--primary);
  margin: 0 0 12px;
}

.landing-welcome p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.landing-welcome p:last-child {
  margin-bottom: 0;
}

.landing-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.landing-media-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  overflow: hidden;
}

.landing-media-card h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.landing-media-description {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.landing-tour-invite {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-media-placeholder {
  min-height: 120px;
  border-radius: 10px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  background: #fafafa;
}

.landing-youtube-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  contain: layout paint;
}

.landing-youtube-mount,
.landing-youtube-wrap > div {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
}

.landing-youtube-wrap iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  border: 0;
}

.landing-youtube-wrap.is-video-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
}

.landing-video-unavailable {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.landing-photo-snap-text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.landing-photo-snap-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 12px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 11px 16px;
  width: auto;
  max-width: 100%;
}

.landing-photo-snap-btn:hover {
  background: var(--primary-light);
}

.landing-tour-link-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.landing-tour-heading {
  font-size: 20px;
  color: var(--primary);
  margin: 0;
}

.landing-tour-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.landing-tour-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 4px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 11px 16px;
}

.landing-tour-link:hover {
  background: var(--primary-light);
}

.landing-sponsors {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.landing-sponsors h2 {
  font-size: 20px;
  color: var(--primary);
}

.landing-sponsors-intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.landing-sponsors-intro a {
  color: #0f5ea8;
  font-weight: 600;
  text-decoration: underline;
}

.sponsor-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.sponsor-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.sponsor-card a {
  color: #0f5ea8;
  word-break: break-word;
}
