/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.stunicholls/gallery/left_right_click.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */

#gallery {width:382px; position:relative; padding-top:240px; }

/*#gallery ul li.chosen .box { width:382px; height: 237px; border:1px solid #999999; padding:1px; margin: 0; position: relative; display:table-cell; vertical-align:middle; text-align:center; }*/
#gallery ul li.chosen .box { width:379px; height: 237px; border:1px solid #999999; padding:1px; margin: 0; position: relative; display:block; vertical-align:middle; text-align:center; overflow: hidden;}
/* #gallery ul li.chosen .box img.nopaco { filter:alpha(opacity=99); -moz-opacity:.99; opacity:.99; } */

#gallery img.left {width:13px; height:42px; background:#fff; float:left;cursor:pointer;margin: 20px 1px 0 0; }
#gallery img.right {width:13px; height:42px; background:#fff; float:left;cursor:pointer;margin: 20px 1px 0 0; }

#gallery ul {width: 351px; list-style:none; padding:0; margin:7px 0 0 0; float:left; background:#fff; border:1px solid #999; }
#gallery ul li {overflow: hidden; display:inline; width:66px; height:63px; border: 1px solid #aaa; float:left; margin:2px 1px; 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:66px; height:63px;*/ }

#gallery ul li span {display:none; position:absolute; left:61px; top:430px; width:411px;font-family:verdana, arial, sans-serif; color:#666; font-size:11px; line-height:15px; text-align:justify;}
#gallery ul li b {color:#444;}

#gallery ul li.chosen { cursor:default; border: 1px solid #fff; /* filter:alpha(opacity=45); -moz-opacity:.45; opacity:.45; */ }
#gallery ul li.chosen div {position:absolute; left:0; top:0; width:382px; height:238px;}/* background:#fff; }*/
#gallery ul li.chosen div i { width:382px; height:238px; display:table-cell; vertical-align:middle; text-align:center;} 
/* #gallery ul li.chosen div i img {visibility:visible; width:382px; height:auto; max-height: 237px; overflow: hidden;  margin:0 auto; }*//* border:1px solid #aaa; */
#gallery ul li.chosen div i img {visibility:visible; /*width:382px !important;*/ height:auto; overflow: hidden; /* border:1px solid #aaa; */ margin:0 auto; }


#gallery ul li.chosen div i.ambas_auto img {visibility:visible; width:auto; height:auto; max-height: 237px; overflow: hidden; /* border:1px solid #aaa; */ margin:0 auto; }
#gallery ul li.chosen div i.width_auto img {visibility:visible; width:auto; height:238px; max-height: 237px; overflow: hidden; /* border:1px solid #aaa; */ margin:0 auto; }
#gallery ul li.chosen div i.height_auto img {visibility:visible; width:382px; height:auto; max-height: 237px; overflow: hidden; /* border:1px solid #aaa; */ margin:0 auto; }
#gallery ul li.chosen div i.ambas_overflow img {visibility:visible; width:382px; height:238px; max-height: 237px; overflow: hidden; /* border:1px solid #aaa; */ margin:0 auto; }


#gallery ul li.chosen span {display:block;}

/*.width_379 {width:379px; }*/

#gallery .box{ overflow:hidden; width: 66px; }
