/* Hover image magnify preview */

.image-magnify-preview {
    position: fixed;
    z-index: 10050;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.image-magnify-preview.is-visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.image-magnify-preview__frame {
    padding: 0.375rem;
    border-radius: 0.625rem;
    border: 1px solid color-mix(in oklab, var(--im-gold, #d4af37) 35%, var(--border));
    background: var(--im-darker, #141414);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(212, 175, 55, 0.08);
}

.image-magnify-preview__img {
    display: block;
    max-width: min(28rem, 72vw);
    max-height: min(22rem, 68vh);
    width: auto;
    height: auto;
    border-radius: 0.375rem;
    object-fit: contain;
    background: #0a0a0a;
}

img.table-thumb,
.file-upload__img[data-magnify],
img[data-magnify] {
    cursor: zoom-in;
}
