/* Vesta photographic temple: approved visual reference, locally hosted and offline cached. */
.vesta-stage.vesta-photo-stage{
  position:relative;
  display:block;
  overflow:hidden;
  width:100%;
  max-width:780px;
  min-height:0;
  margin:18px auto;
  padding:0;
  aspect-ratio:800/766;
  border:0;
  border-radius:17px;
  background:#100c11;
  isolation:isolate;
  box-shadow:0 16px 35px #07040882,0 0 0 1px #a77939;
}
.vesta-photo-stage .vesta-photo-base{
  display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0;
  filter:brightness(var(--vesta-photo-brightness,1)) saturate(var(--vesta-photo-saturation,1));
  transition:filter 650ms ease-out;z-index:0;
}
.vesta-photo-stage .vesta-photofire{
  position:absolute;z-index:2;
  left:33.54%;top:25.22%;width:36.46%;height:40.65%;
  pointer-events:none;
  object-fit:fill;
  opacity:.62;
  transform-origin:51% 93%;
  mix-blend-mode:screen;
  animation:vesta-real-flare 1.78s ease-in-out infinite alternate;
  filter:brightness(1.13) saturate(1.15);
  -webkit-mask-image:radial-gradient(ellipse 70% 70% at 50% 54%,#000 30%,#000c 61%,transparent 97%);
  mask-image:radial-gradient(ellipse 70% 70% at 50% 54%,#000 30%,#000c 61%,transparent 97%);
}
.vesta-photo-stage .vesta-photofire-secondary{
  opacity:.30;filter:blur(.8px) brightness(1.10) saturate(1.17);
  animation:vesta-real-flare-second 1.26s ease-in-out -.43s infinite alternate;
  z-index:3;
}
.vesta-photo-stage .vesta-photoglow{
  position:absolute;left:30%;top:35%;width:40%;height:31%;z-index:1;
  border-radius:50%;pointer-events:none;opacity:.40;
  background:radial-gradient(ellipse at 50% 72%,#fff2b7a1 0%,#ffb44d70 22%,#e8622d42 55%,transparent 80%);
  filter:blur(16px);mix-blend-mode:screen;
  animation:vesta-real-glow 2.7s ease-in-out -1s infinite alternate;
}
.vesta-photo-stage .vesta-photoreflection{
  position:absolute;left:22%;top:59%;width:56%;height:13%;z-index:4;pointer-events:none;
  background:radial-gradient(ellipse at 50% 10%,#ffda8275 0%,#ffa63435 32%,transparent 70%);
  mix-blend-mode:screen;filter:blur(8px);
  opacity:.53;animation:vesta-real-glow 3.1s ease-in-out -.75s infinite alternate;
}
.vesta-photo-stage .vesta-photospots{position:absolute;inset:0;z-index:5;pointer-events:none}
.vesta-photo-stage .vesta-photospots i{
  position:absolute;left:var(--x);top:var(--y);width:clamp(1px,.4vw,3px);height:clamp(1px,.4vw,3px);
  border-radius:50%;background:#fff6b8;box-shadow:0 0 4px 1px #ff9c3f;
  opacity:0;animation:vesta-real-embers var(--speed) linear var(--delay) infinite;
}
#vestaTemple[data-flame="bright"] .vesta-photo-stage{
  --vesta-photo-brightness:1.03;--vesta-photo-saturation:1.09;
  --vesta-motion-strength:1;
}
#vestaTemple[data-flame="medium"] .vesta-photo-stage{
  --vesta-photo-brightness:.89;--vesta-photo-saturation:.90;
  --vesta-motion-strength:.77;
}
#vestaTemple[data-flame="low"] .vesta-photo-stage{
  --vesta-photo-brightness:.70;--vesta-photo-saturation:.79;
  --vesta-motion-strength:.50;
}
#vestaTemple[data-flame="medium"] .vesta-photofire{opacity:.46}
#vestaTemple[data-flame="medium"] .vesta-photofire-secondary{opacity:.20}
#vestaTemple[data-flame="low"] .vesta-photofire{opacity:.27}
#vestaTemple[data-flame="low"] .vesta-photofire-secondary{opacity:.12}
#vestaTemple[data-flame="low"] .vesta-photoglow{opacity:.16}
#vestaTemple[data-flame="low"] .vesta-photospots{opacity:.27}
#vestaTemple[data-flame="medium"] .vesta-photospots{opacity:.59}
@keyframes vesta-real-flare{
  from{transform:translate(-1.3%,.8%) scaleX(.96) scaleY(.965) skewX(-1.4deg);opacity:.44}
  37%{transform:translate(.6%,-.6%) scaleX(1.035) scaleY(1.045) skewX(1.1deg);opacity:.76}
  to{transform:translate(1%,-1.2%) scaleX(.99) scaleY(1.055) skewX(2.0deg);opacity:.58}
}
@keyframes vesta-real-flare-second{
  from{transform:translate(1.9%,.5%) scaleX(.93) scaleY(1.03) skewX(2.1deg)}
  to{transform:translate(-1.5%,-1.5%) scaleX(1.07) scaleY(.96) skewX(-2.7deg)}
}
@keyframes vesta-real-glow{
  from{transform:scale(.92);opacity:.3}
  to{transform:scale(1.09);opacity:.65}
}
@keyframes vesta-real-embers{
  0%{opacity:0;transform:translate(0,0) scale(.45)}
  14%{opacity:.95}
  80%{opacity:.48}
  100%{opacity:0;transform:translate(var(--dx),-100px) scale(.2)}
}
@media(prefers-reduced-motion:reduce){
  .vesta-photo-stage .vesta-photofire,
  .vesta-photo-stage .vesta-photoglow,
  .vesta-photo-stage .vesta-photoreflection,
  .vesta-photo-stage .vesta-photospots i{animation:none!important}
  .vesta-photo-stage .vesta-photofire-secondary{display:none}
}

/* Canvas animation uses pixels from the same photographed fire. CSS photo layers remain as fallback. */
.vesta-photo-stage .vesta-photo-motion-canvas{
 position:absolute;z-index:6;pointer-events:none;display:block;
 left:33.54%;top:25.22%;width:36.46%;height:40.65%;
 opacity:.78;mix-blend-mode:screen;filter:brightness(1.15) saturate(1.13);
 -webkit-mask-image:radial-gradient(ellipse 75% 73% at 50% 51%,#000 33%,#000d 67%,transparent 98%);
 mask-image:radial-gradient(ellipse 75% 73% at 50% 51%,#000 33%,#000d 67%,transparent 98%);
}
.vesta-photo-stage:not(.vesta-photo-motion-ready) .vesta-photo-motion-canvas{opacity:0}
.vesta-photo-stage.vesta-photo-motion-ready .vesta-photofire{display:none}
#vestaTemple[data-flame="medium"] .vesta-photo-motion-canvas{opacity:.50}
#vestaTemple[data-flame="low"] .vesta-photo-motion-canvas{opacity:.27}
@media(prefers-reduced-motion:reduce){
 .vesta-photo-stage .vesta-photo-motion-canvas{display:none!important}
 .vesta-photo-stage.vesta-photo-motion-ready .vesta-photofire:not(.vesta-photofire-secondary){display:block!important;animation:none!important}
}
