
#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: 8px 0 0 0;
	list-style-position: inside;
	overflow: hidden;
	clear: both;
}

#file_gallery label
{
	font-weight: bold;
	line-height: 2.35em;
	vertical-align: inherit;
}

#file_gallery fieldset
{
	border: 1px solid #EFEFEF;
	padding: 0;
	margin: 10px 0;
	clear: both;
	position: relative;
	display: none;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	border-radius: 8px;
}

#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;
}

#fg_container select option
{
	padding: 2px 4px;
}

#file_gallery fieldset p input#fg_gallery_tags_from, #file_gallery fieldset p input#file_gallery_single_caption
{
	vertical-align: middle;
	margin: -1px 0 0 3px;
}

#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: none;
	-moz-border-radius: 11px;
	-webkit-border-radius: 11px;
	border-radius: 11px;
	-moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

#file_gallery .button-primary: hover, #file_gallery .button-primary: active
{
	background: #FFFFFF url(../images/white-grad.png) repeat-x scroll left bottom;
	border-color: #FFFFFF;
	color: #000000;
}

#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;
}

#file_gallery_list .sortableitem, #file_gallery_list .ui-selected
{
	float: left;
	background-color: #EDEDED;
	position: relative;
	padding: 3px 6px 23px 21px;
	border: 1px solid #DFDFDF;
	margin-left: 3px;
	margin-right: 5px;
	margin-bottom: 13px;
	height: auto;
	cursor: pointer;
	min-width: 55px;
	min-height: 65px;
	cursor: move;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	-moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

#file_gallery_list .sortableitem.copy
{
	background-color: #C0E0F0;
}

#file_gallery_list .sortableitem.has_copies
{
	background-color: #d6f1b3;
}

#file_gallery_list .sortableitem.post_thumb
{
	background-image: url(../images/overlay-featured.png);
	border-color: #ffd994;
	-moz-box-shadow: 0 0 5px 0 #dd9b24;
	-webkit-box-shadow: 0 0 5px 0 #dd9b24;
	box-shadow: 0 0 5px 0 #dd9b24;
}

#file_gallery_list .sortableitem: hover
{
	border-color: #FFFFFF;
}

#file_gallery_list .sortableitem img.fgtt
{
	border: 1px solid #FFFFFF;
	position: absolute;
	top: 4px;
	right: 4px;
	width: 100%;
	height: auto;
	cursor: pointer;
}

#file_gallery_list .sortableitem img.non_image
{
	width: auto;
}

#file_gallery_list .ui-selected
{
	background: #EE0;
}

#file_gallery_list .sortableitem .checker
{
	position: absolute;
	bottom: 2px;
	right: 2px;
}

#file_gallery_list .clearer
{
	display: block;
	clear: both;
	margin-top: 15px;
}

#file_gallery_list .delete_or_detach_link
{
	bottom: 2px;
	left: 2px;
	position: absolute;
	text-decoration: none;
	z-index: 100;
}

#file_gallery_list .post_thumb_status
{
	bottom: 2px;
	left: 45%;
	position: absolute;
	text-decoration: none;
	z-index: 100;
}

#file_gallery_list .del_attachment, #file_gallery_list .detach_attachment, #file_gallery_list .detach_or_delete, #file_gallery_list .post_thumb_setter, #file_gallery_list .post_thumb_unsetter
{
	position: absolute;
	background: #FAFAF0;
	height: 100%;
	width: 100%;
	padding: 5px 0 3px 0;
	display: none;
	text-align: center;
	z-index: 100;
	margin: 0;
	bottom: 1px;
	right: 1px;
}

#file_gallery_list .sortableitem img.fgtt.non_image
{
	/*margin: 8px 0 0 10px;*/
	border: none;
}

#file_gallery_list a.img_zoom
{
	display: block;
	height: 16px;
	position: absolute;
	left: 2px;
	top: 35px;
	width: 16px;
	z-index: 100;
}

#file_gallery_list a.img_edit
{
	display: block;
	height: 16px;
	position: absolute;
	left: 2px;
	top: 5px;
	width: 16px;
	z-index: 100;
}

#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;
	border-radius: 4px;
}

#fg_info
{
	float: left;
	width: 40%;
}

#fg_buttons
{
	float: right;
	position: relative;
	margin-right: 2px;
	text-align: right;
	width: 50%;
}

#fg_buttons.alt
{
	background: none;
	width: auto;
	float: none;
}

#fg_buttons input
{
	width: 32px;
	height: 24px;
	text-indent: -9999px;
	background-color: #DFDFDF;
	background-position: center center;
	background-repeat: no-repeat;
	margin: 0;
	padding: 0;
	-moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

#fg_buttons input: hover
{
	background-color: #F1F1F1;
	border-color: #DFDFDF;
}

#fg_buttons input: active
{
	background-color: #FFFFFF;
	border-color: #FFFFBB;
}

#file_gallery_refresh
{
	background-image: url(../images/famfamfam_silk/arrow_refresh_gs75.png);
}

#file_gallery_refresh: hover
{
	background-image: url(../images/famfamfam_silk/arrow_refresh.png);
}

#file_gallery_check_all
{
	background-image: url(../images/check_all_gs75.png);
}

#file_gallery_check_all: hover
{
	background-image: url(../images/check_all.png);
}

#file_gallery_uncheck_all
{
	background-image: url(../images/uncheck_all_gs75.png);
}

#file_gallery_uncheck_all: hover
{
	background-image: url(../images/uncheck_all.png);
}

#file_gallery_save_menu_order
{
	background-image: url(../images/famfamfam_silk/picture_save_gs75.png);
}

#file_gallery_save_menu_order: hover
{
	background-image: url(../images/famfamfam_silk/picture_save.png);
}

#file_gallery_delete_checked
{
	background-image: url(../images/famfamfam_silk/image_delete_gs75.png);
}

#file_gallery_delete_checked: hover
{
	background-image: url(../images/famfamfam_silk/image_delete.png);
}

#file_gallery_detach_checked
{
	background-image: url(../images/famfamfam_silk/link_break_gs75.png);
}

#file_gallery_detach_checked: hover
{
	background-image: url(../images/famfamfam_silk/link_break.png);
}

#file_gallery_copy_all
{
	background-image: url(../images/famfamfam_silk/images_gs75.png);
}

#file_gallery_copy_all: hover
{
	background-image: url(../images/famfamfam_silk/images.png);
}

#file_gallery_clear_cache_manual
{
	background-image: url(../images/famfamfam_silk/lock_open_gs75.png);
}

#file_gallery_clear_cache_manual: hover
{
	background-image: url(../images/famfamfam_silk/lock_open.png);
}

#file_gallery_adjust_media_settings
{
	background-image: url(../images/famfamfam_silk/cog_edit_gs75.png);
}

#file_gallery_adjust_media_settings: hover
{
	background-image: url(../images/famfamfam_silk/cog_edit.png);
}

#file_gallery_open_help
{
	background-image: url(../images/famfamfam_silk/help_gs75.png);
}

#file_gallery_open_help: hover
{
	background-image: url(../images/famfamfam_silk/help.png);
}

#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%;
}

#side-sortables #file_gallery_attachment_edit_image
{
	float: none;
	margin-left: 5px;
	margin-right: 0;
	margin-top: 5px;
	width: 100%;
}

#side-sortables #attachment_data_edit_form
{
	float: none;
	width: 100%;
}

#file_gallery_attachment_edit_image a img
{
	width: 100%;
}

#side-sortables #file_gallery_attachment_edit_image a img
{
	max-width: 95%;
	max-height: 200px;
	width: auto;
	height: auto;
}

#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%;
	background: url(../images/famfamfam_silk/tag_blue.png) left center no-repeat;
	padding-left: 20px;
}

#fg_gallery_tags
{
	width: 100%;
}

#file_gallery_tag_list
{
	display: none;
}

/* wp-admin css fixes */

#postimagediv .inside p
{
	overflow: hidden;
}

.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_linkclass, #file_gallery_single_imageclass, #file_gallery_single_linkclass
{
	width: 95px;
}

#file_gallery_limit, #file_gallery_offset
{
	width: 45px;
}

#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, #file_gallery_hide_acf
{
	position: absolute;
	right: 0;
	margin-top: -22px;
	padding: 0;
	cursor: pointer;
	background-position: center top;
	background-color: #EDEDED;
	text-indent: -9999px;
	height: 19px;
	width: 24px;
	outline: none;
}

#file_gallery_hide_gallery_options: hover, #file_gallery_hide_single_options: hover, #file_gallery_hide_acf: hover
{
	background-color: #F1F1F1;
	border-color: #DFDFDF;
}

#file_gallery_hide_gallery_options.open, #file_gallery_hide_single_options.open, #file_gallery_hide_acf.open
{
	background-image: url(../images/famfamfam_silk/bullet_arrow_up.png);
	-moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

#file_gallery_hide_gallery_options.closed, #file_gallery_hide_single_options.closed, #file_gallery_hide_acf.closed
{
	background-image: url(../images/famfamfam_silk/bullet_arrow_down.png);
	-moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
}

#file_gallery_hide_acf
{
	margin: -27px 8px 0 0;
}

.attachment_info_has_copies, .attachment_info_is_a_copy
{
	padding: 5px;
	background: #C0E0F0;
}

.attachment_info_has_copies
{
	background: #D6F1B3;
}

.thumb_switch_load
{
	position: absolute;
	top: 5px;
	right: 5px;
	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;
}

/* edit.php - posts/pages listing */

th.column-post_thumb, th.column-attachment_count
{
	max-width: 100px !important;
}

td.column-post_thumb, td.column-attachment_count
{
	text-align: center !important;
	background: none;
}

td.column-post_thumb img
{
	margin: 3px 0 !important;
	max-height: 60px !important;
	max-width: 80px !important;
}

/* attachment custom fields */


	/* fieldset and toggler */
	
#file_gallery fieldset#fieldset_attachment_custom_fields
{
	display: block;
	margin: 10px 0 20px 0;
	padding: 0;
	width: 90%;
}

#file_gallery fieldset#fieldset_attachment_custom_fields legend
{
	font: italic 20px/35px Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
	margin: 0;
	padding: 0 8px;
	color: #21759B;
}

.acf_new_custom_field
{
	background: #F1F1F1;
}

.acf_delete_custom_field
{
	vertical-align: top;
}

#attachment_data_edit_form #media-single-form .acf_new_custom_field td
{
	padding: 2px 5px;
}

#attachment_data_edit_form #media-single-form .acf_new_custom_field th
{
	width: 100px;
}

#attachment_data_edit_form #media-single-form .acf_new_custom_field th .alignleft
{
	display: block;
	margin: 0;
	padding: 0.75em 0 0;
}

#attachment_data_edit_form #media-single-form .acf_new_custom_field label
{
	padding: 0;
}

#attachment_data_edit_form #media-single-form .acf_new_custom_field br
{
	display: none;
}

#attachment_data_edit_form #media-single-form
{
	width: 100%;
	margin-top: 8px;
}

#attachment_data_edit_form #media-single-form .acf_new_custom_field input, #attachment_data_edit_form #media-single-form .acf_new_custom_field textarea
{
	width: 95%;
}

#attachment_data_edit_form #media-single-form .acf_new_custom_field input#new_custom_field_submit
{
	width: auto;
}

#attachment_data_edit_form #media-single-form .custom_field textarea
{
	width: 75%;
	margin-left: 12px;
	margin-bottom: 1em;
	margin-bottom: 1em;
}

#side-sortables #attachment_data_edit_form #media-single-form .custom_field textarea
{
	width: 80%;
	min-height: 100px;
}

#side-sortables #attachment_data_edit_form #media-single-form .custom_field .acf_delete_custom_field
{
	margin-bottom: 1em;
	margin-left: 12px;
	margin-top: -1em;
}
