.hero-hover-reveal__panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 200px;
  max-width: min(200px, 28vw);
  max-height: min(200px, 36vw);
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(-50%, -50%, 0);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.35s,
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, width, height;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.hero-hover-reveal__panel.is-visible {
  opacity: 1;
  visibility: visible;
}

.hero-hover-reveal__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-hover-reveal__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-hover-reveal__slide--placeholder {
  background: linear-gradient(135deg, #333, #111);
}

@media (hover: none), (max-width: 768px) {
  .hero-hover-reveal__panel {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-hover-reveal__panel,
  .hero-hover-reveal__slide {
    transition: none;
  }
}
