﻿/* Photo upload tool */
.photo-upload {
    margin-top: 10px;
}

    .photo-upload h4, .photo-upload p {
        margin: 0;
        font-family: 'Open Sans', sans-serif;
        font-size: 16px;
        color: #000;
    }

    .photo-upload h4 {
        font-weight: bold;
    }

    .photo-upload p {
        font-weight: normal;
    }

        .photo-upload p.error {
            color: #b94a48;
            font-weight: bold;
        }

    .photo-upload .v2-btn {
        cursor: pointer;
    }

    .photo-upload .photo-upload-panel {
        border: 1px solid #cecece;
        border-radius: 4px;
        padding: 30px 20px;
    }

    .photo-upload .flex-center {
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
        -webkit-justify-content: center;
        justify-content: center;
    }

    .photo-upload .panel {
        margin: 20px 0;
    }

    /* Current photos */
    .photo-upload .current-photos {
    }

        .photo-upload .current-photos h4,
        .photo-upload .current-photos p {
            margin-bottom: 20px;
        }

            .photo-upload .current-photos p:last-child {
                margin-bottom: 0;
            }

        .photo-upload .current-photos #edit-photos-btn {
            margin-bottom: 20px;
        }

        .photo-upload .current-photos .photos-list {
            display: -webkit-flex;
            display: flex;
            -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
            margin-bottom: 20px;
        }

        .photo-upload .current-photos .image-container {
            margin-bottom: 10px;
            height: 100%;
        }

        .photo-upload .current-photos .photo {
            width: calc(33.333333% - 10px);
            -webkit-flex-direction: column;
            flex-direction: column;
            margin: 0 15px 20px 0;
        }

            .photo-upload .current-photos .photo:nth-child(3n+3) {
                margin-right: 0;
            }

    /* Drop area */
    .photo-upload .drop-area {
        background: #fbfbfb;
        border: 2px dashed #cecece;
        border-radius: 4px;
        padding: 20px;
        min-height: 200px;
        box-sizing: border-box;
    }

        .photo-upload .drop-area.mini {
            width: 50%;
            min-height: initial;
        }

            .photo-upload .drop-area.mini h4,
            .photo-upload .drop-area.mini p,
            .photo-upload .drop-area.mini .v2-btn {
                font-size: 14px;
            }

        .photo-upload .drop-area.dragover {
            background: #fffbe8;
            border: 2px dashed #fea918;
        }

        .photo-upload .drop-area .inner {
            -webkit-flex-direction: column;
            flex-direction: column;
        }

            .photo-upload .drop-area .inner h4 {
                margin: 0 0 15px 0;
            }

    /* Upload progress */
    .photo-upload .upload-progress .uploads {
        margin-bottom: 60px;
        text-align: center;
    }

    .photo-upload .upload-progress .upload {
        margin-bottom: 30px;
        -webkit-flex-direction: column;
        flex-direction: column;
    }

        .photo-upload .upload-progress .upload img {
            margin-bottom: 10px;
            max-width: 50%;
        }

        .photo-upload .upload-progress .upload .progress {
            margin-bottom: 10px;
            border: 1px solid #2e8184;
            border-radius: 4px;
            height: 8px;
            width: 40%;
            overflow: hidden;
        }

            .photo-upload .upload-progress .upload .progress .bar {
                background: #1ea4ad;
                height: 100%;
            }

    /* Preview & edit photos */
    .photo-upload .preview-photos {
        -webkit-flex-direction: column;
        flex-direction: column;
    }

        .photo-upload .preview-photos .photos-list {
            width: 100%;
            margin: 40px 0 60px;
        }

        .photo-upload .preview-photos .photo-label {
            margin-bottom: 5px;
        }

        .photo-upload .preview-photos .photo-item {
            margin-bottom: 30px;
        }

            .photo-upload .preview-photos .photo-item:last-child {
                margin-bottom: 0;
            }

        .photo-upload .preview-photos textarea {
            margin-top: 10px;
            resize: none;
            min-height: 80px;
            padding: 5px;
        }

        /* Preview */
        .photo-upload .preview-photos .preview-panel {
            display: -webkit-flex;
            display: flex;
        }

        .photo-upload .preview-photos .image-col {
            width: 45%;
            margin-right: 5%;
        }

        .photo-upload .preview-photos .desc-col {
            width: 50%;
            display: -webkit-flex;
            display: flex;
            -webkit-flex-direction: column;
            flex-direction: column;
        }

        .photo-upload .preview-photos .photo-buttons {
            display: -webkit-flex;
            display: flex;
            margin: 20px 0 2px;
        }

        .photo-upload .preview-photos .photo-buttons .v2-btn {
            padding: 9px;
            width: calc(50% - 5px);
        }

            .photo-upload .preview-photos .photo-buttons .v2-btn:first-child,
            .photo-upload .preview-photos .edit-panel .edit-buttons .v2-btn:first-child {
                margin-right: 10px;
            }

        /* Edit */
        .photo-upload .preview-photos .edit-panel {
            width: 80%;
            margin: 0 auto;
            -webkit-flex-direction: column;
            flex-direction: column;
        }

            .photo-upload .preview-photos .edit-panel .image-container {
                width: 100%;
            }

            .photo-upload .preview-photos .edit-panel .crop-container {
                width: 100%;
                -webkit-flex-direction: column;
                flex-direction: column;
            }

                .photo-upload .preview-photos .edit-panel .crop-container .v2-btn {
                    margin: 20px 0;
                }

            .photo-upload .preview-photos .edit-panel .crop-area {
                overflow: hidden;
                background: #fbfbfb;
            }

            .photo-upload .preview-photos .edit-panel .edit-controls {
                margin-top: 20px;
                width: 100%;
                box-sizing: border-box;
                -webkit-flex-wrap: wrap;
                flex-wrap: wrap;
            }

            .photo-upload .preview-photos .edit-panel .edit-control {
                margin-bottom: 20px;
                width: 120px;
                -webkit-flex-direction: column;
                flex-direction: column;
            }

            .photo-upload .preview-photos .edit-panel .edit-btn {
                margin-bottom: 10px;
                width: 60px;
                height: 60px;
                border: 2px solid #fea918;
                border-radius: 100%;
                display: block;
                background-position: center;
                background-repeat: no-repeat;
                background-size: 60% 60%;
                background-color: #ffd30c;
                cursor: pointer;
            }

                .photo-upload .preview-photos .edit-panel .edit-btn:hover {
                    background-color: #ffe87c;
                }

                .photo-upload .preview-photos .edit-panel .edit-btn.crop {
                    background-image: url('../images/photo-upload/crop.svg');
                }

                .photo-upload .preview-photos .edit-panel .edit-btn.rotate-right {
                    background-image: url('../images/photo-upload/rotate-right.svg');
                }

                .photo-upload .preview-photos .edit-panel .edit-btn.rotate-left {
                    background-image: url('../images/photo-upload/rotate-left.svg');
                }

                .photo-upload .preview-photos .edit-panel .edit-btn.rotate-180 {
                    background-image: url('../images/photo-upload/rotate-180.svg');
                }

            .photo-upload .preview-photos .edit-panel .edit-desc {
                width: 100%;
                margin-bottom: 20px;
                display: -webkit-flex;
                display: flex;
                -webkit-flex-direction: column;
                flex-direction: column;
            }

            .photo-upload .preview-photos .edit-panel .error {
                margin-bottom: 20px;
            }

        .photo-upload .preview-photos .submit-btn,
        .photo-upload .preview-photos .submit-error {
            -webkit-align-self: flex-end;
            align-self: flex-end;
        }

        .photo-upload .preview-photos .submit-error {
            margin-bottom: 20px;
        }

.venue-submit-btn {
    text-align: right;
}


/* ================================================== */
/*                    RESPONSIVE                      */
/* ================================================== */

/* Tablet */
@media (max-width: 768px) {

    .photo-upload .current-photos .photo {
        width: 100%;
        margin-right: 0;
    }

    .photo-upload .current-photos .photos-list {
        margin-bottom: 10px;
    }

    .photo-upload .drop-area .inner h4 {
        display: none;
    }

    .photo-upload .drop-area.mini {
        width: 100%;
    }

        .photo-upload .drop-area.mini p {
            margin: 0 0 15px 0;
        }

    .photo-upload .upload-progress .upload img {
        max-width: 100%;
    }

    .photo-upload .upload-progress .upload .progress {
        width: 80%;
    }

    .photo-upload .preview-photos .preview-panel {
        -webkit-flex-direction: column;
        flex-direction: column;
    }

    .photo-upload .preview-photos .image-col {
        width: 100%;
        margin: 0 0 10px;
    }

    .photo-upload .preview-photos .desc-col {
        width: 100%
    }

    .photo-upload .preview-photos .edit-panel {
        width: 100%;
    }

        .photo-upload .preview-photos .edit-panel .edit-controls {
            padding: 0 15px;
        }

        .photo-upload .preview-photos .edit-panel .edit-buttons {
            width: 100%;
        }

        .photo-upload .preview-photos .edit-panel .crop-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #fbfbfb;
            z-index: 99999;
            box-sizing: border-box;
            padding: 10px 0;
        }

        .photo-upload .preview-photos .edit-panel .crop-area {
            background: transparent;
            margin-bottom: 10px;
        }
}

/* Mobile */
@media (max-width: 480px) {

    .photo-upload .preview-photos .submit-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .photo-upload .preview-photos .edit-panel .edit-buttons .v2-btn {
        padding: 9px;
        width: calc(50% - 5px);
    }

    .photo-upload .mobile-hide {
        display: none;
    }

    .venue-submit-btn .v2-btn {
        width: 100%;
    }
}
