                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                    
/*--------------------------------------------------------*/
/* Attachment picker layout fixes                              */
.attachment-picker p {
  margin: 0;
  padding : 0;
}
.attachment-picker picture {
  max-width: 100%;
}
/*--------------------------------------------------------*/
/* Gallery attachmentboxes                                     */
.gallery p {
  margin: 0;
}
.gallery_attachmentbox {
  background: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 5px;
  float: left;
  margin: 5px;
  overflow: hidden;
  position: relative;
  width: 170px;
}
.gallery .current {
  background-color: #eeeeee;
  border-width: 3px;
  margin: 3px;
}
.gallery .current .gallery_attachmenttitle {
  font-weight: bold;
}
.gallery_attachmentbox:hover {
  background-color: #eeeeee;
}

.gallery_attachmenttitle {
  background: #fafafa;
  border-bottom: 1px dotted #E8E8E8;
  border-radius: 5px 5px 0px 0px;
  font-size: 85%;
  padding: 3px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery_attachmenttitle p {
  text-align: center;
  overflow: hidden;
}

.gallery_attachmentframe {
  padding: 5px;
  height: 160px;
  overflow: hidden;
  position: relative;
}

.gallery_attachmentframe a {
  display: block;
  text-align: center;
}

.gallery_attachmentbox img {
  max-height: 160px;
  max-width: 160px;
  width: auto;
}
.gallery_attachmentframe ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.gallery_attachmentframe li {
  margin: 0.5em 0 0.5em 20px;
  font-size: 0.8em;
}
.gallery_attachmentframe .mime {
  margin: 0 2px 0 -20px;
}
.gallery_attachmentframe .mime img {
  vertical-align: top;
}
.gallery_attachmentframe li .filename {
  display: inline-block;
  font-weight: bold;
  width: 138px;
  word-wrap: break-word;
}

/* Actions */
.gallery_actions {
  width: auto;
  position: absolute;
  bottom: 0px;
  right: 5px;
}
.gallery_actions .tool {
  background: none no-repeat 50% transparent;
  cursor: pointer;
  display: block;
  float: left;
  height: 20px;
  padding: 0 !important;
  overflow: hidden;
  text-indent: -1000em;
  opacity: 0.6;
  width: 16px;
}
.gallery_actions .tool:hover {
  opacity: 1;
}
.gallery_actions .select {
  background-image: url("../../resources/icons/silk/tick.png");
}
.gallery_actions .delete {
  background-image: url("../../resources/icons/silk/cross.png");
}
.gallery_actions .view {
  background-image: url("../../resources/icons/silk/link.png");
}
.gallery_actions .download {
  background-image: url("../../resources/icons/silk/arrow_down.png");
}
/*--------------------------------------------------*/
/* Upload form                                      */
.gallery_upload {
    width: 352px;
}
.gallery_upload, .gallery_upload:hover {
  background-color: #fafafa;
}

.gallery_upload .gallery_attachmenttitle {
  background-position: 1px center;
  background-image: url("../../resources/icons/silk/bullet_add.png");
  background-repeat: no-repeat;
  padding-left: 16px;
}
.gallery_upload .gallery_attachmentframe {
  height: auto;
}
.gallery_upload_input {
  margin-bottom: 10px;
}
.gallery_upload input[type="file"] {
  font-size: 86%;
  width: 342px;
}
.gallery_upload .buttonwrapper {
  margin: 0;
}
.gallery_upload .button,
.gallery_upload label {
  font-size: 86%;
}
.gallery_upload input[type="checkbox"] {
  vertical-align: text-bottom;
}
.gallery_upload label[for="commentinput"] {
  margin-top: 10px;
}

/* ------------------------------------ */
/* Buttons on top:                      */
.gallery_actions {
  top: 1px;
  right: 3px;
}
.gallery_attachmenttitle p {
  text-align: left;
  margin-right: 37px;
}
/* ------------------------------------ */
/* Cancel button                        */
.gallery_buttons {
  clear: both;
  margin: 5px;
}
