#light-atlas-open {
  border:1px solid #a6efd680;
  background:linear-gradient(125deg,#102d2c,#142023);
  color:#d5f6eb;
  box-shadow:inset 0 0 0 2px #53c3a01a,0 0 1.2rem #6cf6c322;
}
dialog.light-atlas {
  --atlas-border:#78c9b54f;
  width:min(63rem,calc(100% - 1.5rem));
  max-width:none;
  max-height:min(87dvh,54rem);
  padding:0;
  border:1px solid var(--atlas-border);
  border-radius:.9rem;
  background:radial-gradient(ellipse at 15% 0%,#163b3d 0%,transparent 52%),#0a1518;
  color:#e6f4eb;
  box-shadow:0 20px 100px #000c;
  overflow:hidden;
}
.light-atlas[open] { display:flex; flex-direction:column; }
.light-atlas::backdrop { background:#03090de6; }
.light-atlas [hidden] { display:none !important; }
.light-atlas-head,.light-atlas-viewer-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.65rem;
  padding:.8rem clamp(.75rem,3vw,1.75rem);
}
.light-atlas-head { border-bottom:1px solid var(--atlas-border); position:relative; }
.light-atlas-head::after { content:""; position:absolute; bottom:-1px; left:6%; width:34%; height:1px; background:linear-gradient(90deg,transparent,#b5ffe2,transparent); }
.light-atlas h2,.light-atlas h3 { margin:0; font-family:Georgia,serif; color:#f1eee1; line-height:1.14; overflow-wrap:break-word; }
.light-atlas h2 { font-size:clamp(1.22rem,3vw,2.05rem); }
.light-atlas h3 { font-size:1.18rem; }
.light-atlas button,.light-atlas a { min-height:2.65rem; }
.light-atlas button:focus-visible,.light-atlas a:focus-visible { outline:2px solid #beffe7; outline-offset:2px; }
.light-atlas-head button,.light-atlas-tabs button,.light-atlas-viewer-bar :is(button,a) {
  border:1px solid var(--atlas-border);
  border-radius:.45rem;
  padding:.44rem .82rem;
  background:#0b2125;
  color:#e4f4ed;
  font:600 .85rem/1.25 system-ui,sans-serif;
  white-space:normal;
}
.light-atlas-viewer-bar a { display:inline-flex; align-items:center; text-decoration:none; }
.light-atlas-body { overflow:auto; overscroll-behavior:contain; padding:1.1rem clamp(.75rem,3vw,1.75rem) 1.5rem; }
.light-atlas-intro { margin:0 0 1rem; color:#b2d0c8; font-size:.95rem; }
.light-atlas-tabs { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1.4rem; }
.light-atlas-tabs button[aria-pressed="true"] { color:#0b2824; background:#a4e9d2; }
.light-atlas-group + .light-atlas-group { margin-top:1.55rem; padding-top:1.15rem; border-top:1px solid var(--atlas-border); }
.light-atlas-count { color:#aec8bf; font-size:.8rem; margin:.4rem 0 .6rem; }
.light-atlas-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(16rem,100%),1fr)); gap:.55rem; }
.light-atlas button.light-atlas-card {
  display:grid; grid-template-columns:2rem minmax(0,1fr) auto;
  white-space:normal; align-items:center; gap:.6rem; text-align:start;
  min-height:4.2rem; padding:.55rem .75rem;
  color:#eaf6f1; border:1px solid color-mix(in srgb,var(--stage-light) 38%,#0b1516);
  border-radius:.5rem;
  background:linear-gradient(110deg,color-mix(in srgb,var(--stage-light) 12%,#0a171c),#0e2026 85%);
}
.light-atlas button.light-atlas-card:hover { border-color:var(--stage-light); }
.light-atlas-flare {
  width:1.55rem; aspect-ratio:1; border:1px solid var(--stage-light); border-radius:52% 48% 54% 46%;
  background:radial-gradient(ellipse,var(--stage-light) 0%,transparent 48%);
  box-shadow:0 0 .85rem color-mix(in srgb,var(--stage-light) 45%,transparent);
  transform:rotate(30deg) scaleY(.78);
}
.light-atlas-card-copy { min-width:0; display:grid; gap:.24rem; }
.light-atlas-card-copy strong { font:600 .97rem/1.24 system-ui,sans-serif; overflow-wrap:break-word; }
.light-atlas-card-copy small { color:#aec8bf; font:.72rem/1.2 system-ui,sans-serif; letter-spacing:normal; }
.light-atlas-arrow { color:var(--stage-light); }
dialog.light-atlas-playing { width:min(81rem,calc(100% - .75rem)); height:92dvh; max-height:92dvh; }
.light-atlas-viewer { flex:1; min-height:0; display:flex; flex-direction:column; position:relative; }
.light-atlas-viewer-bar { flex-wrap:wrap; }
.light-atlas-viewer iframe { display:block; flex:1; width:100%; min-height:0; border:0; background:#081519; }
.light-atlas-loading { position:absolute; top:4.6rem; left:1rem; padding:.65rem .9rem; border-radius:.25rem; background:#0f2c31; pointer-events:none; z-index:1; }
#museum.cinema #light-atlas-open { visibility:hidden; }
@media(max-width:520px) {
  .light-atlas-grid { grid-template-columns:minmax(0,1fr); }
  .light-atlas-head button { padding-inline:.6rem; }
}
