.esial-wrapper {
  position: relative;
  min-height: var(--esial-scroll-height, 220vh);
}

.esial-sticky {
  position: sticky;
  top: var(--esial-sticky-top, 10vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.esial-stage {
  box-sizing: border-box;
  opacity: var(--esial-opacity, 1);
  transition: opacity 120ms linear;
  width: 100%;
  height: var(--esial-display-height, 80vh);
  position: relative;
  overflow: hidden;
}

.esial-stage .esial-image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  display: block !important;
  object-fit: var(--esial-object-fit, contain) !important;
  object-position: var(--esial-object-position, center center) !important;
  opacity: 0;
  visibility: hidden;
}

.esial-stage .esial-image-visible {
  opacity: 1;
  visibility: visible;
}

.esial-mode-marker {
  min-height: 0;
  height: 0;
  overflow: visible;
}

.esial-mode-marker .esial-sticky {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: inherit;
  pointer-events: none;
  display: none;
  align-items: flex-start;
  padding-top: var(--esial-sticky-top, 0vh);
  box-sizing: border-box;
}

.esial-mode-marker.esial-is-active .esial-sticky {
  display: flex;
}

.esial-mode-marker .esial-stage {
  height: var(--esial-display-height, 80vh);
  max-height: calc(100vh - var(--esial-sticky-top, 0vh));
}

.esial-empty {
  padding: 16px;
  border: 1px dashed #bbb;
  color: #666;
  font-size: 14px;
}
