/* image_viewer.css — styles for static/js/image_viewer.js (hover preview + full-screen viewer). */

[data-zoom] { cursor: zoom-in; }

.wh-peek {
  position: fixed; z-index: 1080; pointer-events: none;
  border-radius: 10px; overflow: hidden; background: #111;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .08);
  opacity: 0; transform: scale(.96); transition: opacity .12s ease, transform .12s ease;
}
.wh-peek.is-on { opacity: 1; transform: none; }
.wh-peek img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wh-peek--light { background: #fff; }
.wh-peek--light img { padding: 10px; }

.wh-viewer {
  border: 0; padding: 0; margin: auto; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; height: 100dvh;
  overflow: hidden; cursor: zoom-out;
}
.wh-viewer::backdrop { background: rgba(8, 10, 14, .9); }
.wh-viewer[open] { display: grid; place-items: center; }
.wh-viewer img {
  display: block; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px);
  object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.wh-viewer__close, .wh-viewer__open {
  position: fixed; top: max(12px, env(safe-area-inset-top)); display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.1rem; cursor: pointer; text-decoration: none;
}
.wh-viewer__close { right: 12px; }
.wh-viewer__open { right: 60px; }
.wh-viewer__close:hover, .wh-viewer__open:hover { background: rgba(255, 255, 255, .26); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .wh-peek { transition: none; }
}
