/* For ullWidgetGallery */

.ull_widget_gallery_container {
  position: relative;
}

.ull_widget_gallery_control {
  display: none;
  overflow: hidden;
  
}

.ull_widget_gallery_add_files {
  width: 172px;
  float: left;
}
 
.ull_widget_gallery_control_drop {
  margin-left: 15px;
  float: left;
  width: 316px; /* 152 * 2 + 12 */ 
}

.ull_widget_gallery_indicator {
  margin-top: 1em;
}


.ull_widget_gallery_preview {
  overflow: hidden;
  display: table; /* for vertical alignment in cells */
  position: relative;
  margin-bottom: 0;
  list-style: none;
}

.ull_widget_gallery_preview li {
  position: relative;
  background: white;
  box-shadow: 5px 5px 5px #bbb;
  -moz-box-shadow: 5px 5px 5px #bbb;
  -webkit-box-shadow: 5px 5px 5px #bbb;
  border-radius: 4px;
  -moz-border-radius: 4px;
  height: 150px;
  width: 150px; 
  border: 1px solid silver;
  margin: 0 12px 12px 0;
  padding: 0;
  float: left;  
}

.ull_widget_gallery_preview_image_container {
  width: 100%;
  height: 100%;
  display: table;
  position: relative;
  font-size: 0;
}

.ull_widget_gallery_preview_image_container:hover {
  cursor: move;
}

.ull_widget_gallery_preview_label {
  position: absolute;
  width: 100%;
  text-align: center;
  left: 0;
  bottom: 0;
  background-color: white;
  font-size: 16px;
  color: #555;
  max-height: 3em;
  overflow: hidden;
}

.ull_widget_gallery_preview_image {
  width: 100%;
  /* border: 1px solid pink; */
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.ull_widget_gallery_preview_image img {
  max-height: 140px;
  max-width: 140px;  
}

.ull_widget_gallery_actions {
  position: absolute;
  right: 0;
  top: 0;
  background-color: white;
  padding: .8em;
  margin: 2px;
  opacity: .8;
  display: none;
  border-radius: 8px;
  box-shadow: 0px 0px 5px grey;
}


.ull_widget_gallery_indicator {
  display: none;
  margin-left: 2em; 
}


/* colorbox tweaks */

#cboxClose {
  bottom: unset;
  top: 0;
  border-bottom-left-radius: 8px;
}

#cboxNext {
  left: unset;
  right: 0;
}

#cboxCurrent {
  display: none !important;
}

#cboxTitle {
  margin-left: 40px;
  width: auto;
  position: absolute;
  float: none !important;
  bottom: 0;
  width: calc(100% - 80px);
  background-color: white;
}

#cboxTitle input {
  width: calc(100% - 80px) !important;
}
