.gallery_layout {
	margin: 0 0 15px;
}

.gallery_layout label {
	display: block;
	float: left;
	line-height: 26px;
	margin: 0 5px 0 0;
}

a.delete_gallery_item,
a.update_gallery_item {
	position: absolute;
	top: 5px;
	overflow: hidden;
	padding: 2px;
	width: 14px;
	height: 14px;
	border-radius: 3px;
	background-color: #fff;
	background-image: url(../images/sprite-edit.png);
	background-repeat: no-repeat;
	font-size: 0;
	opacity: 0.9;
	
	-webkit-transition: none;
	transition: none;
}

a.delete_gallery_item {
	right: 5px;
	background-position: 1px 1px;
}

a:hover.delete_gallery_item { background-position: -20px 1px; }

a.update_gallery_item {
	right: 25px;
	background-position: 1px -16px;
}

a:hover.update_gallery_item { background-position: -20px -16px; }

#post_pod_gallery { font-size: 0; }

	li.gallery_item {
		width: 100px;
		height: 100px;
		display: inline-block;
		margin: 10px 10px 10px 0;
		position: relative;
	}

	.sel.gallery_item_category_wrap {
		width: 95px;
		position: absolute;
		top: 70px;
		left: 5px;
		float: left;
	}

	img.gallery_thumb {
		display: block;
		max-width: 100%;
		background: #fff;
		border-radius: 3px;
		border: 1px solid #d6d7d7;
		cursor: move;
	}

.gallery-meta-container select,
.gallery-meta-container input[type="text"] {
	height: 28px;
	margin: 0;
	padding: 5px;
	
	-webkit-box-sizing: border-box; 
	   -moz-box-sizing: border-box;	
			box-sizing: border-box;
}

.gallery-meta-container div.sel { 
	position: relative;
	float: left;
}

.gallery-meta-container div.sel select {
	background: #fff;
	-webkit-appearance: none;
	   -moz-appearance: none;
			appearance: none;
	cursor: pointer;
	opacity: 0.9;
}

/* Targetting Webkit browsers only. FF will show the dropdown arrow with so much padding. */
@media screen and (-webkit-min-device-pixel-ratio:0) {
	.gallery-meta-container div.sel select { padding-right: 27px; }
}

.gallery-meta-container .gallery_item div.sel select {
	width: 100%;
	border: none !important;
}

.gallery-meta-container div.sel:after {
	content: '';
	width: 25px;
	height: 24px;
	top: 1px;
	right: 1px;
	display: block;
	background: url(../images/select-pointer.png) 0 0 no-repeat;
	position: absolute;
	pointer-events: none;
	border-radius: 3px;
}

.gallery-meta-container div.sel:hover:after {
	background-position: 0 -24px;
}

.clear {
	clear: both;
	height: 0;
}

#TB_window {
	width: 380px !important;
	height: 300px !important;
	margin-left: -190px !important;
}

#TB_ajaxContent {
	width: 350px !important;
}

#TB_ajaxContent h4 {
	margin: 1.5em 0 0.5em;
	padding: 0;
}

#TB_ajaxContent p {
	margin: 0 0 1.5em;
	padding: 0;
}

#TB_ajaxContent input,
#TB_ajaxContent textarea {
	width: 100%;
	box-sizing: border-box;
}

#TB_ajaxContent textarea {
	height: 100px;
}