
.selectImageBox {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: ~"calc( 100vh - 145px )";
    padding: 0 5px;

    * {
      font-size: 17px;
    }

    > .dropFileArea {
      padding: 0;
      text-align: center;
      border: 3px dashed @dropFileAreaBackgroundOnDragEnter;
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 222px;
      
      &.dragEntered {
        background: #ccc;
      }
      
      span {
        white-space: nowrap;
        margin-left: 10px;
      }
      
      > .selectImageLinks {
        line-height: 25px;
        padding: 10px 20px;

        > span {
          margin-left: 8px;
          a {
            text-decoration: underline;
          }
        }
      }
      
      > .imageURLContainer {
        white-space: nowrap;
        line-height: 40px;
        text-align: left;
        margin: auto 28px;
        flex: 2;

        input[type="text"] {
          height: 35px;
          min-width: 95%;
          width: 100%;
          max-width: ~"calc( 100vw - 140px )";
          line-height: 30px;
          margin: 0;
        }
        
        a.btn.actionIcon {
          border: 1px solid #ccc;
          border-radius: 3px;
        }
        
        a.btn.actionIcon i {
          font-size: 25px;
        }
      }
      
      > .backButton {
        margin: 10px 0 0 28px;
        position: relative;
        left: 0;
        text-align: left;
        text-decoration: underline;
        height: 40px;
        line-height: 40px;
        flex: 1;
      }
      > .uploadContainer {
        width: 100%;
        .fileHidden {
          overflow: hidden;
        }
        > .fileHidden input[type="file"] {
          display: none;
        }
        > .progressBar {
          height: 30px;
          margin: 10px;
        }
        > .progressBar .progress {
          width: ~"calc( 100% - 32px )";
          margin: 5px 0;
          height: 20px;
        }
      }

      .selectedImagePreview {
        height: 222px;
        max-height: 100%;
        width: 100%;

        img {
          position: relative;
          display: block;
          max-height: 100%;
          max-width: 100%;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
      }
    }
    
    > .removeFile {
      margin: 10px 0 0;
      text-align: right;
      a {
        font-size: 0.8em;
      }
    }
    
    > .selectImageAlign {
      padding: 10px 0;
      line-height: 40px;
      height: auto;
      margin-top: 15px;
    
      > .btn-group {
        padding: 0 10px;

        a.btn {
          margin: 0 -3px;
        }
      }
    }
}

.dropFileWindow[role=dialog]>.cke_dialog {
  max-height: 100vh !important;
  max-width: 100vw !important;
  width: auto;

  .cke_dialog_body {
    display: flex;
    flex-direction: column;
    justify-content: center;

    .cke_dialog_title {
      line-height: 20px;
    }

    .cke_dialog_contents {
      height: ~"calc( 100% - 35px )";
      width: auto;

      .cke_dialog_contents_body {
        overflow: hidden;
        display: table-cell;
        max-width: 100vw;
        height: 100% !important;

        .cke_dialog_ui_vbox_child,
        .cke_dialog_page_contents,
        table {
          height: 100%;
        }
      }
      
      .uiActionBorder {
        height: 36px;
      }
    }
  }
}
@media (max-width: 767px) {
  .dropFileWindow[role=dialog]>.cke_dialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: 100vw !important;

    .cke_dialog_body {
      height: 100vh;
      width: ~"calc( 100vw - 6px )";

      .cke_dialog_contents {
        height: ~"calc( 100vh - 35px )";
      }
    }  
  }
}
@media ( max-height : 480px) {
  .selectImageBox > .dropFileArea {
    min-height: 120px;
  }
  .selectImageBox .dropFileArea .selectImageLinks {
    line-height: normal;
  }
  .selectImageBox > .dropFileArea > .backButton {
    margin: 0 0 0 28px;
  }
}
@media (max-height: 380px) {
  .dropFileWindow[role=dialog] .cke_dialog_contents_body {
    padding: 5px;
  }
}
