/* common styling */
/* set up the overall width of the menu div and the margins with a relative position*/
#gallery-container {
width:250px;
height: 70px;
float: left;
margin:0; 
padding: 0;
}
#gallery {
font: 'Myriad Web', Arial, Helvetica, sans-serif;
width:250px;
margin:0; 
padding: 0 0 10px;
position:relative;
z-index:1;
}
/* remove the bullets and set the margin and padding to zero for the unordered list */
#gallery ul {
padding:0; 
margin:0;
list-style-type: none;
border:0;
border-bottom: 12px solid #fff;
}
/* float the list so that the items are in a line */
#gallery ul li {
float:left; 
}
/* style the links to be 124px wide by 30px high with a top and right border 1px solid white. Set the background color and the font size. */
#gallery ul li a, #gallery ul li a:visited {
display:block; 
float:left;
text-align:center; 
text-decoration:none; 
width:171px; 
height:29px; 
color:#1d3058; 
font: normal 1.6em/1em 'Arial Black', Arial, Helvetica, sans-serif;
}
/* make the dropdown ul invisible */
#gallery ul li ul {
display: none;
}

/* specific to non IE browsers */
/* set the background and foreground color of the main menu li on hover */
#gallery ul li:hover a {
color:#1d3058; 
}
/* make the sub menu ul visible and position it beneath the first list item */
#gallery ul li:hover ul {
text-align:left;
display:block; 
position:absolute; 
top:29px; 
left:0; 
}
/* make the sub menu ul li the full width with padding and border. */
#gallery ul li:hover ul li {
width:420px;
background:#d9dfe7; 
color:#000;
position:relative;
padding:10px;
}

/* style the initial image size 100px x 75px no border and 5pixel padding */
#gallery ul li:hover ul li a img {
width:120px; 
height:84px;
border:0; 
margin:0;
padding: 5px;
float:left;
}

/* style the size, background color, border and margin of the submenu links */
#gallery ul li:hover ul li a {
float:left;
width:130px;
height:94px;
background:#fff;
border:1px solid #8b8f96;
margin:3px;
}

/* style position of the links on hover */
#gallery ul li:hover ul li a:hover {
position:relative;
}

/* style the 2x size image on hover with an absolute position to place it centrally over the original image */
#gallery ul li:hover li a:hover img {
width:200px; 
height:140px;
position:absolute;
left:-50px; 
top:-38px;
border:0;
border:1px solid #8b8f96;
padding:5px;
background:#fff;
}