ul#thumbnails {
	display: table;
	table-layout: fixed;
	padding: 0;
	margin: 0;
	max-width: 100%;
}

ul#thumbnails li {
	display: inline-block;
	vertical-align: bottom;
	text-align: center;
	/*
	width: 120px;
	*/
	height: 120px;
	
	padding: 10px;
	position: relative;
	float: left;
}

.formRow ul#thumbnails li {
	border: 1px solid rgb(150, 150, 150);
	
	margin: 10px;
}

/*
ul#thumbnails li #removeButton {
	width: auto;
	padding: 2px 5px;
	margin: 0 auto;
	display: inline-block;
	text-align: left;
	
	background: #CCFFFF;
	
	text-decoration: none;
	
	border: 1px solid #52A8FF;
	-moz-border-radius: 5px;
}
*/

ul#thumbnails li #removeButton {

	padding: 2px 5px;
	margin: 0;
	display: block;
	position: absolute;
	top: 0;
	right: 0;
		
	background: rgb(0, 0, 0);
	background: rgba(0, 0, 0, 0.8);
	
	-moz-border-radius-bottomleft: 5px;


	text-decoration: none;
}

img.thumbnail {
	max-width: 100px;
	max-height: 100px;
}

img.fullSize {
	max-width: 100%;
}

#photoSelectDialog img.thumbnail.selected {
	background: #CCFF99;
	border: 1px solid #8FFF1F;
}


#photoSelectDialog {
	overflow-y: auto;
	overflow-x: none;
}

#photoSelectDialog ul {
	display: block;
	table-layout: fixed;
	margin: 10px 0 0 0;
	padding: 0;
	width: 100%;
}

#photoSelectDialog ul li {
	width: 120px;
	height: 120px;
	/*display: table-cell; */
	display: inline-block;
	float: left;
	vertical-align: middle;
	text-align: center;
	margin: 10px;
}

#photoSelectDialog img.thumbnail {
	padding: 10px;
	border: 1px solid transparent;
}

form {
	margin-left: 50px;
}

label {
	display: block;
	width: 100%;
	text-align: left;
	float: none;
}

input {
	display: inline-block;
	float: none;
}

input[type="hidden"] {
	display: none;
}

button, .button, input[type="submit"] {
	/* background-color: #d9ebfd; */
	color: #0066CC;
	border: 1px solid #ccc;
	padding: 5px 15px;
	text-decoration: none;
	
	font-weight: bold;
	text-transform: uppercase;
	/* text-shadow: #ccc 1px 1px 4px; */
	
	-moz-border-radius: 4px;
	
	
	background: #E9F0F6 url('/images/tr_background2.png');
	background-repeat: repeat-x;
	background-position: bottom center;
}

button:hover, .button:hover, input[type="submit"]:hover {
	/* background-color: #c6e3ff; */
	border: 1px solid #0066CC;
}