#gallery {width:490px; position:relative; height:67px; padding:191px 0 0 0; margin:0;}

#gallery img.left {width:12px; height:29px; float:left;cursor:pointer; margin:11px 0 0 9px; padding:0;}
#gallery img.right {width:12px; height:29px; float:right;cursor:pointer; margin:11px 9px 0 0; padding:0;}

#gallery ul {list-style:none; padding:0; margin:0; float:left; background:#fff;  }
#gallery ul li {display:inline; width:33px; height:45px; float:left; margin:0 10px; border:1px solid #fff; cursor:pointer;}

#gallery ul li.hide {display:none;}

/* remove visibility:hidden; if you want to use the original images as thumbnails */
#gallery ul li img {visibility:hidden; display:block; width:33px; height:45px;}

#gallery ul li span {display:none; visibility:hidden; position:relative; left:0; top:0px; width:490px;font-family:verdana, arial, sans-serif; color:#666; font-size:11px; line-height:15px; text-align:left;}
#gallery ul li b {color:#444;}

#gallery ul li.chosen {border-color:#afa37e; cursor:default;}
#gallery ul li.chosen div {position:absolute; left:0; top:0; width:490px; height:180px; }
#gallery ul li.chosen div i {width:490px; height:180px; display:table-cell; vertical-align:middle; text-align:center;} 
#gallery ul li.chosen div i img {visibility:visible; width:auto; height:auto; margin:auto auto;}
#gallery ul li.chosen span {display:block;}

#gallery h2 { color:#0fa6c7; font-size:13px; font-weight:bold; margin:0 0 8px 0; }

.shadow { position:absolute; margin:-258px 0 0 485px; width:5px; height:180px; }