/* Frame the existing Moho exports around their painted pixels. The original
   stills and animation files remain unchanged. Context rules in style.css set
   the size of each word-illustration; the frame only removes empty canvas. */
.moho-frame {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  isolation: isolate;
}

.moho-frame > .moho-layout-image,
img.moho-layout-image {
  position: absolute !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  object-fit: fill !important;
  transform: none !important;
  translate: none !important;
  rotate: none !important;
  scale: none !important;
  transform-origin: 0 0 !important;
  animation: none !important;
  pointer-events: none;
}

/* The main picture and existing mission frames already have explicit sizes.
   These declarations keep the fitted image inside that steady hit area. */
#picture.moho-layout-frame,
.world-dog-picture.moho-layout-frame,
.option-picture.moho-layout-frame {
  position: relative;
  overflow: hidden;
}

.option-picture.moho-layout-frame { width: 100%; }
.world-bus.moho-layout-frame { overflow: hidden; }

.moho-frame > .moho-layout-image:not([data-actor-fitted]) {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: contain !important;
}
