.clearfix:before,
.clearfix:after {
	content: " ";
	display: table;
}
.clearfix:after {
	clear: both;
}

#w3b-gallery {
	margin-top: 15px;
}

.w3b-gallery__wrapper {
	padding: 0;
	position: relative;
}

.w3b-gallery__wrapper li {
	background: #fefefe;
	border: 1px solid #c0c0c0;
	box-sizing: border-box;
	float: left;
	margin-bottom: 15px;
	margin-left: 1%;
	margin-right: 1%;
	padding: 5px 5px 2px;
	width: 23%;
	position: relative;
	-webkit-border-radius: 3px;
	   -moz-border-radius: 3px;
	   		border-radius: 3px;
}

.w3b-gallery__wrapper img {
	width: 100%;
	height: auto;
}
.w3b-gallery__icon {
	background: #e0e0e0;
	border: 1px solid #c0c0c0;
	display: none;
	height: 20px;
	padding: 4px 5px 0px 3px;
	text-align: center;
	width: 14px;
	-webkit-border-radius: 100%;
	   -moz-border-radius: 100%;
	   		border-radius: 100%;
}
.w3b-gallery__btn-remove {
	position: absolute;
	top: -5px;
	right: -5px;
}
.w3b-gallery__icon.w3b-gallery__btn-edit {
	position: absolute;
	top: 22px;
	right: -5px;
}
.w3b-gallery__wrapper li:hover .w3b-gallery__icon {
	display: block;
}
.w3b-gallery__icon:hover {
	opacity: .8;
}

.w3b_gallery__form-wrapper {
	padding: 15px;
}
.w3b_gallery__form-wrapper td {
	padding: 15px;
}
.w3b_gallery__form-wrapper tr td:first-child {
	font-weight: bold;
	width: 150px;
}
.w3b_gallery__thumbnail input {
	width: 50px;
}
.w3b_gallery__thumbnail span {
	font-weight: bold;
	margin: 0 15px;
}

.wp-media-buttons .w3b-ico {
	margin-right: 5px;
	vertical-align: text-bottom;
}

.w3b-ico {
	display: inline-block;
	width: 16px;
	height: 16px;
	background: url('../img/sprite.png') no-repeat;
}
.w3b-ico-close {
	background-position: 0 0;
}
.w3b-ico-settings {
	background-position: 0 -20px;
}
.w3b-ico-img {
	background-position: 0 -40px;
}
.w3b-ico-sort {
	background-position: 0 -60px;
}
.w3b-ico-preview {
	background-position: 0 -80px;
}