#gallery
{
	width:								516px;
	position:							relative;
	margin:								0 auto;
	list-style:           none;
}

#gallery li 
{
	float:								left;
	margin:								0 !important;
	padding:							0 !important;
	margin-left:						-1px !important;
	margin-top:							-1px !important;
}

#gallery a
{
	display:							table-cell;
	width:								170px;
	height:								170px;
	text-align:							center;
	vertical-align:						middle;
	border:								1px solid #666666;
	background-color:					#DADADA;	
}

#gallery img 
{
/*	border:								solid 1px #66f;*/
	vertical-align:						middle;
}
/*\*//*/
* html #gallery a
{
	display:							block;
}
* html #gallery span 
{
	display:							inline-block;
	vertical-align:						middle;
	height:								100%;
	width:								1px;
}
* html #gallery a 
{
	font-size:							1px;
}
/* non serve solito shift background-position: 11px 11px per IE/Mac, forse perche' su inline-block? */
#gallery div 
{
	border-collapse:					collapse; /* Op7 */
}

.clear 
{
	clear:								both;
	margin:								0;
	padding:							1em 0;
}
#gallery a:hover 
{
	background-color: 					#CECECE;
}

#gallery a.empty:hover
{
	background-color:					#DADADA;	
}

#galleries-large,
#galleries
{
  width: 272px;
  margin: 0 !important;
  padding: 0 !important;
  float: left;
  text-align: center;
  list-style: none !important;
}

#galleries-large
{
  margin-top: 7px !important; 
}

#galleries-large li
{
  margin: 0 !important;
  padding: 5px 0 !important;
}

#galleries-large li a
{
  display: block;
  height: 50px;
  width: 262px;
  line-height: 50px;
  font-size: 1.5em;
  color: #FFFFFF;
  font-weight: bold;
  background: url('../images/list-items-large.png');
}

#galleries
{
  width: 227px;
  margin-top: 4px !important;
  float: left;
  text-align: center; 
}

#galleries li
{
  margin: 7px 0 8px 0 !important;
  padding: 0 !important;
}

#galleries li a
{
  display: block;
  height: 37px;
  width: 214px;
  line-height: 37px;
  font-size: 1em;
  color: #FFFFFF;
  font-weight: bold;
  background: url('../images/list-items.png');
}

.pagination
{
	text-align:							center;
	padding-bottom:						10px;
}