/* Hover Inline Image (Miss Web) */
:root{
  --hii-w: 280px;
  --hii-r: 12px;
  --hii-ox: 24px;
  --hii-oy: -18px;
  --hii-speed: 180ms; /* preview fade/transform speed */
}

/* Keep this minimal so users can style the trigger any way they want */
.hii-trigger{
  cursor: pointer;
  text-decoration: none;
}

.hii-trigger:focus{
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Single global preview (fixed) */
.hii-preview{
  position: fixed;
  left: 0;
  top: 0;
  width: var(--hii-w);
  max-width: 60vw;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0,0,0);
  transition: opacity var(--hii-speed) ease, transform var(--hii-speed) ease;
  z-index: 999999;
  will-change: transform, opacity;
}

.hii-preview.hii-visible{
  opacity: 1;
  visibility: visible;
}

.hii-preview__img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--hii-r);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

@media (prefers-reduced-motion: reduce){
  .hii-preview{ transition: none !important; }
}
