/* Shared by the website and the offline 3D viewer. */
.memorial-loader {
  --ml-gold: #b88c4c;
  --ml-ink: #101416;
  --ml-plaque-width: clamp(224px, 23vw, 288px);
  --ml-gap: 18px;
  position: fixed; inset: 0; z-index: 2147483600;
  box-sizing: border-box; width: 100%; height: 100%; height: 100dvh;
  max-width: none; max-height: none; margin: 0; padding: 24px 0; border: 0;
  overflow: hidden; color: #eee8dc; background: var(--ml-ink);
  font-family: Arial, sans-serif; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 1; transition: opacity 400ms ease;
  color-scheme: dark;
}
.memorial-loader::backdrop { background: transparent; }
.memorial-loader[hidden] { display: none !important; }
.memorial-loader *, .memorial-loader *::before, .memorial-loader *::after { box-sizing: border-box; }
html.ml-loading-active { overflow: hidden !important; }
.memorial-loader[data-phase="leaving"] { opacity: 0; pointer-events: none; }
.memorial-loader:focus { outline: none; }
.ml-brand { flex: none; margin: 0 0 22px; padding: 0 24px; }
.ml-logo-window { position: relative; display: block; width: clamp(260px, 32vw, 380px); aspect-ratio: var(--ml-logo-aspect, 3); overflow: hidden; }
.ml-logo-window img { position: absolute; display: block; max-width: none; object-fit: fill; }
.ml-experience { flex: none; width: 100%; padding: 0; }
.memorial-loader .ml-stage { height: clamp(246px, 32vh, 304px); }
.ml-stage { position: relative; width: 100%; height: clamp(240px, 34vh, 340px); }
.ml-ribbon-window { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%); overflow: hidden; }
.ml-stage > .ml-ribbon-window {
  opacity: .28; filter: blur(4px);
  mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent);
}
.ml-ribbon-strip { position: relative; left: calc(50% - var(--ml-plaque-width) / 2); display: flex; width: max-content; will-change: transform; animation: ml-procession 20s linear infinite; }
.ml-ribbon-group { display: flex; flex: none; gap: var(--ml-gap); padding-right: var(--ml-gap); }
.ml-ribbon-group img {
  display: block; flex: none; width: var(--ml-plaque-width); height: auto; aspect-ratio: 24 / 17;
  object-fit: contain; background: #d0d0ca; border-radius: 2px;
}
.ml-focus {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(298px, 31vw, 384px); aspect-ratio: 24 / 17;
  border: 1px solid #b88c4cb3; border-radius: 8px;
  box-shadow: 0 0 0 8px #101416c9, 0 0 0 9px #b88c4c28, 0 16px 70px #0009;
}
.ml-focus-window { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: var(--ml-ink); }
.ml-focus-window > .ml-ribbon-window { width: 100vw; left: 50%; transform: translate(-50%, -50%) scale(1.32); }
.ml-focus-corner { position: absolute; width: 20px; height: 20px; bottom: -7px; right: -7px; border-right: 2px solid var(--ml-gold); border-bottom: 2px solid var(--ml-gold); border-bottom-right-radius: 8px; }
.ml-message { padding: 16px 22px 0; }
.ml-eyebrow { color: var(--ml-gold); font-size: 10px; line-height: 1.5; letter-spacing: .19em; text-transform: uppercase; }
.ml-loading { flex: none; width: min(340px, calc(100% - 44px)); margin-top: 20px; }
.ml-progress { height: 1px; overflow: hidden; background: #b88c4c32; margin: 0 auto 14px; width: 160px; }
.ml-progress span { display: block; width: 44%; height: 100%; background: var(--ml-gold); animation: ml-search 2.4s ease-in-out infinite; }
.ml-status { margin: 0; font-size: 11px; letter-spacing: .025em; line-height: 1.5; color: #bcb5a7; min-height: 17px; }
.memorial-loader .ml-return {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; margin: 4px 0 0; padding: 10px 14px; border: 0; border-radius: 3px;
  background: transparent; color: #b9a88a; font-family: Arial, sans-serif;
  font-size: 11px; font-weight: 400; line-height: 1.4; text-decoration: none; cursor: pointer;
}
.memorial-loader [hidden] { display: none !important; }
.memorial-loader .ml-return:hover { color: #fff5df; background: #b88c4c13; }
.memorial-loader .ml-return:focus-visible { outline: 2px solid var(--ml-gold); outline-offset: 3px; }
.memorial-loader[data-phase="failed"] .ml-ribbon-strip, .memorial-loader[data-phase="failed"] .ml-progress span { animation-play-state: paused; }
@keyframes ml-procession { from { transform: translateX(-33.333333%); } to { transform: translateX(-66.666667%); } }
@keyframes ml-search { 0%, 100% { transform: translateX(-110%); } 50% { transform: translateX(235%); } }
@media (max-width: 600px) {
  .ml-brand { margin-bottom: 18px; }
  .ml-logo-window { width: min(300px, calc(100vw - 72px)); }
  .ml-stage { height: 246px; }
  .ml-focus { width: min(298px, calc(100vw - 42px)); }
  .ml-message { padding-top: 12px; }
  .ml-eyebrow { font-size: 9px; letter-spacing: .11em; }
}
@media (max-height: 650px) {
  .ml-brand { margin-bottom: 16px; }
  .ml-logo-window { width: 250px; }
  .ml-stage { height: 180px; --ml-plaque-width: 196px; }
  .memorial-loader .ml-stage { height: 200px; }
  .ml-focus { width: 244px; }
  .ml-message { padding-top: 12px; }
  .ml-loading { margin-top: 18px; }
}
@media (max-height: 480px) and (min-width: 600px) {
  .memorial-loader { padding: 12px 0; }
  .ml-brand { margin-bottom: 12px; }
  .ml-logo-window { width: 180px; }
  .memorial-loader .ml-stage { height: 170px; --ml-plaque-width: 160px; }
  .memorial-loader .ml-focus { width: 210px; }
  .ml-message { padding-top: 8px; }
  .ml-loading { margin-top: 12px; }
  .ml-progress { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-ribbon-strip, .ml-progress span { animation: none; }
  .ml-ribbon-strip { transform: translateX(-33.333333%); }
  .memorial-loader { transition-duration: 120ms; }
}
