#file_gallery
{
	min-height: 75px;
}

#file_gallery.closed
{
	min-height: 0pt;
}

#fg_container
{
	overflow: auto;
	height: auto;
	width: 100%;
	padding-right: 7px;
}

#file_gallery_list
{
	list-style-type: none; 
	margin: 1em 0 0 0; 
	padding: 0;
	list-style-position: inside;
	overflow: hidden;
	clear: both;
}

#file_gallery label
{
	font-weight: bold;
	line-height:2.35em;
}

#file_gallery fieldset
{
	border: 1px solid #EFEFEF;
	padding: 0;
	margin: 10px 0;
	clear: both;
	position: relative;
	display: none;
}

#file_gallery fieldset#file_gallery_tag_attachment_switcher
{
	border: none;
	display: none;
}

#file_gallery fieldset p
{
	float: left;
	display: block;
}

#file_gallery fieldset p input,
#file_gallery fieldset p select
{
	font-size: 11px;
	padding: 2px;
	margin: 0px;
	vertical-align: baseline;
}

#file_gallery fieldset p input#fg_gallery_tags_from
{
	vertical-align: middle;
	margin: -1px 0 0 3px;
}

#fg_info
{
	float: left;
}

#file_gallery .button-primary
{
	float: right;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	padding: 3px 8px;
	font-weight: normal;
	background: #21759B url(../images/button-grad.png) repeat-x scroll left bottom;
	border-color: #298CBA;
	color: #FFFFFF;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
}

#file_gallery .button-primary:hover,
#file_gallery .button-primary:active
{
	background: #FFFFFF url(../images/white-grad.png) repeat-x scroll left bottom;
	border-color: #EEEEEE;
	color: #000000;
	text-shadow: none;
}

#file_gallery .button-primary:active
{
	color: #777777;
	background: #FFFAE0;
}

#file_gallery #file_gallery_send_gallery.button-primary,
#file_gallery #file_gallery_send_single.button-primary
{
	display: none;
}

#file_gallery #attachment_data_edit_form .button-primary
{
	float: none;
}

#file_gallery fieldset legend.button-primary
{
	cursor: pointer;
	float: none;
}

.sortableitem,
.ui-selected
{
	float:left;
	background: #EEEEEE;
	position: relative;
	
	width: 72px;
	height: 90px;
	
	padding-right: 3px;
	padding-left: 20px;
	
	margin-left: 3px;
	margin-right: 5px;
	margin-bottom: 13px;

	/*border-right: 1px solid #AAA;
	border-bottom: 1px solid #DDD;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;*/
	
	cursor: pointer;
}

.sortableitem.copy
{
	background: #c5e8f4;
}

.sortableitem.has_copies
{
	background: #ddf8d3;
}

.sortableitem.post_thumb
{
	background: #ffdb00;
}

.ui-selected
{
    background: #EE0;
	padding: 0;
	width: 95px;
}

.sortableitem .checker
{
	position: absolute;
	bottom: 0;
	right: 0;
}

.clearer
{
	display: block;
	clear:both;
	margin-top:15px;
}

.delete_or_detach_link
{
	bottom: 0;
	left: 0;
	position: absolute;
	text-decoration: none;
}

.post_thumb_status
{
	bottom: 1px;
	left: 40px;
	position: absolute;
	text-decoration: none;
}

.del_attachment,
.detach_attachment,
.detach_or_delete,
.post_thumb_setter,
.post_thumb_unsetter
{
	position: absolute;
	background: #FAFAF0;
	height: 80px;
	width: 74px;
	padding: 5px 0 3px 0;
	display: none;
	text-align: center;
	z-index: 100;
	margin: 0;
	bottom: 1px;
	right: 1px;
}

.sortableitem img.fgtt
{
	float:left;
	clear:right;
	border-left: 1px solid #777;
	border-top: 1px solid #AAA;
	margin-top: 1px;
	padding: 1px 0 0 1px;
	position: relative;
}

.sortableitem img.fgtt.non_image
{
	margin: 8px 0 0 10px;
	border: none;
}

a.img_zoom
{
	display:block;
	height:16px;
	position:absolute;
	left:0;
	top:0;
	width:16px;
}
a.img_edit
{
	display:block;
	height:16px;
	position:absolute;
	left:0;
	top:20px;
	width:16px;
}

#file_gallery_size,
#file_gallery_linkto,
#file_gallery_orderby,
#file_gallery_order,
#file_gallery_template,
#file_gallery_single_linkto,
#file_gallery_single_size
{
	width: 85px;
}

.hidden,
#file_gallery_order
{
	display: none;
}

#attachment_data_edit_form
{
	float: right;
	width: 70%;
}

#attachment_data_edit_form label
{
	display: block;
	padding: 5px 0 0px 2px;
	font-weight:bold;
}

#attachment_data_edit_form .roundborder
{
	width: 90%;
}

#attachment_data_edit_form .button
{
	clear: both;
	float: none;
	display: block;
}

.roundborder
{
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
}

.float_left
{
	float: left;
}

.float_right
{
	float: right;
}

#file_gallery_response
{
	background:#EDEDED none repeat scroll 0 0;
	color:#DD6611;
	display:none;
	height:23px;
	line-height:23px;
	margin:1px 0 0 0;
	padding:0 8px;
	position:absolute;
	right:25px;
	top:0px;
	font-weight:bold;
	-moz-border-radius:4px;
	-webkit-border-radius:4px;
}

#fg_buttons
{
	float: right;
	position:relative;
	/*width: 276px;*/
	margin-right: 2px;
	text-align: right;
}

#fg_buttons.alt
{
	/*position: absolute;
	right: -15px;
	width: 56px;*/
	margin-bottom: 15px;
	background: none;
}

#fg_buttons input
{
	width: 32px;
	height: 24px;
	text-indent: -9000px;
	background-color: #EEEEEE;
	background-position: center center;
	background-repeat: no-repeat;
	margin: 0;
	padding: 0;
}

#fg_buttons input:hover
{
	background-color: #F4F4F4;
	border-color: #CCCCC0;
}

#fg_buttons input:active
{
	background-color: #FFFFFF;
	border-color: #FFFFBB;
}



#file_gallery_refresh
{
	background-image: url(../images/famfamfam_silk/arrow_refresh.png);
}

#file_gallery_check_all
{
	background-image: url(../images/check_all.png);
}

#file_gallery_uncheck_all
{
	background-image: url(../images/uncheck_all.png);
}

#file_gallery_save_menu_order
{
	background-image: url(../images/famfamfam_silk/picture_save.png);
}

#file_gallery_delete_checked
{
	background-image: url(../images/famfamfam_silk/image_delete.png);
}

#file_gallery_detach_checked
{
	background-image: url(../images/famfamfam_silk/link_break.png);
}

#file_gallery_copy_all
{
	background-image: url(../images/famfamfam_silk/images.png);
}

#file_gallery_clear_cache_manual
{
	background-image: url(../images/famfamfam_silk/lock_open.png);
	opacity: 0.75;
}

#file_gallery_clear_cache_manual:hover
{
	opacity: 1;
}



#fg_loading_on_bar
{
	margin-top: 4px;
}

#file_gallery_attachment_edit_image
{
	float:left;
	margin-left:2.5%;
	margin-right:5%;
	margin-top:18px;
	width:20%;
}

#file_gallery_attachment_edit_image a img
{
	width: 100%;
}

#file_gallery_attachment_edit_image img.non_image
{
	width: 46px;
	height: 60px;
}

#file_gallery_upload_files
{
	display: none;
	left: 5px;
	position:absolute;
}

#poststuff .inside p#fg_media_tag_list
{
	font-size:12px;
}

#poststuff .inside p#fg_media_tag_list .fg_insert_tag
{
	display: block;
	float: left;
	margin-right: 15px;
}

#file_gallery fieldset #fg_gallery_tags_container
{
	display: none;
	width: 95%;
}

#fg_gallery_tags
{
	width: 100%;
}

/*#file_gallery_attachment_list,*/
#file_gallery_tag_list
{
	display: none;
}

/* wp-admin css fixes */

.media-item
{
	position: relative;
}

textarea, input, select 
{
	-moz-border-radius:4px;
	-webkit-border-radius:4px;
	border-style:solid;
	border-width:1px;
}

.checker
{
	border: none;
}

#submitpost
{
	overflow: auto;
	height: auto;
}

.loading_image
{
	text-align:center;
	margin: 50px 0;
}

#file_gallery_imageclass,
#file_gallery_mimetype,
#file_gallery_limit,
#file_gallery_linkclass,
#file_gallery_single_imageclass,
#file_gallery_single_linkclass
{
	width: 95px;
}

#library-form .media-item
{
	background-color: #FFFAFA;
}

#library-form .media-item.child-of-0
{
	background-color: #FFFFFF;
}

#delete_dialog,
#image_dialog,
#file_gallery_copy_all_dialog
{
	display: none;
	background: #FFF;
	color: #000000;
	padding: 1px 20px 20px 20px;
}

#file_gallery_copy_all_wrap
{
	margin-top: 25px;
}

.ui-widget-overlay
{
	position: absolute;
	top: 0;
	background: #000000;
	opacity: 0.5;
}

.ui-dialog button
{
	background: #EEEEEE;
	border: 1px solid #E4E4E4;
	margin-right: 6px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}

.ui-dialog .ui-dialog-titlebar-close
{
	position: absolute;
	top: 4px;
	right: 7px;
}

.ui-dialog .ui-dialog-buttonpane
{
	background: #FFFFFF;
	padding: 0 15px 15px 15px;
	-moz-border-radius-bottomleft: 10px;
	-moz-border-radius-bottomright: 10px;
	-webkit-border-bottom-left-radius: 10px;
	-webkit-border-bottom-right-radius: 10px;
}

.ui-dialog-titlebar
{
	background: #EEEEEE;
	padding: 7px;
	-moz-border-radius-topleft: 10px;
	-moz-border-radius-topright: 10px;
	-webkit-border-top-left-radius: 10px;
	-webkit-border-top-right-radius: 10px;
}

.attach_me
{
	position: absolute;
	right: 0;
	top: 1em;
}

#file_gallery_hide_gallery_options,
#file_gallery_hide_single_options
{
	position: absolute;
	right: 0;
	margin-top: -22px;
	padding: 0;
	cursor: pointer;
	background-position: center top;
	background-color: #F8F8F8;
	text-indent: -9999px;
	height: 19px;
	width: 24px;
	outline: none;
}

#file_gallery_hide_gallery_options.open,
#file_gallery_hide_single_options.open
{
	background-image: url(../images/famfamfam_silk/bullet_arrow_up.png);
}

#file_gallery_hide_gallery_options.closed,
#file_gallery_hide_single_options.closed
{
	background-image: url(../images/famfamfam_silk/bullet_arrow_down.png);
}

.column-post_thumb,
.column-attachment_count
{
	text-align: center;
}

.column-post_thumb img
{
	margin: 3px 0;
	max-height: 60px;
	max-width: 80px;
}

.thumb_switch_load
{
	position: absolute;
	top: 20px;
	left: 36px;
	z-index: 1000;
	display: none;
	border: 4px solid #333333;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}

#file_gallery_copy_from_wmpl_original
{
	-moz-border-radius: 0 0 5px 5px;
	-webkit-border-radius: 0 0 5px 5px;
	border-radius: 0 0 5px 5px;
	background: #EAF2FA;
	display:block;
	margin:10px -6px -8px;
	padding:7px 0 9px;
	text-align:center;	
}

#file_gallery_copy_from_wmpl_original:hover
{
	color: #b37458;
	background: #fdf9da;
}



/* attachment custom fields */

#postcustomstuff.attachmentcustomstuff
{
	width: 630px;
}