
cto-upload {
    display: block;
    clear: both;
    padding: 1em 1em 0 1em;
    border: 2px solid #000;
    overflow: hidden;
    -webkit-border-radius: 0.25em;
    -moz-border-radius: 0.25em;
    -ms-border-radius: 0.25em;
    -o-border-radius: 0.25em;
    border-radius: 0.25em;
}

cto-upload .clear {
    clear: both;
}

cto-upload .image-container {
    display: inline-block;
    position: relative;
    width: 10em;
    height: 10em;
    background: #cacaca;
    margin-right: 1em;
    margin-bottom: 1em;
    float: left;
}
cto-upload .image-container .image {
    display: block;
    max-width: 10em;
    max-height: 10em;
    margin: 0 auto;
    position: absolute; /* position: relative; */
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}
cto-upload .image-container .image a {
    color: #00F;
}
cto-upload .image-container .image-toolbar {
    position: absolute;
    top: 0;
    right: 0;
}
cto-upload .image-container .image-toolbar .button-image-sort-left {
    
}
cto-upload .image-container .image-toolbar .button-image-sort-right {
    
}
cto-upload .image-container .image-toolbar .button-image-delete {
    
}
cto-upload .image-upload-container {
    display: inline-block;
    width: 10em;
    height: 10em;
    background: #cacaca;
    margin-right: 1em;
    margin-bottom: 1em;
    float: left;
    text-align: center;
    /*padding: 1em;
    padding-top: 3.5em;*/
    
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

cto-upload .autoupload-form {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
cto-upload .autoupload-form .div-autoupload-note {
    padding-top: 4em;
    text-align: center;
    background-color: #666666;
    color: #ababab;
    width: 100%;
    height: 100%;
    
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}
cto-upload .autoupload-form input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: 0 none;
    margin: 0;
    padding: 0;
    font-size: 0.1em;
    opacity: 0.0001;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    -webkit-border-radius: inherit;
}


cto-upload[size-small] { padding: 0.25em 0.25em 0 0.25em; }
cto-upload[size-small] .button-image-sort-left { display: none; }
cto-upload[size-small] .button-image-sort-right { display: none; }
cto-upload[size-small] .image-container, cto-upload[size-small] .image-upload-container { width: 6em; height: 6em; margin-right: 0.25em; margin-bottom: 0.25em; }
cto-upload[size-small] .image-container img { max-width: 6em; max-height: 6em; }
cto-upload[size-small] .autoupload-form .div-autoupload-note { padding-top: 1em; }

cto-upload[no-upload] { min-height: 2em; }
cto-upload[no-upload] .image-upload-container { display: none; }



cto-upload[bt-display] {
    border: 0 none;
    padding: 0;
}
cto-upload[bt-display] .image-upload-container {
    display: block;
    width: 100%;
    border-radius: 0.5em;
    overflow: hidden;
}
cto-upload[bt-display] .div-autoupload-note {
    background: #edf1f3;
    border: 1px solid #ddd;
    color: #667888;
    font-weight: 700;
    font-size: 1.25em;
    padding-top: 2.75em;
}





