@imgPadding: 8px;

mor-img{
    display: inline-block;
    position: relative;

    img{
        border: 0 none;
        vertical-align: middle;
    }

    .note{
        margin: 0 !important;
        position: absolute;
        width: 100%;
        bottom: 0;
        left: 0;
        padding: 5px;
        font-size: @fontSize*0.75;
        background-color: rgba(0, 0, 0, 0.6);
        color: #DDD;
        box-sizing: border-box;
        line-height: 1.4em;

        &:empty{
            display: none;
        }
    }

    .preview-note{
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 3;
        display: none;
        cursor: pointer;

        .mo-icon{
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            color: @colorWhite;
            font-size: @fontSize*2;
        }
    }

    &:hover{
        .preview-note{
            display: block;
        }
    }

    &.round{
        border-radius: @borderRadius;
        overflow: hidden;
    }

    &.circle{
        border-radius: 50%;
        overflow: hidden;
    }

    &.thumbnail{
        border-radius: @borderRadius;
        padding: @fontSize*0.4;
        overflow: hidden;
        border: 1px solid @colorImageBorder;
    }

    // default status
    &{}
}

.ui-dialog-preview > .content > .body{
    position: relative;
    font-size: 0;
    padding: @imgPadding;

    > img{
        padding: 0;
        border-radius: 0;
        max-width: calc(100vw - @imgPadding*2);
        max-height: calc(100vh - @imgPadding*2);
    }
}
