﻿.font-size-smaller { font-size: smaller; }

.modal-full {
    margin: 10px;
    min-width: 100%;
}
    .modal-full .modal-content {
        min-height: 100vh;
    }

.modal-scrollable-column {
    height: calc(100vh - 260px);
    overflow-y: auto;
}

.modal .modal .modal-scrollable-column {
    max-height: calc(100vh - 260px)
}

/* Dropzone Settings */
form.dropzone {
    background: #FFF;
    border: 2px dashed #0087F7;
    border-radius: 5px;
    margin: 10px 0;
}

    form.dropzone .dz-message {
        font-size: 20px;
        font-weight: 400;
    }

/* Attachments */
.attachment {
    position: relative;
    float: left;
    padding: 8px;
    margin: 0;
    color: #444;
    cursor: pointer;
    text-align: center;
}

.attachment-preview {
    background: #EEE;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, .1), inset 0 0 0 1px rgba(0, 0, 0, .05);
    cursor: pointer;
    position: relative;
}

    .attachment-preview:before {
        content: "";
        display: block;
        padding-top: 100%;
    }

    .attachment-preview.selected {
        box-shadow: 0 0 0 5px #0073AA;
    }

.dz-complete .media-progress-bar {
    display: none;
}

.attachment-preview .media-progress-bar {
    position: absolute;
    top: 50%;
    left: 15%;
    width: 70%;
    margin: -5px 0 0;
    height: 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .1);
}

.media-progress-bar div {
    height: 10px;
    min-width: 20px;
    width: 0%;
    background: #0073AA;
    border-radius: 10px;
    transition: width 300ms ease-in-out;
}

.attachment-thumbnail {
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 1;
    transition: opacity .1s;
}

    .attachment-thumbnail img {
        position: absolute;
    }

    .attachment-thumbnail:after {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
        overflow: hidden;
    }

    .attachment-thumbnail .centered img {
        transform: translate(-50%, -50%);
    }

.attachment .attachment-thumbnail img {
    top: 0;
    left: 0;
}

.attachment .landscape img {
    max-height: 100%;
}

.attachment .portrait img {
    max-width: 100%;
}

.centered {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translate(50%,50%);
}

.attachment .filename {
    background: rgba(255, 255, 255, .8);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
    font-size: 12px;
    font-weight: 600;
    max-height: 100%;
    overflow: hidden;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

    .attachment .filename div {
        padding: 5px 10px;
    }

.attachments-browser .attachment-toolbar {
    /*height: 50px;
    padding: 8px;*/
}

/* Media Attachment */
.media-attachment { position: relative; }

    .media-attachment .media-preview { background: #EEE; position: relative; }

    .media-attachment .media-preview:before{ content: ""; display: block; padding-top: 100%; }

    .media-attachment .media-thumbnail {
        overflow: hidden;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        opacity: 1;
        transition: opacity .1s;
    }

    .media-attachment .centered {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: translate(50%,50%);
    }

    .media-attachment .media-thumbnail .centered img { transform: translate(-50%, -50%); }

    .media-attachment .media-thumbnail img { max-height: 100%; position: absolute; top: 0; left: 0; }
    .media-attachment .media-thumbnail .media-filename {
        background: rgba(255, 255, 255, .8);
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
        font-size: 12px;
        font-weight: 600;
        max-height: 100%;
        overflow: hidden;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        text-align: center;
        padding: .5rem 0;
    }

/* Media Details Panel */
.categories-list {
    border: 1px solid #ccc;
    margin-bottom: .25rem;
    min-height: 42px;
    max-height: 200px;
    overflow: auto;
    padding: .25rem .5rem;
    font-size: smaller;
}

/* Banner Editor Template */
.banner {
    padding: 8px;
    margin: 0;
    color: #444;
    text-align: center;
    width: 250px;
}

.banner-preview {
    background: #EEE;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, .1), inset 0 0 0 1px rgba(0, 0, 0, .05);
    /*cursor: pointer;*/
    position: relative;
}

    .banner-preview:before {
        content: "";
        display: block;
        padding-top: 100%;
    }

.banner-thumbnail {
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 1;
    transition: opacity .1s;
}

    .banner-thumbnail:after {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1);
        overflow: hidden;
    }

    .banner-thumbnail .centered img,
    .banner-thumbnail .centered .banner-title {
        transform: translate(-50%, -50%);
    }

    .banner-thumbnail img {
        max-height: 100%;
        position: absolute;
        top: 0;
        left: 0;
    }

.banner .controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    max-height: 100%;
    word-wrap: break-word;
    text-align: center;
    font-weight: 600;
    background: rgba(255, 255, 255, .8);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
    z-index: 1000;
}