@charset "utf-8";
/* CSS Document */

/*******************************************************************************\
| Styles for the thumbnail gallery                                              |
| I needed to do three things:                                                  |
|   1. Show items in a <ul> as a nice gallery of thumbnails                     |
|   2. Have each one act as a link                                              |
|   3. Have some text appear on rollover                                        |
|                                                                               |
| Natalie MacLees' page explained exactly how to do this:                       |
|   http://geekgirllife.com/place-text-over-images-on-hover-without-javascript/ |
\*******************************************************************************/

/* Body of the page */
body {
	background-color:#fff;
	font-family:Arial, Helvetica, sans-serif;
	font-size:small;
}

/* Main list style */
ul.img-list {
	list-style-type: none;
	margin: 0;
	padding: 0;
	text-align: left; /* This controls where the thumbnails are positioned */
}

/* Each list item */
/* Display as inline-block so they flow */
ul.img-list li {
	display: inline-block;
	width: 200px;
	height: 200px;
	margin: 5px;
	position: relative;
}

/* This is the outer of the two spans, and is
treated like a table, allowing the inner span to
be treated as a table cell */
span.text-content {
	background: rgba(0,0,0,0.8);
	color: white;
	cursor: pointer;
	display: table;
	
	/* Size */
	width: 200px;
	height: 200px;
	
	/* Position relative to the thumbnail
	Can also use right and top instead */
	left: 0;
	bottom: 0;
	position: absolute;
	
	/* Opacity is initially set to 0 so invisible.
	Will be set darker upon hover */
	opacity:0;
	
	/* Nice fade transition */
	transition: opacity 500ms;
	-webkit-transition: opacity 500ms;
	-moz-transition: opacity 500ms;
	-o-transition: opacity 500ms;
}

/* Inner span - treated as table cell,
so can do things like vertical-align and padding */
span.text-content span {
	display: table-cell;
	text-align: center;
	vertical-align: middle;
	padding:10px;
}

/* The hover magic. Makes the text-content span have
an opacity of 1 when the list item is hovered over */
ul.img-list li:hover span.text-content {
	opacity: 1;
}

/* Border radius style. This is applied to
both the thumbnail images and the text-content span */
ul img, span.text-content {
	border-radius:5px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	-o-border-radius: 5px;
	-khtml-border-radius: 5px;
}

/* Thumbnail image style */
ul img {
	box-shadow: 0px 0px 5px #ccc;
	-moz-box-shadow: 0px 0px 5px #ccc;
	-webkit-box-shadow: 0px 0px 5px #ccc;
	-o-box-shadow: 0px 0px 5px #ccc;
	-khtml-box-shadow: 0px 0px 5px #ccc;
}