/* ---------------------------------------
/* Fine Uploader Gallery View Styles
/* ---------------------------------------*/

/* Buttons
------------------------------------------ */
.qq-gallery .qq-btn {
  float: right;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

/* qq uploader header
------------------------------------------ */
div.qq-uploader-header {

}
div.qq-uploader-header::after {
  content: ''; display: block; clear: both;
}

/* Upload Button
------------------------------------------ */
.qq-gallery {
  position: relative;
}
.qq-gallery .qq-upload-button {
  /* position: absolute !important;
  right: 20px;
  top: 20px; */
  display: block;
  float: right;
  width: 80px;
  padding: 5px 10px;
  font-size: 14px;
  letter-spacing: -0.05em;
  text-align: center;
  background: #00ABC7;
  color: #FFFFFF;
  border-radius: 2px;
  border: 1px solid #37B7CC;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.37) inset,
  1px 0 1px rgba(255, 255, 255, 0.07) inset,
  0 1px 0 rgba(0, 0, 0, 0.36),
  0 -2px 12px rgba(0, 0, 0, 0.08) inset;
  z-index: 5;
}
.qq-gallery .qq-upload-button-hover {
  background: #33B6CC;
}
.qq-gallery .qq-upload-button-focus {
  outline: 1px dotted #000000;
}

/* 상태 알림
------------------------------------------ */
.qq-notice {
  position: absolute;
  left: 20px;
  top: 12px;
  display: block;
  /* float: left; */
  width: auto !important;
  max-width: 80%;
  font-size: 14px;
  text-align: left;
  letter-spacing: -0.05em;
  color: #999;
  /* opacity: 0.25;
  filter: alpha(opacity=25); */
  z-index: 4;
}

/* Drop Zone
------------------------------------------ */
.qq-gallery.qq-uploader {
  position: relative;
  margin-top: 5px;
  padding: 1vw;
  /* min-height: 150px; */
  /* max-height: 490px; */
  overflow-y: hidden;
  width: 100%;
  border-radius: 5px;
  border: 1px dashed #aaa;
  background-color: #fafafa;
}
html.mobile .qq-gallery.qq-uploader {
	max-width: 90vw;	
}
.qq-gallery.qq-uploader:before {
  content: attr(qq-drop-area-text) " ";
  position: absolute;
  font-size: 14px;
  left: 200px;
  /* width: 100%; */
  width: auto !important;
  text-align: left;
  top: 25px;
  opacity: 0.25;
  filter: alpha(opacity=25);
}
.qq-gallery .qq-upload-drop-area, .qq-upload-extra-drop-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 30px;
  z-index: 2;
  background: #F9F9F9;
  border-radius: 4px;
  text-align: center;
}
.qq-gallery .qq-upload-drop-area span {
  display: block;
  position: absolute;
  top: 50%;
  width: 100%;
  margin-top: -8px;
  font-size: 16px;
}
.qq-gallery .qq-upload-extra-drop-area {
  position: relative;
  margin-top: 50px;
  font-size: 16px;
  padding-top: 30px;
  height: 20px;
  min-height: 40px;
}
.qq-gallery .qq-upload-drop-area-active {
  background: #FDFDFD;
  border-radius: 4px;
}
.qq-gallery .qq-upload-list {
  margin: 0;
  padding: 10px 0 0;
  list-style: none;
  max-height: 450px;
  overflow-y: auto;
  clear: both;
  box-shadow: none;
  
  display: flex;
  justify-content: flex-start;
  align-items: center;

  z-index: 5;
}


/* Uploaded Elements
------------------------------------------ */
.qq-gallery .qq-upload-list li {
  position: relative;
  width: 150px;
  /* max-width: 120px; */
  /* margin: 0 25px 25px 0; */
  padding: 0;
  line-height: 16px;
  font-size: 13px;
  color: #424242;
  background-color: #FFFFFF;
  border-radius: 2px;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.22);
  vertical-align: top;

  /* to ensure consistent size of tiles - may need to change if qq-max-size attr on preview img changes */
  height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 5;
}
.qq-gallery .qq-upload-list li + li {
margin-left: 25px;
}

.qq-gallery .qq-upload-spinner,
.qq-gallery .qq-upload-size,
.qq-gallery .qq-upload-retry,
.qq-gallery .qq-upload-failed-text,
.qq-gallery .qq-upload-delete,
.qq-gallery .qq-upload-pause,
.qq-gallery .qq-upload-continue {
  display: inline;
}
.qq-gallery .qq-upload-retry:hover,
.qq-gallery .qq-upload-delete:hover,
.qq-gallery .qq-upload-pause:hover,
.qq-gallery .qq-upload-continue:hover {
  background-color: transparent;
}
.qq-gallery .qq-upload-delete,
.qq-gallery .qq-upload-pause,
.qq-gallery .qq-upload-continue,
.qq-gallery .qq-upload-cancel {
  cursor: pointer;
}
.qq-gallery .qq-upload-delete,
.qq-gallery .qq-upload-pause,
.qq-gallery .qq-upload-continue {
  border:none;
  background: none;
  color: #00A0BA;
  font-size: 12px;
  padding: 0;
}
/* to ensure consistent size of tiles - only display status text before auto-retry or after failure */
.qq-gallery .qq-upload-status-text {
  color: #333333;
  font-size: 12px;
  padding-left: 3px;
  padding-top: 2px;
  width: inherit;
  display: none;
  width: 108px;
}
.qq-gallery .qq-upload-fail .qq-upload-status-text {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-x: hidden;
  display: block;
}
.qq-gallery .qq-upload-retrying .qq-upload-status-text {
  display: inline-block;
}
.qq-gallery .qq-upload-retrying .qq-progress-bar-container {
  display: none;
}

.qq-gallery .qq-upload-cancel {
  background-color: #525252;
  color: #F7F7F7;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 12px;
  border: none;
  height: 22px;
  width: 22px;
  padding: 4px;
  position: absolute;
  right: -5px;
  top: -6px;
  margin: 0;
  line-height: 17px;
}
.qq-gallery .qq-upload-cancel:hover {
  background-color: #525252;
}
.qq-gallery .qq-upload-retry {
  cursor: pointer;
  position: absolute;
  top: 30px;
  left: 50%;
  margin-left: -31px;
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.37) inset,
              1px 0 1px rgba(255, 255, 255, 0.07) inset,
              0 4px 4px rgba(0, 0, 0, 0.5),
              0 -2px 12px rgba(0, 0, 0, 0.08) inset;
  padding: 3px 4px;
  border: 1px solid #d2ddc7;
  border-radius: 2px;
  color: inherit;
  background-color: #EBF6E0;
  z-index: 1;
}
.qq-gallery .qq-upload-retry:hover {
  background-color: #f7ffec;
}

.qq-gallery .qq-file-info {
  width: 100%;
  padding: 10px 6px 4px;
  margin-top: -3px;
  border-radius: 0 0 2px 2px;
  text-align: left;
  overflow: hidden;
}

.qq-gallery .qq-file-info .qq-file-name {
  position: relative;
}

.qq-gallery .qq-upload-file {
  display: block;
  margin-right: 0;
  margin-bottom: 3px;
  width: auto;

  /* to ensure consistent size of tiles - constrain text to single line */
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-x: hidden;
}
.qq-gallery .qq-upload-spinner {
  display: inline-block;
  background: url("fine-uploader-images/loading.gif");
  position: absolute;
  left: 50%;
  margin-left: -7px;
  top: 53px;
  width: 15px;
  height: 15px;
  vertical-align: text-bottom;
}
.qq-gallery .qq-drop-processing {
  display: block;
}
.qq-gallery .qq-drop-processing-spinner {
  display: inline-block;
  background: url("fine-uploader-images/processing.gif");
  width: 24px;
  height: 24px;
  vertical-align: text-bottom;
}
.qq-gallery .qq-upload-failed-text {
  display: none;
  font-style: italic;
  font-weight: bold;
}
.qq-gallery .qq-upload-failed-icon {
  display:none;
  width:15px;
  height:15px;
  vertical-align:text-bottom;
}
.qq-gallery .qq-upload-fail .qq-upload-failed-text {
  display: inline;
}
.qq-gallery .qq-upload-retrying .qq-upload-failed-text {
  display: inline;
}
.qq-gallery .qq-upload-list li.qq-upload-success {
  background-color: #F2F7ED;
}
.qq-gallery .qq-upload-list li.qq-upload-fail {
  background-color: #F5EDED;
  box-shadow: 0 0 1px 0 red;
  border: 0;
}
.qq-gallery .qq-progress-bar {
  display: block;
  background: #00abc7;
  width: 0%;
  height: 15px;
  border-radius: 6px;
  margin-bottom: 3px;
}

.qq-gallery .qq-total-progress-bar {
  height: 0px;
  border-radius: 9px;
}

.qq-gallery .qq-total-progress-bar-container {
  margin-left: 9px;
  display: inline;
  float: right;
  width: 500px;
}

.qq-gallery .qq-upload-size {
  float: left;
  font-size: 11px;
  color: #929292;
  margin-bottom: 3px;
  margin-right: 0;
  display: inline-block;
}

.qq-gallery INPUT.qq-edit-filename {
  position: absolute;
  opacity: 0;
  filter: alpha(opacity=0);
  z-index: -1;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
}

.qq-gallery .qq-upload-file.qq-editable {
  cursor: pointer;
  margin-right: 20px;
}

.qq-gallery .qq-edit-filename-icon.qq-editable {
  display: inline-block;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
}

.qq-gallery INPUT.qq-edit-filename.qq-editing {
  position: static;
  height: 28px;
  width: 100%;
  width: -moz-available;
  padding: 0 8px;
  margin-bottom: 3px;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 13px;

  opacity: 1;
  filter: alpha(opacity=100);
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
}

.qq-gallery .qq-edit-filename-icon {
  display: none;
  background: url("fine-uploader-images/edit.gif");
  width: 15px;
  height: 15px;
  vertical-align: text-bottom;
}
.qq-gallery .qq-delete-icon {
  background: url("fine-uploader-images/trash.gif");
  width: 15px;
  height: 15px;
  vertical-align: sub;
  display: inline-block;
}
.qq-gallery .qq-retry-icon {
  background: url("fine-uploader-images/retry.gif");
  width: 15px;
  height: 15px;
  vertical-align: sub;
  display: inline-block;
  float: none;
}
.qq-gallery .qq-continue-icon {
  background: url("fine-uploader-images/continue.gif");
  width: 15px;
  height: 15px;
  vertical-align: sub;
  display: inline-block;
}
.qq-gallery .qq-pause-icon {
  background: url("fine-uploader-images/pause.gif");
  width: 15px;
  height: 15px;
  vertical-align: sub;
  display: inline-block;
}

.qq-gallery .qq-hide {
  display: none;
}


/* Thumbnail
------------------------------------------ */
.qq-gallery .qq-in-progress .qq-thumbnail-wrapper {
  /* makes the spinner on top of the thumbnail more visible */
  opacity: 0.5;
  filter: alpha(opacity=50);
}
.qq-gallery .qq-thumbnail-wrapper {
  overflow: hidden;
  position: relative;

  /* to ensure consistent size of tiles - should match qq-max-size attribute value on qq-thumbnail-selector IMG element */
  height: 120px;
  width: 120px;
}
.qq-gallery .qq-thumbnail-selector {
  border-radius: 2px 2px 0 0;
  bottom: 0;

  /* we will override this in the :root thumbnail selector (to help center the preview) for everything other than IE8 */
  top: 0;

  /* center the thumb horizontally in the tile */
  margin:auto;
  display: block;
}

/* hack to ensure we don't try to center preview in IE8, since -ms-filter doesn't mimic translateY as expected in all cases */
:root *> .qq-gallery .qq-thumbnail-selector {
  /* vertically center preview image on tile */
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
}

/* <dialog> element styles */
.qq-gallery.qq-uploader DIALOG {
  margin: 0 auto;
  padding: 20px;
  display: none;
}

.qq-gallery.qq-uploader DIALOG[open] {
  display: block;
}

.qq-gallery.qq-uploader DIALOG {
  display: none;
}

.qq-gallery.qq-uploader DIALOG[open] {
  display: block;
}

.qq-gallery.qq-uploader DIALOG .qq-dialog-buttons {
  text-align: center;
  padding-top: 10px;
}

.qq-gallery.qq-uploader DIALOG .qq-dialog-buttons BUTTON {
  margin-left: 5px;
  margin-right: 5px;
}

.qq-gallery.qq-uploader DIALOG .qq-dialog-message-selector {
  padding-bottom: 10px;
}

.qq-gallery .qq-uploader DIALOG::backdrop {
  background-color: rgba(0, 0, 0, 0.7);
}

/* alert
------------------------------------------ */
.qq-alert {
  position: relative;
margin: 10px 0;
  padding: 15px 40px;
text-align: center;
font-size: 16px;
border-radius: 5px;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.22);
color: white;
background-size: 20px;
background-position: 10px center;
background-repeat: no-repeat;
}
html.mobile .qq-alert {
	max-width: 90vw;
}

.qq-alert-success {
background-image: url(fine-uploader-images/icon_check.png);
background-color: #2db351;
}


.qq-alert-warning {
background-image: url(fine-uploader-images/icon_excl.png);
background-color: #ecb83c;
}

.qq-alert-error {
background-image: url(fine-uploader-images/icon_excl.png);
background-color: #ec3d3c;
}

.qq-button-close-alert {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  border-radius: 50%; border: none;
  background: none;
  background-image: url(fine-uploader-images/icon_circle_x.png);
  background-repeat: no-repeat;
  background-size: 20px; background-position: center;
  cursor: pointer;
}

/* UI 관련 스타일 
------------------------------------------------------------------------- */
.qq-manual-upload-extra-button {
  background: none;
  border: none;
  padding: 10px;
  border-radius: 3px;
  background-color: #0c399b;
  color: white;
  cursor: pointer;
}

/* 업로드 진행상태 */
.qq-progress-container {
  position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 9;
  background-color: rgba(0, 0, 0, 0.5);
}
.qq-progress-box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 30px 20px; width: 100%; max-width: 350px; 
  border-radius: 5px; background-color: white;
  box-shadow: 0px 2px 7px 0px rgba(0,0,0,0.5);
}
.qq-progress-box > * + * { margin-top: 20px; }
.qq-progress-item { position: relative; padding-top: 20px; }
.qq-progress-item-title {
  position: absolute; left: 0px; top: -5px;
}
.qq-progress-item-progress { position: relative; width: 100%; height: 10px; border-radius: 3px; background-color: #ccc; }
.qq-progress-item-progress-bar { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-image: url("fine-uploader-images/bg_ptrn_progress.png"); background-repeat: repeat-x; background-size: 30px; }