                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                
/*--------------------------------------------------------*/
/* 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: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  float: left;
  margin: 5px;
  overflow: hidden;
  position: relative;
  width: 170px;
}
/* Broken IE6 box model, add the border width to the total width. */
* html .gallery_attachmentbox {
  width: 172px;
}
.gallery .current {
  background-color: #eee;
  border-width: 3px;
  margin: 3px;
}
/* Broken IE6 box model, add the border width to the total width. */
* html .gallery .current {
  width: 176px;
}
.gallery .current .gallery_attachmenttitle {
  font-weight: bold;
}
.gallery_attachmentbox:hover {
  background-color: #eee;
}

.gallery_attachmenttitle {
  background: #F3F3F3;
  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;
}
* html .gallery_upload {
  width: 354px;
}
.gallery_upload, .gallery_upload:hover {
  background-color: #F3F3F3;
}

.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 form {
  height: 160px;
}
.gallery_upload .xHint {
  text-transform: none !important;
}
.gallery_upload input.attachment {
  font-size: 83.3%;
  margin: 0; /* Overrides viewers/attachments.css */
  padding: 0; /* Overrides viewers/attachments.css */
  width: 342px;
}
.gallery_upload .buttonwrapper {
  margin: 0;
}
.gallery_upload .button {
  font-size: .65em;
}

/* ------------------------------------ */
/* 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;
}
