/* Loaded after styles.css. Two fixed compositions share one uniform stage scale;
   sky and ground extend beyond that stage to fill the available viewport. */
.scene[data-responsive-scene] .layer-sky,
.scene[data-responsive-scene] .layer-night {
  object-fit: cover;
  object-position: center;
}

.scene[data-responsive-scene] .layer-grass {
  right: auto;
  bottom: auto;
  object-fit: contain;
}

/* JS sizes the box to the visible alpha crop. Scale changes its dimensions while
   the bottom anchor remains on the grass, rather than scaling around the center. */
.scene[data-responsive-scene] > .building,
.scene[data-responsive-scene] > .scene-sign {
  aspect-ratio: auto;
  scale: 1;
  rotate: 0deg;
  transform-origin: 50% 100%;
}

.scene[data-responsive-scene] > .building > img:first-child,
.scene[data-responsive-scene] > .scene-sign > img {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: contain;
  transform: none;
  pointer-events: none;
}

.scene[data-responsive-scene] > .cow {
  max-width: none;
}

.scene[data-responsive-scene="compact"] > .building-house { z-index: 5; }
.scene[data-responsive-scene="compact"] > .building-lab { z-index: 5; }
.scene[data-responsive-scene] > .scene-sign { z-index: 5; }
