.modal {
    display: none;
    position: fixed;
    z-index: 10;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}
  
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border: 1px solid #888;
    width: var(--modal-width);
    border-radius: 10px;
    max-height: 700px;
    overflow-y: scroll;

    .modal-content-delete {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 0 30px 0;

        .delete-image {
            font-size: 130px;
            color: #ebc4bc;
        }

        .delete-title {
            color: #eb7558;
            font-size: 25px;
            font-weight: 700;
            margin: 10px 0;
        }

        .delete-body {
            color: #414141;
            font-size: 14px;
            font-weight: 100;
        }
    }

    .modal-content-image {
        .image-asset {
            .image-asset-header {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;

                .image-asset-header-title {
                    flex-grow: 1;
                    color: #202020;
                }

                .image-asset-header-upload {
                    text-align: -webkit-right;

                    .image-asset-header-upload-description {
                        font-size: 12px;
                        font-weight: 100;
                        color: #959595;
                    }
                }
            }

            .image-asset-content {
                display: flex;
                flex-direction: row;
                border: 1px solid #dddddd;
                border-radius: 8px;
                min-height: 350px;

                .image-asset-content-preview {
                    border-top-left-radius: 8px;
                    border-bottom-left-radius: 8px;
                    background-color: #ebebeb;
                    flex-grow: 1;
                    position: relative;
                    display: flex;
                    flex-direction: row;
                    justify-content: center;
                    align-items: center;
                    padding: 10px;
                    width: 50%;

                    .image-preview {
                        width: 380px;
                        height: 380px;
                        object-fit: contain;
                    }

                    .preview-text {
                        position: absolute;
                        top: 0;
                        left: 0;
                        margin: 10px;
                        color: #949494;
                        font-size: 12px;
                        font-weight: 700;
                        text-transform: uppercase;
                    }
                }

                .image-asset-content-search {
                    border-top-right-radius: 8px;
                    border-bottom-right-radius: 8px;
                    flex-grow: 1;
                    padding: 10px;
                    width: 50%;
                    display: flex;
                    flex-direction: column;

                    .search-input {
                        flex-grow: 1;
                    }

                    .search-list {
                        display: flex;
                        flex-direction: column;
                        overflow-y: scroll;
                        height: 350px;
                        margin: 15px 10px;

                        .no-image-lists {
                            display: flex;
                            flex-direction: row;
                            justify-content: center;
                            align-items: center;
                            height: inherit;
                            font-size: 14px;
                            color: #737171;
                        }

                        .search-list-item {
                            display: flex;
                            flex-direction: row;
                            align-items: center;
                            margin: 3px 0;
                            padding: 10px;

                            .search-list-item-image-container {
                                width: 20%;

                                .search-list-item-image {
                                    width: 60px;
                                    height: 60px;
                                    object-fit: contain;
                                }
                            }

                            .search-list-item-detail {
                                width: 80%;

                                .image-complete {
                                    .image-name {
                                        word-wrap: break-word;
                                        font-weight: 100;
                                        color: #414141;
                                        font-size: 13px;
                                    }

                                    .image-size {
                                        color: #a4a4a4;
                                        font-size: 12px;
                                        margin: 3px 0 0 0;
                                    }
                                }

                                .image-uploading {
                                    .image-uploading-status {
                                        font-weight: 600;
                                        color: #8d8d8d;
                                        font-size: 14px;
                                        font-style: italic;
                                    }
                                }
                            }
                        }
                        .search-list-item:hover,
                        .search-list-item-active {
                            background-color: #fafafa;
                            border: 1px solid #dddddd;
                            border-radius: 8px;
                        }
                    }
                }
            }

            .image-asset-action {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: flex-end;
                padding: 5px 0;
            }
        }

        .image-preview-container {
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: center;
            min-height: 550px;
            height: auto;
            border: 1px solid #eeeeee;
            padding: 10px;

            .image-preview {
                width: 500px;
                max-height: 500px;
                object-fit: contain;
            }

            .no-image {
                color: #d6d6d6;
                text-align: center;

                .no-image-icon {
                    font-size: 100px;
                }

                .no-image-text {
                    margin-top: 0px;
                    margin-bottom: 20px;
                }

                .no-image-button {
                    padding: 8px 25px;
                    color: #ffffff;
                    background-color: #8e8e8e;
                    border-radius: 50px;
                    border: none;
                }
            }
        }
    }

    .modal-content-spacer {
        .spacer-preview-container {
            margin: 25px 0;
            box-shadow: 0px .1px 0px #c8c8c8, 0px 0px 2px #c8c8c8;
        }
    }
}

.modal-action {
    display: flex;
    flex-direction: row;
    justify-content: var(--modal-action-position);
    align-items: center;
}
