#media .modal-full.media-modal{
    position: fixed; 
    top: 30px; 
    left: 30px; 
    right: 30px; 
    bottom: 30px; 
    z-index: 160000; 
    max-width: 100%; 
    margin: 0
}
#media .media-modal-content { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    overflow: auto; 
    min-height: 300px; 
    box-shadow: 0 5px 15px rgba(0,0,0,.7);
    -webkit-font-smoothing: subpixel-antialiased;
}
#media .media-frame { 
    overflow: hidden; 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
}
#media .media-frame-content { 
    position: absolute; 
    top: 66px;
    /*left: 215px; */
    left: 0;
    right: 0;
    bottom: 49px;
    height: auto; 
    width: auto; 
    margin: 0; 
    overflow: auto;
}

#media .media-attachments-filter-heading, #media .media-frame-menu-heading {
    position: absolute;
    left: 20px;
    top: 18px;
    margin: 0;
    font-size: 13px;
    line-height: 1;
    z-index: 151;
}
#media .button.media-frame-menu-toggle {
    display: none;
}
/*#media .media-frame-menu {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    bottom: 0;*/
/*    width: 215px;*/
/*    z-index: 150;*/
/*}*/

#media .media-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 50px 0 10px;
    background: #f3f3f3;
    border-right-width: 1px;
    border-right-style: solid;
    border-right-color: #ccc;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#media .media-menu .media-menu-item {
    display: block;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    border: 0;
    margin: 0;
    padding: 8px 20px;
    font-size: 14px;
    line-height: 1.28571428;
    background: 0 0;
    color: #0073aa;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
#media .media-menu .active, #media .media-menu .active:hover {
    color: #23282d;
    font-weight: 600;
}

#media .media-frame .attachments-browser { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    overflow: hidden;
}
#media .attachments-browser .attachments, 
#media .attachments-browser .uploader-inline { 
    position: absolute; 
    top: 90px; 
    /*left: 215px; */
    left: 0;
    right: 300px;
    bottom: 0; 
    overflow: auto; 
    outline: 0;
}
#media .attachments-browser .attachments { 
    padding: 4px 10px 10px;
}
#media .media-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    padding: 0 16px 24px;
    z-index: 75;
    border-left: 1px solid #ddd;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
#media .media-uploader-status { 
    position: relative; 
    margin: 0 auto; 
    padding-bottom: 10px; 
    max-width: 400px;
}
#media .media-frame-toolbar { 
    position: absolute;
    left: 0;
    right: 0; 
    bottom: 0; 
    height: 47px;
    z-index: 100;
}
#media .media-toolbar { 
    position: absolute; 
    top: 40px;
    /*left: 215px;*/
    left: 0;
    right: 0;
    z-index: 100; 
    height: 50px;
    padding: 6px 16px; 
    border: none;
    overflow: hidden;
}
#media .attachments-browser .media-toolbar { 
    right: 300px; 
    height: 50px;
}
#media .media-frame-toolbar .media-toolbar { 
    top: auto; 
    bottom: -1px;
    height: auto; 
    overflow: visible;
}
#media .media-frame-content, 
#media .media-frame-router, 
#media .media-frame-title, 
#media .media-frame-toolbar { 
    left: 0;
}
#media .media-toolbar-secondary { 
    float: left; 
    height: 100%;
}
#media .media-toolbar-primary { 
    float: right; 
    height: 100%;
}
#media .media-actions{ 
    display: none; 
}
#media .attachments-browser .breadcrumb.breadcrumb-line {
    position: absolute;
    top: 0px;
    /*left: 215px;*/
    left: 0px;
    right: 300px;
    z-index: 100;
    height: 43px;
    padding: 0 16px;
    overflow: hidden;
    box-shadow: none;
}

.file-manager-list{ 
    flex: 0 0 12.5%;
    max-width: 12.5%;
    padding-right: .625rem;
    padding-left: .625rem;
     position: relative;
      padding: 8px;
       margin: 0; color: #444;
        cursor: pointer;
    list-style: none;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-sizing: border-box;
}
.file-manager-list.details .card {
    box-shadow: 0 0 0px 2px #fff, 0 1px 5px 3px #2096f3;
}


@media (min-width: 300px) and (max-width: 767px) {
    #media .modal-full.media-modal {
        position: fixed;
        top: 0;
        left: 0; 
        right: 0; 
        bottom: 0;
    }
    #media .attachments-browser .attachments, 
    #media .attachments-browser .media-toolbar, 
    #media .attachments-browser .uploader-inline {
        right: 0%;
        left: 0%;
    }
    #media .media-sidebar { 
        z-index: 1900; 
        max-width: 70%; 
        bottom: 120%;
        box-sizing: border-box; 
        padding-bottom: 0;
    }
    .file-manager-list{
        flex: 0 0 33.3333%; 
        max-width: 33.3333%;
        padding-right: .625rem;
        padding-left: .625rem;
    }
    #media .attachments-browser .breadcrumb.breadcrumb-line{
        right: 0;
    }
}
@media (min-width: 768px) and (max-width: 991px) {
    
    #media .attachments-browser .attachments, 
    #media .attachments-browser .media-toolbar, 
    #media .attachments-browser .uploader-inline { 
        right: 30%; 
    }
    #media .media-sidebar { 
        z-index: 1900; 
        max-width: 30%;  
        box-sizing: border-box; 
        padding-bottom: 0;
        bottom: 0;
    }
    .file-manager-list{
        flex: 0 0 33.333%; 
        max-width: 33.333%;
        padding-right: .625rem;
        padding-left: .625rem;
    }
    #media .attachments-browser .breadcrumb.breadcrumb-line{
        right: 0;
    }
}

@media (min-width: 992px) {
    
    .file-manager-list{
        flex: 0 0 20%;
        max-width: 20%;
        padding-right: .625rem;
        padding-left: .625rem;
    }
}
@media (min-width: 1200px) {
    .file-manager-list{
        flex: 0 0 16.65%;
        max-width: 16.65%;
        padding-right: .625rem;
        padding-left: .625rem;
    }
}
@media (min-width: 1440px) {
    .file-manager-list{
        flex: 0 0 16.66%;
        max-width: 16.66%;
        padding-right: .625rem;
        padding-left: .625rem;
    }
}
@media (min-width: 1600px) {
    .file-manager-list{
        flex: 0 0 14.28%;
        max-width: 14.28%;
        padding-right: .625rem;
        padding-left: .625rem;
    }
}

@media only screen and (max-width: 900px) {

    #media .attachments-browser .breadcrumb.breadcrumb-line {
        left: 0px;
    }
    #media .media-toolbar {
        left: 0px;
    }
    #media .media-frame-menu-heading {
        clip: rect(1px,1px,1px,1px);
        -webkit-clip-path: inset(50%);
        clip-path: inset(50%);
        height: 1px;
        overflow: hidden;
        padding: 0;
        width: 1px;
        word-wrap: normal!important;
    }
    #media .media-frame:not(.hide-menu) .media-frame-menu {
        position: static;
        width: 100%;
        height: 36px;
    }
    #media .attachments-browser .breadcrumb.breadcrumb-line, #media .breadcrumb.breadcrumb-line, #media .media-toolbar {
        position: relative;
        top: 0px;
    }
    #media .attachments-browser .attachments, #media .attachments-browser .uploader-inline {
        position: absolute;
        top: 120px;
    }
    #media .media-frame:not(.hide-menu) .media-frame-menu-toggle {
        display: inline-flex;
        align-items: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: -6px 0 0;
        padding: 5px 2px 0 12px;
        font-size: .875rem;
        font-weight: 600;
        text-decoration: none;
        background: 0 0;
        height: .1%;
        min-height: 40px;
        border: none;
    }
    #media .media-frame:not(.hide-menu) .media-menu {
        display: none;
        width: auto;
        max-width: 80%;
        overflow: auto;
        z-index: 2000;
        top: 36px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        bottom: auto;
        padding: 5px 0;
    }
    #media .media-frame:not(.hide-menu) .media-menu.visible {
        display: block;
    }
    #media .media-frame:not(.hide-menu) .media-frame-content, 
    #media .media-frame:not(.hide-menu) .media-frame-router, 
    #media .media-frame:not(.hide-menu) .media-frame-toolbar {
        left: 0;
    
    }
}
