/* =========================================================
   SATAID Web - Universal Image Zoom
   v0.1
========================================================= */

.image-zoom-stage {
    position: relative;
    overflow: hidden;
    touch-action: none;
}

.image-zoom-stage.image-zoom-active {
    cursor: grab;
}

.image-zoom-stage.image-zoom-dragging {
    cursor: grabbing;
}

.image-zoom-target {
    transform-origin: center center;
    will-change: transform;
}

.image-zoom-toolbar {
    position: absolute;
    z-index: 40;

    right: 12px;
    bottom: 12px;

    display: flex;
    align-items: center;
    gap: 4px;

    padding: 5px;

    border: 1px solid rgba(255,255,255,.24);
    border-radius: 7px;

    background: rgba(4,24,34,.86);

    box-shadow: 0 3px 14px rgba(0,0,0,.28);
    backdrop-filter: blur(4px);

    user-select: none;
}

.image-zoom-toolbar button {
    height: 32px;
    min-width: 36px;

    padding: 0 9px;

    border: 1px solid rgba(255,255,255,.20);
    border-radius: 5px;

    background: rgba(255,255,255,.09);
    color: #ffffff;

    font-family: inherit;
    font-size: 17px;
    font-weight: 800;

    cursor: pointer;
}

.image-zoom-toolbar button:hover {
    background: rgba(255,255,255,.18);
}

.image-zoom-toolbar .image-zoom-level {
    min-width: 60px;
    font-size: 12px;
}

.image-zoom-toolbar .image-zoom-fit {
    min-width: 72px;
    font-size: 12px;
}

.image-zoom-toolbar button:disabled {
    opacity: .45;
    cursor: default;
}

@media (max-width: 820px) {

    .image-zoom-toolbar {
        right: 7px;
        bottom: 7px;
    }

    .image-zoom-toolbar button {
        height: 30px;
        min-width: 32px;
        padding: 0 7px;
    }

    .image-zoom-toolbar .image-zoom-fit {
        min-width: 58px;
    }
}


/* =========================================================
   ZOOM CURSOR
   v0.4
========================================================= */

/*
 * 100%:
 * communicate that the image can be clicked to zoom.
 */
.image-zoom-stage {
    cursor: zoom-in;
}


/*
 * Zoomed:
 * image can be dragged / panned.
 */
.image-zoom-stage.image-zoom-active {
    cursor: grab;
}


/*
 * While dragging.
 */
.image-zoom-stage.image-zoom-dragging {
    cursor: grabbing;
}


/*
 * Toolbar keeps normal button interaction.
 */
.image-zoom-toolbar,
.image-zoom-toolbar button {
    cursor: pointer;
}
