/* User-started photo playback; the original hero remains the default view. */
.hero .urs-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: fit-content;
  min-height: 46px;
  margin-top: 16px;
  padding: 10px 22px;
  border: 1px solid #e3bdab;
  border-radius: 999px;
  background: #ffffff0c;
  color: #fff3e9;
  font: 500 14px/1.5 Arial, sans-serif;
  letter-spacing: 1.1px;
  box-shadow: inset 0 1px 0 #ffffff16;
  transition: background .2s ease, border-color .2s ease;
}
.hero .urs-start::before { content: '\25b6'; font-size: 10px; }
.hero .urs-start:hover { background: #b98a7830; border-color: #ffe4d6; }
.hero .urs-start:disabled { cursor: progress; opacity: .75; }
.hero .urs-start:focus-visible,
.urs-carousel button:focus-visible { outline: 3px solid #ffe1a9; outline-offset: 4px; }
.urs-carousel[hidden] { display: none !important; }
.hero.urs-active {
  perspective: none;
  overflow: clip;
}
.hero.urs-active > .hero-inner,
.hero.urs-active > .hero-bottom {
  visibility: hidden;
  pointer-events: none;
}
.hero.urs-active > .hero-scene,
.hero.urs-active > .motion-lights { display: none; }
.hero.urs-active::before { display: none; }
.urs-carousel {
  position: absolute;
  z-index: 5;
  inset: 0;
  isolation: isolate;
  overflow: clip;
  color: #fff9f3;
  background: #190f20;
  touch-action: pan-y pinch-zoom;
}
.urs-viewport {
  position: sticky;
  top: var(--urs-header-height, 92px);
  height: min(920px, var(--urs-viewport-height, calc(100svh - var(--urs-header-height, 92px))));
  min-height: 0;
  max-height: 100%;
  overflow: clip;
  isolation: isolate;
}
.urs-stage { position: absolute; inset: 0; overflow: hidden; }
.urs-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: none;
  transform: none;
  transition: opacity 220ms linear;
  pointer-events: none;
}
.urs-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #10091c72, transparent 28%, transparent 68%, #10091ca8);
  pointer-events: none;
}
.urs-photo {
  position: absolute;
  z-index: 2;
  top: 76px;
  left: 0;
  width: 100%;
  height: calc(100% - 158px);
  object-fit: contain;
  object-position: center;
  border: 0;
  border-radius: 0;
  filter: none;
  transform: none;
  opacity: 0;
  transition: opacity 220ms linear;
}
.urs-photo.is-visible, .urs-background.is-visible { opacity: 1; }
.urs-topbar {
  position: absolute;
  z-index: 4;
  top: max(15px, env(safe-area-inset-top));
  left: clamp(16px, 4vw, 64px);
  right: clamp(16px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.urs-title {
  font: 500 clamp(13px, 1.2vw, 17px)/1.4 Arial, sans-serif;
  letter-spacing: 2px;
  color: #fff4e5;
  text-shadow: 0 2px 8px #000;
}
.urs-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #f0cdbb91;
  border-radius: 999px;
  background: #22142ded;
  color: #fff8ef;
  font: 500 13px/1.4 Arial, sans-serif;
  text-shadow: none;
  box-shadow: 0 3px 16px #0003;
  transition: background .2s ease;
}
.urs-control:hover { background: #613d59; }
.urs-control:disabled { cursor: progress; opacity: .6; }
.urs-back { font-size: 12px; border-color: #f2d4bf; background: #312039f2; }
.urs-controls {
  position: absolute;
  z-index: 4;
  bottom: max(17px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: calc(100% - 32px);
}
.urs-counter {
  min-width: 70px;
  padding: 7px 0;
  text-align: center;
  font: 500 13px/1.4 Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 2px 8px #000;
}
.urs-pause { min-width: 80px; }
.urs-arrow { padding-inline: 14px; font-size: 21px; line-height: 1; }
.urs-status {
  position: absolute;
  z-index: 4;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 7px 13px;
  border-radius: 8px;
  background: #22142dee;
  color: #fff8ef;
  text-align: center;
  font: 12px/1.5 Arial, sans-serif;
}
.urs-status:empty { display: none; }
@media (max-width: 850px) {
  .hero.urs-active { --urs-header-height: 82px; }
  .urs-photo { top: 70px; height: calc(100% - 146px); }
}
@media (max-width: 420px) {
  .urs-title { font-size: 12px; letter-spacing: 1.4px; }
  .urs-back { padding-inline: 12px; }
  .urs-controls { gap: 9px; }
  .urs-counter { min-width: 62px; font-size: 12px; }
  .urs-pause { min-width: 71px; padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .urs-carousel *, .hero .urs-start { animation: none !important; transition: none !important; }
}
