.gallery { right top no-repeat; padding:0 4px 10px 0; }
.gallery ul { margin-top:66px; margin-right:0px; margin-left:0px; padding:0px; left top repeat-x; list-style:none; position:relative; height:0px; }
.gallery ul li { display:block; width:auto; float:left; color:#fff; height:36px; }
.gallery ul li a { display:block; width:auto; text-decoration:none; padding:8px 1.3em 8px 1em; font:1.1em Verdana, sans-serif; right 0 no-repeat; }
.gallery ul li a:hover { text-decoration:underline; right -36px no-repeat; }
.gallery ul li.first { left top no-repeat; }
/* 333 sets width so only 3 cols fit */
.gallery ul li ul { display:none; position:absolute; top:34px; left -4px repeat-x; height:auto; width:333px; left:2%; padding:8px 5px 15px 5px; }
.gallery ul li:hover ul,
.gallery ul li.over ul { display:block; }
.gallery ul li ul li { display:inline; float:none; background-image:none; height:auto; }
.gallery ul li ul li a { margin:8px; padding:2px; position:relative; border:2px solid #D2BA94; float:left; display:block; width:75px; height:50px; background-color:#fff; }
.gallery ul li ul li a:hover { background-image:none; z-index:2; }
/* alignment of thumbnail and background bordering */
.gallery ul li ul li a img { position:absolute; top:2px; width:75px; height:50px; border:0; margin:0; padding:0; }
.gallery ul li a:hover img,
.gallery ul li a:active img,
.gallery ul li a:focus img { width:100px; height:75px; left:-12px; top:-10px; z-index:1; border:2px solid #997843; }
.gallery ul li.overview { display:block; clear:both; padding:5px 10px 0 10px; color:#997843; }

#gallery1 ul { z-index:2; }
#gallery2 ul { z-index:1; }
