.clear {
  clear: both;
}

h1 {
  margin: 0;
}

.nodisplay {display: none;}

.document {position: relative;}
.content-edit, .gallery-edit {
    font-family: Arial, sans-serif;
    font-size: medium;
}
#user-panel {
  position: absolute;
  left: 10px;
  top: 10px;
}
.edit-button {
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  top: -32px;
  right: 50px;
}
.edit-button img {width: 32px; height: 32px; margin: 16px; border: none}

#login-panel label, #login-panel input {
  display: block;
}

#login-panel label {
  float: left;
  width: 150px;
}

#login-panel input.submit {
  margin-left: auto;
  margin-right: 35px;
}

#user-panel input {
  margin: auto;
}

#user-panel td.pop_content .dialog_buttons {
  text-align: center;
}

#user-panel .generic_dialog {
  width: auto;
  position: relative;
}

.gallery ul {
  padding: 0;
  margin: auto;
  width: 810px;/
}

.gallery li {
  list-style: none;
  width: 250px;
  float: left;
  display: block;
  padding: 10px;
  position: relative;
  height: 250px;
}

.gallery .delete {
  position: absolute;
  left: 212px;
  top: 162px;
}

.gallery .delete img {
  border: none;
}

.gallery img {
  border: 1px solid black;
}

.gallery .name {
  text-align: center;
  font-family: Arial;
}

.gallery-edit label, .gallery-edit input, .gallery-edit textarea {
  display: block;
  float: left;
}

.gallery-edit .submit {
  clear: left;
}

.gallery-edit label {
  float: left;
  width: 200px;
  clear: left;
}

.flash {
    font-family: sans-serif;
    font-weight: bold;
    font-size: 12px;
}

.flash-success {
    color: #080;
}

.flash-error {
    color: #b11;
}


/* from facebook */ 
.generic_dialog { height:0; left:0; overflow:visible; position:fixed; /*dw*/ top:0; width:100%; z-index:101; }
#generic_dialog_iframe { left:0; position:absolute; top:0; z-index:3; }
.generic_dialog .generic_dialog_popup { height:0; overflow:visible; position:relative; }
.generic_dialog div.dialog_loading     { background-color:#F2F2F2; border:1px solid #606060; font-size:24px; padding:10px; }
#generic_dialog_overlay { display:block; left:0; position:absolute; top:0; width:100%; z-index:100; }
.dialog_body .dialog_content_img { float:left; margin-right:15px; }
.dialog_body .dialog_content_txt { float:left; padding-bottom:5px; width:300px; }
.dialog_body .dialog_content_body { padding-bottom:13px; } 
.dialog_body .form_label { padding-right:5px; }
.dark_dialog_overlay { background-image:url(facebook-overlay.png); background-repeat:repeat; }
* html .dark_dialog_overlay { background-color:transparent; background-image:url(blank.gif); }
.full_bleed .pop_dialog_table td.pop_content .dialog_body { padding:0; } 
table.pop_dialog_table { border-collapse:collapse; direction:ltr; margin:auto; table-layout:fixed; width:465px; }
td.pop_topleft, td.pop_topright, td.pop_bottomleft, td.pop_bottomright { height:10px; overflow:hidden; padding:0 !important; width:10px !important; }
td.pop_topleft { background:transparent url("/static/system/images/dialog.png") no-repeat scroll 0 0; }
td.pop_topright { background:transparent url("/static/system/images/dialog.png") no-repeat scroll 0 -10px; }
td.pop_bottomleft { background:transparent url("/static/system/images/dialog.png") no-repeat scroll 0 -20px; }
td.pop_bottomright { background:transparent url("/static/system/images/dialog.png") no-repeat scroll 0 -30px; }
td.pop_top, td.pop_bottom { background:transparent url("/static/system/images/dialog.png") repeat-x scroll 0 -40px; }
td.pop_side { background:transparent url("/static/system/images/dialog.png") repeat-y scroll -10px 0; }
td.pop_content { background-color:white; direction:ltr; padding:0; }
.pop_dialog_rtl td.pop_content { direction:rtl; }
td.pop_content h2.dialog_title { background:#6d4f2b none repeat scroll 0 0; border:1px solid #3B5998; color:white; font-size:14px; font-weight:bold; margin:0; }
td.pop_content h2.dialog_loading { background:#6d4f2b url(facebook-indicator_white_small.gif) no-repeat scroll 400px 10px; padding-right:40px; }
td.pop_content h2 span { display:block; padding:4px 10px 5px; }
td.pop_content .dialog_content { background:#FFFFFF none repeat scroll 0 0; border-color:#555555; border-style:solid; border-width:0 1px 1px; }
td.pop_content .dialog_body { border-bottom:1px solid #CCCCCC; padding:10px; }
td.pop_content .dialog_summary { background:#F2F2F2 none repeat scroll 0 0; border-bottom:1px solid #CCCCCC; padding:8px 10px; }
td.pop_content .dialog_buttons { background:#F2F2F2 none repeat scroll 0 0; padding:8px; text-align:right; }
td.pop_content .dialog_buttons input { margin-left:5px; }
td.pop_content .dialog_buttons_msg { float:left; padding:5px 0 0; }
td.pop_content .dialog_footer { background:#F2F2F2 none repeat scroll 0 50%; }
 
/* david walsh custom */ 
/*
#fb-modal  { display:none; }
#fb-close  { cursor:pointer; }
.info    { width:280px; float:left; font-size:11px; color:#666; }
.info b  { color:#000; }
.image  { width:200px; float:left; margin-right:10px; }
*/

.error-view { color: #666; text-align: center; font-family: arial, sans-serif; }
.error-view div.dialog {
  width: 25em;
  padding: 0 4em;
  margin: 4em auto 0 auto;
  border: 1px solid #ccc;
  border-right-color: #999;
  border-bottom-color: #999;
}
.error-view h2 { font-size: 100%; color: #f00; line-height: 1.5em; }

#ck_content { width: 80%; }
