.am-img-viewer {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
}
.am-img-viewer-toolbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
    background: #2b2b2b;
    border-bottom: 1px solid #3a3a3a;
}
.am-img-viewer-toolbar .layui-btn {
    margin: 0;
}
.am-img-viewer-tip {
    margin-left: auto;
    font-size: 12px;
    color: #aaa;
}
.am-img-viewer-counter {
    font-size: 12px;
    color: #ccc;
    min-width: 48px;
    text-align: center;
}
.am-img-viewer-stage {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    min-height: 280px;
    user-select: none;
}
.am-img-viewer-stage.is-dragging {
    cursor: grabbing;
}
.am-img-viewer-img {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    transition: transform .08s ease-out;
    pointer-events: none;
}
.layui-table td img,
.layui-table-view td img,
#uploader-list img,
.layui-upload-list img,
.upload-list img,
.line-img-item img,
.act-img-item img,
img[data-am-preview],
img.am-preview-img {
    cursor: zoom-in;
}
.am-img-viewer-caption {
    flex-shrink: 0;
    padding: 10px 14px;
    background: #252525;
    color: #ddd;
    font-size: 13px;
    line-height: 1.6;
    max-height: 140px;
    overflow-y: auto;
    border-top: 1px solid #3a3a3a;
}
.am-img-viewer-caption:empty {
    display: none;
}
.am-img-viewer-caption p {
    margin: 0 0 4px;
}
.am-img-viewer-caption p:last-child {
    margin-bottom: 0;
}
