﻿/*
======================================================
ZOOM MODAL STYLES (prefix: zoom-) (no Bootstrap)
======================================================
*/

/*
======================================================
ZOOM MODAL (prefix: zmdl-)
======================================================
*/

.zmdl-overlay {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

    .zmdl-overlay.show {
        display: flex;
        opacity: 1;
    }

.zmdl-background {
    position: absolute;
    inset: 0;
}

.zmdl-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
}

/* IMAGE */
.zmdl-image {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    /* */
    cursor: grab;
    user-select: none;
    will-change: transform;
    transition: transform 0.1s ease-out;
    touch-action: none; /* manual pinch control */
}

    .zmdl-image:active {
        cursor: grabbing;
    }

/* CLOSE BUTTON */
.zmdl-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
