/* Maja lugu A: referentsi kaks fotokihti, meie ühine alumine joondus. */
#maja .story-block figure {
  position: relative;
  overflow: clip;
  transform-origin: center bottom;
}
#maja .story-image-layer {
  position: absolute;
  inset: 0;
  display: block;
  overflow: clip;
  transform-origin: center bottom;
}
#maja-title { position: relative; transform-origin: left top; }
#maja-title.story-title-split { color: transparent; }
#maja-title .story-motion-glyph {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  color: var(--ink);
  line-height: inherit;
  white-space: pre;
  pointer-events: none;
}
#maja .story-motion-pending { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #maja .story-motion-pending { opacity: 1 !important; }
  #maja-title, #maja .story-block figure, #maja .story-image-layer,
  #maja .story-text { opacity: 1 !important; transform: none !important; }
  #maja-title.story-title-split { color: var(--ink); }
  #maja-title .story-motion-glyph { display: none; }
}
