/* Image Reveal — Spotlight Effect
   Usage: <div data-image-reveal><img src="..." /></div>
   Configurable: data-reveal-radius, data-reveal-blur, data-reveal-opacity
*/

[data-image-reveal] {
  position: relative;
  overflow: hidden;
  cursor: none;
}

[data-image-reveal] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-image-reveal] .ir-overlay {
  position: absolute;
  inset: 0;
  background: #0d0d0d;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s ease;
  /* mask is set via JS */
}

[data-image-reveal] .ir-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.6s ease;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display, Georgia, serif);
  text-align: center;
  padding: 2rem;
}

[data-image-reveal].ir-active .ir-text {
  opacity: 0;
}

/* Reduced motion: show image directly */
@media (prefers-reduced-motion: reduce) {
  [data-image-reveal] .ir-overlay {
    display: none;
  }
  [data-image-reveal] .ir-text {
    background: rgba(13,13,13,0.5);
  }
  [data-image-reveal] {
    cursor: default;
  }
}
