.tw-image-trail {
  width: 100%;
  height: 100%;
  position: relative;
  background: transparent;
  overflow: visible;
}

.tw-image-trail__image {
  width: var(--trail-size, 190px);
  aspect-ratio: var(--trail-aspect, 1.1);
  border-radius: var(--trail-radius, 15px);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}

.tw-image-trail__inner {
  background-position: 50% 50%;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background-size: cover;
  position: absolute;
  top: -10px;
  left: -10px;
}

@media (prefers-reduced-motion: reduce) {
  .tw-image-trail { display: none; }
}
