﻿.modal-dialog{
    overflow-y: initial !important
}

#cropper-modal-body {
    height: calc(100vh - 200px);
    overflow-x: hidden;
    overflow-y: hidden;
}

.image-table {
    width: 100%;
}

    .image-table td {
        padding: 0 8px 8px 8px;
    }

    .image-table tr td:first-child {
        text-align: right;
        width: 1px; /*get min width*/
    }

        /*.image-table tr td:first-child + td {
            text-align: left;
            width: 60%;
        }*/

.image-picker input {
    padding: 8px;
    width: 100%;
}

.image-picker select {
    padding: 8px;
    width: 100%;
}

.thumb {
    float: left;
    border: 1px solid #d0d0d0;
    width: 160px;
    height: 190px;
    margin-right: 20px;
    margin-bottom: 20px;
    text-align: center;
    display: block;
    background-color: #FFF;
}

    .thumb span.icon-disc.external {
        position: relative;
        top: -13px;
        left: -13px;
        width: 27px;
        height: 27px;
    
        border: 1px solid #d0d0d0;
        display: block;               
    }

        .thumb span.icon-disc.external + .eps-wrapper {
            top: -10px;
        }

        .thumb span.icon-disc.external label {
            position: relative;
            top: 6px;
        }

    .thumb .eps-wrapper {
        height: 100px;
        width: 130px;
        position: relative;
        background-color: #d0d0d0;
        text-align: center;
        margin-left: 15px;
        font: 0/0 a; /* remove the gap between inline(-block) elements */
    }

     .thumb .handle {
        display:block;
        height: 60px;
        width: 160px;
        position: relative;
        text-align: center;
        cursor: move;      
    }


    .thumb .eps-wrapper:before { /* create a full-height inline block pseudo=element */
        content: ' ';
        display: inline-block;
        vertical-align: middle;
        height: 100%;
    }

    .thumb .eps-wrapper .eps-image {
        max-height: 100px;
        max-width: 130px;
        text-align: center;
        display: inline-block;
        vertical-align: middle; /* vertical alignment of the inline element */    
    }

    .thumb .eps-wrapper .icon-disc.internal {
        position: absolute;
        width: 27px;
        height: 27px;
        top: 9px;
        right: 7px;
        cursor: pointer;
        color: #FFF;
        border: 1px solid #d0d0d0;
        font-size: 16px;
        color: black;
        line-height: 26px !important;
    }

        .thumb .eps-wrapper .icon-disc.internal i .dropdown-menu {
            font-family: 'Lato', sans-serif !important;
            font-size: 12px;
        }

        .thumb .eps-wrapper .icon-disc.internal i {
           font-size: 16px;
        
           color: black;
        }

        .thumb .eps-wrapper .icon-disc.internal i:hover {
            color: #009ac4 !important;
        }

.thumb .btn {
    padding: 6px !important;
    background-color: #00c2f7;
    min-width: 60px !important;
    min-height: 20px !important;
}

   .thumb .btn:hover {
        background-color: #009ac4 !important;
    }

/*edit */

.img-container {
    max-width: 100%;
    height: 100%; /*TODO DOES NOT WORK*/
    /*overflow-x: scroll;
    overflow-y: scroll;*/
}


.gallery {
    /*padding: 15px 0;*/
    /*margin: 10px 10px 10px 5px;*/
    /*min-height: 250px;*/
    /*outline-color: #d0d0d0;
    outline-style: dashed;
    outline-width: 3px;*/
    display: inline-block;
    position: relative;
}

#eps-crop-toolbar{
    height: 50px;
    padding-top: 2px;
}

#eps-crop-imgContainer{
    height: calc(100% - 50px);
}

#fit-to-box-container > img {
    max-height: 100%;  
    max-width: 100%; 
    width: auto;
    height: auto;
    position: absolute;  
    top: 0;  
    bottom: 0;  
    left: 0;  
    right: 0;  
    margin: auto;
}

#fit-to-box-container {
    position: relative;
}


.image-gallery .btn {
    padding: 6px !important;
    background-color: #00c2f7;
    min-width: 60px !important;
    min-height: 20px !important;
}

   .image-gallery .btn:hover {
        background-color: #009ac4 !important;
    }