.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: 0.3em 10px 0;
}
.rtl .foogallery_template_field th {
	text-align: right;
}

.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);
}

.rtl .foogallery-help {
	padding: 11px 40px 11px 10px;
	text-align: right;
	border-left: none;
	border-right: 4px solid #1e8cbe;
}

.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;
}

.rtl .foogallery-help:before {
	left: auto;
	right: 5px;
}

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

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

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

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

tr.foogallery_template_field[data-foogallery-invisible] {
	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);
}


.rtl .foogallery_template_field_type-promo .foogallery-promo {
	padding: 11px 40px 11px 10px;
	text-align: right;
	margin: 2px 0 0 5px;
	border-left: none;
	border-right: 4px solid #31be4d;
}

.foogallery_template_field_type-promo.foogallery_promo_prostarter .foogallery-promo {
	border-color: #3397C1;
	background-color: #f6fffe;
}

.foogallery_template_field_type-promo.foogallery_promo_commerce .foogallery-promo {
	border-color: #B0459D;
	background-color: #fdf6ff;
}

.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;
}

.rtl .foogallery_template_field_type-promo .foogallery-promo:before {
	left: auto;
	right: 5px;
}

.foogallery_template_field_type-promo.foogallery_promo_prostarter .foogallery-promo:before {
	color: #3397C1;
}

.foogallery_template_field_type-promo.foogallery_promo_commerce .foogallery-promo:before {
	color: #B0459D;
}

#post-body.columns-2 #postbox-container-1 .foogallery-promo {
	padding-left: 11px;
	margin-left: 5px;
}
.rtl #post-body.columns-2 #postbox-container-1 .foogallery-promo {
	padding-right: 11px;
	margin-right: 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;
	margin-right: 10px;
}
.rtl .foogallery_template_field_type-promo .foogallery-promo .button-primary {
	margin-left: 10px;
	margin-right: 0;
}

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

.foogallery_template_field_type-promo.foogallery_promo_prostarter .foogallery-promo .button-primary {
	background: #3397C1;
	border-color: #3397C1;
}

.foogallery_template_field_type-promo.foogallery_promo_prostarter .foogallery-promo .button-secondary {
	border-color: #3397C1;
	color: #3397C1;
}

.foogallery_template_field_type-promo.foogallery_promo_commerce .foogallery-promo .button-primary {
	background: #B0459D;
	border-color: #B0459D;
}

.foogallery_template_field_type-promo.foogallery_promo_commerce .foogallery-promo .button-secondary {
	border-color: #B0459D;
	color: #B0459D;
}

.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;
}

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

.foogallery_metabox_field-radio label.foogallery_promo_commerce i {
	font: 400 15px/1 dashicons !important;
	speak: none;
	color: #B0459D;
	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-flex;
	margin: 0 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;
}
.rtl .foogallery-items-view .button-hero .dashicons {
	padding-left: 10px;
	padding-right: 0;
}

.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_metabox_field-thumb_size_no_crop {
	display: inline-flex;
	align-items: center;
}

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

.foogallery_template_field_type-thumb_size_no_crop label+input {
	margin-left: 5px;
}
.rtl .foogallery_template_field_type-thumb_size_no_crop label+input {
	margin-left: 0;
	margin-right: 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;
}

.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-bar {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
}
.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: 0 10px;
}

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

.foogallery-multi-filtering-modal-close {
    float: right;
    margin-left: 5px !important;
}

#foogallery-image-edit-modal .foogallery-image-edit-main {
    text-align: center;
    padding: 0 0 20px;
}
#foogallery-image-edit-modal .foogallery-image-edit-meta{
    padding: 10px 0px;
	position: relative;
}
#foogallery-image-edit-modal .attachment-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    /*grid-gap: 15px;*/
    padding: 0;
    background: #f0f0f1;
}
#foogallery-image-edit-modal .foogallery-image-edit-view {
    margin-bottom: 15px;
}
/*
 CSS for the main interaction
*/
#foogallery-image-edit-modal .tabset .foogallery-img-modal-tab-wrapper > input[type="radio"] {
	position: absolute;
	left: -200vw;
}
  
#foogallery-image-edit-modal .tab-panel {
	display: none;
	padding: 30px 0;
}
#foogallery-image-edit-modal .tab-panel.active {
	display: block;
}
#foogallery-image-edit-modal .tabset .foogallery-img-modal-tab-wrapper > label {
    position: relative;
    display: inline-block;
    padding: 5px 10px 5px;
    border: 1px solid transparent;
    border-bottom: 0;
    cursor: pointer;
    font-weight: 600;
}
#foogallery-image-edit-modal .tabset .foogallery-img-modal-tab-wrapper > label:hover,
#foogallery-image-edit-modal .tabset .foogallery-img-modal-tab-wrapper > input:focus + label {
    color: #06c;
}
#foogallery-image-edit-modal .tabset .foogallery-img-modal-tab-wrapper > input:checked + label {
    border-color: #ccc;
    border-bottom-color: rgb(204, 204, 204);
    border-bottom: 2px solid #fff !important;
    margin-bottom: -1.7px;
    cursor: pointer;
}
.foogallery-image-edit-meta {
    background-color: #fff;
    padding: 10px;
}
#foogallery-image-edit-modal .tabset{
    max-width: 100%;
    padding: 0px 10px;
    border-bottom: 1px solid #ccc;
}

#foogallery-image-edit-modal .media-frame-title h1 {
	float: left;
}
#foogallery-image-edit-modal .media-frame-title .attachment-modal-autosave {
	float: right;
	display: inline-block;
	margin: 15px;
}
#foogallery-image-edit-modal .media-frame-title .attachment-modal-autosave label {
	vertical-align: text-bottom;
}

#foogallery-panel-main select {
    margin: 0px 8px;
}
#foogallery-panel-taxonomies label{
    margin-bottom: 10px;
    display: block;
}
#foogallery-panel-taxonomies li {
    position: relative;
    float: left;
    margin-right: 8px;
    margin-bottom: 10px;
}
#foogallery-image-edit-modal .tab-panels #foogallery-panel-taxonomies .taxonomy_add input {
	width: 100px;
	margin-right: 5px !important;
	float: left;
	min-height: 26px;
	font-size: 11px;
	margin-top: 0;
}
#foogallery-panel-taxonomies .taxonomy_add a, #foogallery-panel-taxonomies .taxonomy_remove a {
	box-shadow: none;
}
#foogallery-panel-thumbnails label {
    display: inline-block;
    vertical-align: text-bottom;
    margin-right: 30px;
}
#foogallery-panel-thumbnails #foogallery_crop_pos {
    display: inline-block;
    vertical-align: text-top;
    margin-bottom: 20px;
}
#foogallery-panel-watermark-preview {
    margin-bottom: 20px;
	display: none;
}
#foogallery-panel-watermark-preview label {
    margin-bottom: 10px;
    display: block;
}
.foogallery-panel-info-inner{
	background: #f6f7f7;
	padding: 10px;;
}
#foogallery-image-edit-modal .attachment-details .setting .name {
	font-weight: 600;
}
#foogallery-image-edit-modal .attachment-details .copy-to-clipboard-container {
	margin-left: 0;
    margin-bottom: 15px;
    padding: 0;
}
#foogallery-image-edit-modal .foogallery-attachments-list-bar {
    margin-top: 20px;
}

#foogallery_clear_img_thumb_cache, #foogallery-img-modal-alternate-image-delete {
	background: #d63638;
    border-color: #d63638;
}
#foogallery-image-edit-modal .not-loaded .spinner.is-active{
	margin: 10px;
}
.foogallery-img-modal-tab-wrapper {
    display: inline-block;
}
#foogallery-image-edit-modal .tab-panels .settings span.setting {
	display: grid;
	grid-template-columns: 35% auto;
	grid-gap: 30px;
}
#foogallery-image-edit-modal .tab-panels .settings span.setting.has-description {
	margin-bottom: 0px;
}
#foogallery-image-edit-modal .tab-panels .settings .description {
	padding-left: calc(35% + 30px);
	float: none;
	width: auto;
}
#foogallery-image-edit-modal .tab-panels .settings span.setting > *:not(label) {
    width: calc(100% - 10px);
    box-sizing: border-box;
    max-width: 100%;
    margin-left: 0px !important;
    margin-right: 0px !important;
}
#foogallery-image-edit-modal .tab-panels .settings span.setting input,
#foogallery-image-edit-modal .tab-panels .settings span.setting textarea,
#foogallery-image-edit-modal .tab-panels .settings span.setting select {
	margin: 0;
}
#foogallery-image-edit-modal .tab-panels .settings span.setting .setting-with-buttons {
	display: flex;
	flex-wrap: nowrap;
	grid-template-columns: unset;
	grid-gap: unset;
}

#foogallery-image-edit-modal .tab-panels .settings span.setting .setting-with-buttons input {
	width: 100%;
}

#foogallery-image-edit-modal .tab-panels .settings span.setting .setting-with-buttons > div {
	display: flex;
}

#foogallery-image-edit-modal .tab-panels .settings span.setting .setting-with-buttons > div > button {
	margin-left: 5px;
}

#foogallery-image-edit-modal .tab-panels .settings span.setting span {
	text-align: left;
}
#foogallery-image-edit-modal .tab-panels {
    padding: 0px 10px;
}
#foogallery-image-edit-modal .tab-panels .settings span.setting input[type="radio"] {
    width: auto;
    margin: 8px 3px 0 !important;
}
#foogallery-image-edit-modal .attachment-details #foogallery-panel-taxonomies .setting .name {
	padding-top: 5px;
}
#foogallery-panel-watermark .attachment_protection_generate {
	float: left;
}
.foogallery-modal-footer-wrap {
    text-align: right;
    margin-bottom: 10px;
    margin-right: 20px;
}
#foogallery-panel-watermark-preview.watermark-preview-show {
	display: block;
}
.foogallery-modal-footer-wrap {
    text-align: right;
    margin-bottom: 10px;
    margin-right: 20px;
}
.foogallery-image-edit-footer {
	position: absolute;
    bottom: 10px;
    width: 100%;
	right: 10px;
	text-align: right;
}
.foogallery-image-edit-footer .spinner {
	margin-top: 5px;
	float: unset;
}
#attachments-data-save-btn {
	float: right;
}
#foogallery-panel-taxonomies ul {
	margin: 0;
	padding: 0;
}
#foogallery-panel-taxonomies ul:after {
	content: '';
	display: block;
	clear: both;
}
#foogallery-image-edit-modal .media-modal-close {
	border-left: 1px solid #dcdcde;
}
#foogallery-panel-info .foogallery-panel-info-inner {
    text-align: left;
    padding: 10px 20px;
    column-count: 2;
    column-rule: 2px solid #000;
    column-gap: 50px;
    margin-bottom: 20px;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    column-fill: balance;
}
.foogallery-panel-info-inner > div {
	webkit-column-break-inside: avoid;
	page-break-inside: avoid;
	break-inside: avoid;
}
.foogallery-modal-info-fields * {
	vertical-align: middle;
	font-size: 13px;
}
.foogallery-modal-info-fields label {
	font-weight: 600;
}
#foogallery-img-modal-alternate-image-delete {
    background-color: #f6f7f7;
    color: #2271b1;
    border: 1px solid #2271b1;
}
#foogallery-img-modal-alternate-image-delete:hover {
    color: #0a4b78;
    background-color: #f0f0f1;
    border-color: #0a4b78;
}
#foogallery-image-edit-modal .tab-panels .settings span.setting.alternate-image-upload-settings {
	grid-template-columns: 1fr;
}
#foogallery-image-edit-modal .tab-panels .alternate-image-upload-wrap {
	margin-left: 43px;
}
#foogallery-image-edit-modal .tab-panels .settings span.setting.override-thumbnail, #foogallery-image-edit-modal .tab-panels .settings span.setting.override-thumbnail-preview, #foogallery-image-edit-modal .tab-panels .settings span.setting.alternate-image-delete {
	display: none;
}
#foogallery-image-edit-modal .tab-panels .settings span.setting.override-thumbnail.is-override-thumbnail, #foogallery-image-edit-modal .tab-panels .settings span.setting.override-thumbnail-preview.is-override-thumbnail, #foogallery-image-edit-modal .tab-panels .settings span.alternate-image-delete.is-override-thumbnail {
	display: grid;
}

.foogallery-feature-promo {
	position: relative;
	padding-left: 40px;
	vertical-align: middle;
	flex: 1;
	line-height: 2;
}

.foogallery-feature-promo:before {
	content: "\f348";
	font: 400 30px/1 dashicons !important;
	speak: none;
	color: #2271b1;
	display: inline-block;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: absolute;
	left: 5px;
	height: 1em;
}
