.foogallery-attachments-list .add-attachment {
    background: #ddd;
	border: #888 1px dashed;
    position: relative;
    float: left;
    padding: 0;
    color: #464646;
    list-style: none;
    text-align: center;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.foogallery-attachments-list .add-attachment a {
    display: table-cell;
    vertical-align: middle;
    height: 150px;
    text-align: center;
    width: 150px;
    color:#666;
    font-weight: bold;
    text-decoration: none;
}

	.foogallery-attachments-list .add-attachment a:hover {
		color:#444;
	}

		.foogallery-attachments-list .add-attachment a div.dashicons {
			font-size:50px;
			width: 50px;
			height: 50px;
		}

		.foogallery-attachments-list .add-attachment a span {
			display: block;
		}


.foogallery-attachments-list .attachment-preview,
.foogallery-attachments-list .attachment-preview .thumbnail {
    width: 150px;
    height: 150px;
    cursor:move;
}

.foogallery-attachments-list .attachment {
    border: transparent 1px solid;
    box-shadow: none !important;
	width: auto !important;
	padding: 0 !important;
}

.foogallery-attachments-list .attachment.placeholder {
	width: 150px !important;
	height: 150px;
	border: #1e8cbe 1px dashed;
	background: #eee;
}

.foogallery-attachments-list li {
	margin: 0px 10px 10px 0px !important;
}

.foogallery-attachments-list .attachment.ui-sortable-helper {
    opacity: 0.5;
}

.foogallery-attachments-list .attachment.ui-sortable-helper:hover .close {
    display: none;
}

.foogallery-attachments-list input.describe {
	margin:0;
	width: 150px;
	font-size: 12px;
}

.foogallery-attachments-list .attachment .attachment-preview a {
	display: none;
	position: absolute;
	padding: 0;
	font-size: 20px;
	line-height: 20px;
	text-align: center;
	text-decoration: none;
	background-color: #444;
	border-top-right-radius: 50%;
	border-top-left-radius: 50%;
	border-bottom-right-radius: 50%;
	border-bottom-left-radius: 50%;
}

	.foogallery-attachments-list .attachment .attachment-preview:hover a {
		display: block;
	}

	.foogallery-attachments-list .attachment .attachment-preview a span {
		color:#fff;
	}

		.foogallery-attachments-list .attachment .attachment-preview a:hover span {
			color:#ddd;
		}

.foogallery-attachments-list .attachment .attachment-preview a.remove {
	top: 5px;
	right: 5px;
}

.foogallery-attachments-list .attachment .attachment-preview a.info {
	top: 5px;
	left: 5px;
}

.spacer {
	display: inline-block;
	width:30px;
}

.foogallery_template_field td {
	padding-bottom: 20px;
}

.foogallery_template_field th {
	vertical-align: top;
	text-align: left;
	padding-top: 0.3em;
	padding-right: 10px;
}

.foogallery_template_field textarea {
	min-width: 500px;
	min-height: 100px;
}

.foogallery_template_field.foogallery_template_field_type-help {
	border-bottom: none;
}

.foogallery_template_field.foogallery_template_field_type-help td {
	padding-bottom: 0;
}

.foogallery_template_field.foogallery_template_field_type-icon td {
	padding-bottom: 0;
}

.foogallery_metabox_field-icon label {
	display:inline-block;
	margin-right:10px;
	border:solid 3px transparent;
	background:#aaa;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	padding:5px;
	line-height: 0;
	margin-bottom: 10px;
}

.foogallery_metabox_field-icon input:checked + label {
	border:solid 3px #444;
	background: #888;
}

.foogallery_metabox_field-icon label:hover {
	border:solid 3px #444;
}

.foogallery_template_field.foogallery_template_field_type-htmlicon td {
	padding-bottom: 0;
}

.foogallery_metabox_field-htmlicon label {
	display:inline-block;
	margin-right:10px;
	border:solid 3px transparent;
	background:#aaa;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	padding:5px;
	line-height: 0;
	margin-bottom: 10px;
}

.foogallery_template_field_id-lightbox_custom_button_theme .foogallery_metabox_field-htmlicon label,
.foogallery_template_field_id-lightbox_custom_button_highlight .foogallery_metabox_field-htmlicon label
{
	padding:0px;
}

.foogallery_metabox_field-htmlicon input:checked + label {
	border:solid 3px #444;
	background: #888;
}

.foogallery_metabox_field-htmlicon label:hover {
	border:solid 3px #444;
}

.foogallery_metabox_field-thumb_size label {
	vertical-align: baseline;
}

.foogallery_metabox_field-thumb_size input[type="number"] {
	margin-right: 10px;
	margin-left: 10px;
}

.foogallery_template_field_type-text input.small-text {
	width: 65px;
	height: 28px;
	line-height: 1;
}

#foogallery_pages ul li:hover .row-actions { visibility: visible; }

.foogallery-shortcode {
	text-align: center;
}

.foogallery-shortcode input {
	cursor: pointer;
	text-align: center;
	padding: 10px;
	font-family: "courier new", courier;
	border: none;
	box-shadow: none;
	background: #efefef;
}

.wp-list-table .foogallery-shortcode {
	cursor: pointer;
	font-size: 1em;
	border: none;
	box-shadow: none;
	background: #efefef;
	font-family: "courier new", courier;
}

.foogallery-shortcode-message {
	font-style: italic;
	color: #2EA2CC !important;
}

.foogallery-help {
	position: relative;
	display: block;
	line-height: 19px;
	padding: 11px 10px 11px 40px;
	font-size: 14px;
	text-align: left;
	margin: 5px 0 0 2px;
	background-color: #F4F4FF;
	border-left: 4px solid #1e8cbe;
	-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
	box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
}

.foogallery-help:before {
	content: "\f223";
	font: 400 30px/1 dashicons !important;
	speak: none;
	color: #1e8cbe;
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	vertical-align: bottom;
	position: absolute;
	left: 5px;
	margin-top: -15px;
	top: 50%;
	height: 1em;
}

#post-body.columns-2 #postbox-container-1 .foogallery-help {
	padding-left: 11px;
	margin-left: 5px;
}

#post-body.columns-2 #postbox-container-1 .foogallery-help:before {
	content: '';
}

tr.foogallery_template_field[data-foogallery-hidden] {
	display: none;
}

.foogallery_template_field_type-promo .foogallery-promo {
	position: relative;
	display: block;
	line-height: 19px;
	padding: 11px 10px 11px 40px;
	font-size: 14px;
	text-align: left;
	margin: 5px 0 0 2px;
	background-color: #f7fff6;
	border-left: 4px solid #31be4d;
	-webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
	box-shadow: 0 1px 1px 0 rgba(0, 0, 0, .1);
}

.foogallery_template_field_type-promo .foogallery-promo:before {
	/* content: "\f313";  award */
	content: "\f155"; /* star */
	font: 400 30px/1 dashicons !important;
	speak: none;
	color: #31be4d;
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: absolute;
	left: 5px;
	margin-top: -5px;
	height: 1em;
}

#post-body.columns-2 #postbox-container-1 .foogallery-promo {
	padding-left: 11px;
	margin-left: 5px;
}

#post-body.columns-2 #postbox-container-1 .foogallery-promo:before {
	content: '';
}

.foogallery_template_field_type-promo .foogallery-promo .button-primary {
	background: #1d7b30;
	border-color: #1d7b30;
}

.foogallery_template_field_promo th .dashicons {
	color: #31be4d;
}

.foogallery_metabox_field-radio label.foogallery-promo i {
	font: 400 15px/1 dashicons !important;
	speak: none;
	color: #31be4d;
	vertical-align: inherit;
	padding-left: 2px;
}

/** <gallery settings styling overrides> **/

.foogallery-metabox-settings {
	width: 100%;
	border-collapse: collapse;
}

.foogallery-metabox-settings th {
	font-weight: normal;
	padding: 10px;
	width: 200px;
}

.foogallery-metabox-settings tr {
	border-bottom: solid 1px #EEE;
}

.foogallery-metabox-settings td {
	padding: 10px;
}

.foogallery_metabox_field-radio > input,
.foogallery_metabox_field-radio > label {
	margin-bottom: 10px;
	display: inline-block;
}

.foogallery_metabox_field-radio input[type="checkbox"],
.foogallery_metabox_field-radio input[type="radio"] {
	margin: 0 0 10px 0;
}

.foogallery_metabox_field-select select {
	min-width: 250px;
}

.foogallery-thumbsize-crop {
	margin-top: 10px;
}

.foogallery_metabox_field-checkboxlist > input,
.foogallery_metabox_field-checkboxlist > label {
	margin-bottom: 10px;
	display: inline-block;
}

.foogallery_metabox_field-checkboxlist input[type="checkbox"] {
	margin: 0 0 10px 0;
}

/** </gallery settings styling overrides> **/

.foogallery_metabox_custom_css {
	width: 100%;
	height: 10em;
}

.foo-nav-tabs a:focus {
	box-shadow: none;
	outline: 0;
}

.foogallery-thumbnail-preview {
	display: inline-block;
}

#foogallery_apply_retina_support_container {
	margin-top: 5px;
}

.widefat th.column-icon {
	width: 60px;
}

#foogallery_settings .inside {
	margin: 0;
	padding: 0;
}
/** Balloon.css **/
button[data-balloon]{overflow:visible}[data-balloon]{position:relative}[data-balloon]:after,[data-balloon]:before{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter:alpha(opacity=0);-khtml-opacity:0;-moz-opacity:0;opacity:0;pointer-events:none;-webkit-transition:all .18s ease-out .18s;transition:all .18s ease-out .18s;bottom:100%;left:50%;position:absolute;z-index:10;-webkit-transform:translate(-50%,10px);-ms-transform:translate(-50%,10px);transform:translate(-50%,10px);-webkit-transform-origin:top;-ms-transform-origin:top;transform-origin:top}[data-balloon]:after{background:rgba(17,17,17,.9);border-radius:4px;color:#fff;content:attr(data-balloon);font-size:12px;padding:.5em 1em;white-space:nowrap;margin-bottom:11px}[data-balloon]:before{background:url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E') no-repeat;background-size:100% auto;height:6px;width:18px;content:"";margin-bottom:5px}[data-balloon]:hover:after,[data-balloon]:hover:before,[data-balloon][data-balloon-visible]:after,[data-balloon][data-balloon-visible]:before{-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";filter:alpha(opacity=100);-khtml-opacity:1;-moz-opacity:1;opacity:1;pointer-events:auto;-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0)}[data-balloon].font-awesome:after{font-family:FontAwesome}[data-balloon][data-balloon-break]:after{white-space:pre}[data-balloon-pos=down]:after,[data-balloon-pos=down]:before{bottom:auto;left:50%;top:100%;-webkit-transform:translate(-50%,-10px);-ms-transform:translate(-50%,-10px);transform:translate(-50%,-10px)}[data-balloon-pos=down]:after{margin-top:11px}[data-balloon-pos=down]:before{background:url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E') no-repeat;background-size:100% auto;height:6px;width:18px;margin-top:5px;margin-bottom:0}[data-balloon-pos=down]:hover:after,[data-balloon-pos=down]:hover:before,[data-balloon-pos=down][data-balloon-visible]:after,[data-balloon-pos=down][data-balloon-visible]:before{-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%,0)}[data-balloon-pos=left]:after,[data-balloon-pos=left]:before{bottom:auto;left:auto;right:100%;top:50%;-webkit-transform:translate(10px,-50%);-ms-transform:translate(10px,-50%);transform:translate(10px,-50%)}[data-balloon-pos=left]:after{margin-right:11px}[data-balloon-pos=left]:before{background:url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E') no-repeat;background-size:100% auto;height:18px;width:6px;margin-right:5px;margin-bottom:0}[data-balloon-pos=left]:hover:after,[data-balloon-pos=left]:hover:before,[data-balloon-pos=left][data-balloon-visible]:after,[data-balloon-pos=left][data-balloon-visible]:before{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%)}[data-balloon-pos=right]:after,[data-balloon-pos=right]:before{bottom:auto;left:100%;top:50%;-webkit-transform:translate(-10px,-50%);-ms-transform:translate(-10px,-50%);transform:translate(-10px,-50%)}[data-balloon-pos=right]:after{margin-left:11px}[data-balloon-pos=right]:before{background:url('data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E') no-repeat;background-size:100% auto;height:18px;width:6px;margin-bottom:0;margin-left:5px}[data-balloon-pos=right]:hover:after,[data-balloon-pos=right]:hover:before,[data-balloon-pos=right][data-balloon-visible]:after,[data-balloon-pos=right][data-balloon-visible]:before{-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translate(0,-50%)}[data-balloon-length]:after{white-space:normal}[data-balloon-length=small]:after{width:80px}[data-balloon-length=medium]:after{width:150px}[data-balloon-length=large]:after{width:260px}[data-balloon-length=xlarge]:after{width:90vw}@media screen and (min-width:768px){[data-balloon-length=xlarge]:after{width:380px}}[data-balloon-length=fit]:after{width:100%}

/** Balloon.css overrides **/
[data-balloon]:after,
[data-balloon]:before {
 	text-align: center;
	line-height: 1.2em;
}

.foogallery-items-view-switch-container.hidden {
	display: none;
}

.foogallery-items-view-switch-container {
	display: inline-block;
	margin-left: 10px;
}

.foogallery-items-view-switch-container .spinner {
	margin: 2px 10px 0;
}

.foogallery-items-view-switch {
	vertical-align: middle;
	display: inline-block;
}

	.foogallery-items-view-switch a {
		font-size: 11px;
		padding: 4px 10px;
		line-height: 12px;
		border: 1px solid #2271b1;
		float: left;
		display: inline-block;
		text-decoration: none;
		margin: 0;
		border-radius: 3px;
		text-align: center;
		white-space: nowrap;
		vertical-align: middle;
		-ms-touch-action: manipulation;
		touch-action: manipulation;
		cursor: pointer;
		-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		user-select: none;
		/*background: #f7f7f7;*/
		/*color: #555;*/

		color: #2271b1;
		background: #f6f7f7;
	}
	.foogallery-items-view-switch a:hover {
		background: #f0f0f1;
		border-color: #0a4b78;
		color: #0a4b78;
	}
	.foogallery-items-view-switch a:focus {
		box-shadow: none;
		outline: none;
	}

	.foogallery-items-view-switch a:first-child:not(:last-child) {
		border-top-right-radius: 0;
		border-bottom-right-radius: 0;
		border-right: none;
	}

	.foogallery-items-view-switch a:last-child:not(:first-child) {
		border-top-left-radius: 0;
		border-bottom-left-radius: 0;
        border-left: none;
	}

	.foogallery-items-view-switch a:first-child {
		margin-right: 0;
	}

	.foogallery-items-view-switch a.current {
		background: #2271b1;
		border-color: #2271b1;
		color: #fff;
	}

	.foogallery-items-view-switch a.current:hover {
		background: #135e96;
		border-color: #135e96;
		color: #fff;
	}

	.foogallery-items-view-switch a+a {
		margin-left: -1px;
	}

.foogallery-gallery-items-metabox-title {
	float:none;
}

.foogallery_preview_container {
	position: relative;
	padding: 10px;
}

.foogallery-items-add {
	padding:20px;
	text-align: center
}
.foogallery-items-view-preview {
	overflow: hidden;
}

.foogallery-items-view .button-hero .dashicons {
	vertical-align: middle;
	padding-right: 10px;
	width: 24px;
	height: 24px;
	font-size: 24px;
	font-weight: normal;
}

.foogallery_preview_container.loading:after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	opacity: 0.8;
	z-index: 159900;
}

.fs-submenu-item.foogallery {
	font-size: 13px;
	line-height: 1.2;
}

.foogallery_template_field_type-thumb_size_no_crop input.small-text+label {
	margin-left: 10px;
}

.foogallery_template_field_type-thumb_size_no_crop label+input {
	margin-left: 5px;
}

/* changes to the media modal */
.compat-item .compat-attachment-fields th.label label span {
	text-align: left;
}

.compat-item .compat-attachment-fields td.field {
	width: 100%;
	margin: 0;
}

.media-modal .attachments-browser .media-toolbar {
	right: 500px;
}
.media-modal .attachments {
	right: 500px;
}
.media-modal .media-sidebar {
	width: 467px;
}

.rtl .media-modal .attachments-browser .media-toolbar {
	left: 500px;
	right: 0;
}
.rtl .media-modal .attachments {
	left: 500px;
	right: 0;
}

@media (max-width: 900px) {
	.media-modal .attachments-browser .media-toolbar {
		right: 300px;
	}
	.media-modal .attachments {
		right: 300px;
	}
	.media-modal .media-sidebar {
		width: 267px;
	}

	.rtl .media-modal .attachments-browser .media-toolbar {
		left: 300px;
		right: 0;
	}
	.rtl .media-modal .attachments {
		left: 300px;
		right: 0;
	}
}

.foogallery-attachments-list {
	max-height: 486px;
	/*max-height: 324px;*/
	/*max-height: 162px;*/
	overflow: scroll;
	overflow-x: hidden;
	list-style: none;
	border: 1px solid #ccd0d4;
	padding: 10px;
}
.foogallery-attachments-list:after,
.foogallery-attachments-list-bar:after {
	content: '';
	display: block;
	clear: both;
}

.foogallery-attachments-list-bar button.alignright {
	margin-left: 5px;
}

.foogallery-custom-metabox-header {
	justify-content: flex-start !important;
}

.foogallery-custom-metabox-header .foogallery-template-selector {
	margin-left: 10px;
}

.foogallery-custom-metabox-header .foogallery-template-selector select {
	font-size: 13px;
	margin-left: 6px;
}