/* Both maps share the photograph's frame, cover fit, alignment and bottom fade. */
.lamp-light,.lamp-light *,.chart-stage .chart::after{pointer-events:none}
.lamp-light{overflow:hidden}
.lamp-map{position:absolute;inset:0;width:100%;height:100%;display:block}
.lamp-phone{display:none}
@media(max-width:600px){.lamp-wide{display:none}.lamp-phone{display:block}}
.study-environment{--lamp-on:0;--spill-delay:0ms;--paper-delay:0ms}
.study-environment[data-lamp-pressed],.study-environment:has(.chart-stage .chart:focus-visible,.chart-stage .chart:active){
  --lamp-on:1;--spill-delay:50ms;--paper-delay:95ms;
}
@media(hover:hover) and (pointer:fine){
  .study-environment:has(.chart-stage .chart:hover){--lamp-on:1;--spill-delay:50ms;--paper-delay:95ms}
}
.lamp-emitter,.lamp-spill,.chart-stage .chart::after{opacity:var(--lamp-on);transition-property:opacity;transition-timing-function:ease-in-out}
.lamp-emitter{transition-duration:280ms}
.lamp-spill{transition-duration:550ms;transition-delay:var(--spill-delay)}
.chart-stage .chart::after{
  content:"";position:absolute;inset:3px;
  background:linear-gradient(235deg,rgba(255,224,159,.30),rgba(246,205,135,.12) 43%,transparent 86%);
  mix-blend-mode:soft-light;transition-duration:505ms;transition-delay:var(--paper-delay);
}
.chart-stage .chart-front::after{background:linear-gradient(220deg,rgba(255,236,185,.65),rgba(255,218,153,.36) 41%,rgba(241,194,124,.09) 78%,transparent)}
@media(prefers-reduced-motion:reduce){
  .lamp-emitter,.lamp-spill,.chart-stage .chart::after{transition:none}
}
/* Keep the luminous center in frame while retaining as much of the original
   center crop as possible. Container units refer to the photograph, not the hero. */
.environment-art{container-type:size}
.environment-art img,.lamp-map{
  --photo-width:max(100cqw,calc(100cqh * 1672 / 941));
  --nudge:max(0px,calc(var(--photo-width) * .45 - 50cqw + 4px));
}
.environment-art img{object-position:calc(50% - var(--nudge)) center}
.lamp-map{
  width:var(--photo-width);height:auto;max-width:none;
  left:calc(50% - var(--nudge));top:50%;bottom:auto;right:auto;
  transform:translate(-50%,-50%);
}
@media(max-width:600px){
  .environment-art img,.lamp-map{
    --photo-width:max(100cqw,calc(100cqh * 2 / 3));
    --nudge:max(0px,calc(var(--photo-width) * .438 - 50cqw + 4px));
  }
  .environment-art img{object-position:calc(50% - var(--nudge)) bottom}
  .lamp-map{top:auto;bottom:0;transform:translateX(-50%)}
}
/* The mobile front chart overlaps the left side of the shade. Leave its
   bright center in the margin beside the chart. On stacked tablet layouts
   keep the source well to the right of the heading. */
@media(max-width:850px) and (min-width:601px){
  .environment-art img,.lamp-map{--nudge:max(0px,calc(var(--photo-width) * .38254 - 44cqw))}
}
@media(max-width:600px){
  .environment-art img,.lamp-map{--nudge:max(0px,calc(var(--photo-width) * .34921 - 43cqw))}
}

