body {
	overflow: hidden;
}

body.Grid, body.Albums {
	overflow: visible;
}

body.Single, body.Filmstrip {
	background: none;
}

.albums, .grid, .filmstrip, .single, .slideshow, .noJS {
	display: none;
}

.Albums .albums, .Grid .grid, .Filmstrip .filmstrip, .Single .single, .Slideshow .slideshow, .NoJS .noJS {
	display: block;
}

#loading {
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -3.5em;
	color: #fff;
	background: #000;
	height: 2.5em;
	line-height: 2.5;
	width: 7em;
	text-align: center;
	z-index: 100;

}

/* @group Image border */

.horizontalWrapper {
	position: absolute;
	right: 50%;
}

.imageBorder {
	display: block;
	position: relative;
	right: -50%;
	border-left: 1px solid #dcd7c8;
	border-right: 1px solid #dcd7c8;
	border-bottom: none !important;
	background: #b4afa3 url(images/dropShadows/shad_bottom.png) repeat-x bottom left;
	padding: 0 1px 4px;
	line-height: 0;
}

.imageBorder img {
	display: inline;
	border: none;
	padding: 5px;
	background: #fff;
}

.imageBorder .topleft {
	width: 2px;
	height: 4px;
	background: url(images/dropShadows/shad_tlcorner.png) no-repeat top left;
	position: absolute;
	top: 0px;
	left: -1px;
}

.imageBorder .topright {
	width: 2px;
	height: 4px;
	background: url(images/dropShadows/shad_trcorner.png) no-repeat top right;
	position: absolute;
	top: 0px;
	right: -1px;
}

.imageBorder .bottomleft {
	width: 4px;
	height: 4px;
	background: url(images/dropShadows/shad_blcorner.png) no-repeat bottom left;
	position: absolute;
	bottom: 0px;
	left: -1px;
}

.imageBorder .bottomright {
	width: 4px;
	height: 4px;
	background: url(images/dropShadows/shad_brcorner.png) no-repeat bottom right;
	position: absolute;
	bottom: 0px;
	right: -1px;
}

/* @end */

/* @group Albums */

#albums {
	margin: 0 auto;
	padding: 0 20px;
	width: 650px;
}

.album {
	position: relative;
	overflow: hidden;
	border-top: 1px solid #000;
	padding: 2em 0;
	min-height: 230px;
}

.album .info {
	width: 320px;
	padding: 0 30px;
}

.album .info a:after {
	padding-left: 5px;
	vertical-align: -1px;
	content: '\2192';
}

.album .viewgallery {
	margin: 1em 0;
	text-align: center;
}

.album .photo {
	position: absolute;
	top: 2em;
	right: 0;
	width: 232px;
	height: 232px;
	overflow: hidden;
}

.even .photo {
	left: 0;
}

.even .info {
	margin: 0 0 0 auto;
}

.album .photo a {
	background-repeat: no-repeat;
	display: inline;
	float: left;
	width: 50px;
	height: 50px;
	margin: 3px;
	border: 1px #222 solid;
}

.album .photo a:hover {
	width: 54px;
	height: 54px;
	margin: 1px;
}

.a {
	background-position: -87.5px -87.5px;
}

.b {
	background-position: -137.5px -87.5px;
}

.c {
	background-position: -187.5px -87.5px;
}

.d {
	background-position: -237.5px -87.5px;
}

.e {
	background-position: -87.5px -137.5px;
}

.f {
	background-position: -137.5px -137.5px;
}

.g {
	background-position: -187.5px -137.5px;
}

.h {
	background-position: -237.5px -137.5px;
}

.i {
	background-position: -87.5px -187.5px;
}

.j {
	background-position: -137.5px -187.5px;
}

.k {
	background-position: -187.5px -187.5px;
}

.l {
	background-position: -237.5px -187.5px;
}

.m {
	background-position: -87.5px -237.5px;
}

.n {
	background-position: -137.5px -237.5px;
}

.o {
	background-position: -187.5px -237.5px;
}

.p {
	background-position: -237.5px -237.5px;
}

/* @end */

/* @group Grid Thumbnails */

#photos {
	overflow: hidden;
}

.thumbnail {
	position: relative;
	width: 172px;
	height: 172px;
	padding-bottom: 1.5em;
	margin: 1em 2em;
	float: left;
}

.landscape {
	width: 162px;
}

.portrait {
	height: 162px;
}

.thumbnail .phototxt {
	position: absolute;
	width: 100%;
	top: 100%;
	margin-top: -1.5em;
	padding: 0.25em 0;
	cursor: default;
	font-size: 91.67%;
	text-align: center;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
}

.thumbnail .horizontalWrapper {
	bottom: 1.5em;
}

/* @end */

/* @group Display photo */

#displayPhoto {
	/* The margin value is used to determine the spacing around the display image */
	margin: 20px 20px 5px;
}

#displayTitle {
	position: absolute;
	bottom: 100%;
	width: 100%;
	padding: 2px 0 3px;
	text-shadow: none;
	color: #000;	
}

#photoDescription {
	margin: 0 5em .5em;
	text-align: center;
	line-height: 1.3;
}

/* @end */

/* @group Control Bar */

#controlBar {
	background: #1E2024;
	text-shadow: #1E2024 1px 1px 1px;
	color: #fff;
	border-top: 1px solid #040405;
	line-height: 2;
	padding: .5em 0;
	position: fixed;
	bottom: 0;
	width: 100%;
	z-index: 100;
}

#controlBar a {
	color: #ddd;
	border: none;
}

#controlBar a:hover {
	color: #fff;
}

#modeSelect a {
	margin: 0 .5em;
	padding-left: 20px;
	background-position: center left;
	background-repeat: no-repeat;
}

#modeSelect a.modeAlbums {
	padding-left: 10px;
}

#controlBar .modeSelector.selected {
	color: #fff;
	cursor: default;
	font-weight: bold;
}

#controlBar .modeSelector span {
	background-position: -1000px -1000px;
	background-repeat: no-repeat;
}

#controlBar .modeGrid {
	background-image: url(images/mode/grid.png);
}

#controlBar .modeGrid:hover, #controlBar .modeGrid.selected, #controlBar .modeGrid span {
	background-image: url(images/mode/grid-active.png);
}

#controlBar .modeFilmstrip {
	background-image: url(images/mode/filmstrip.png);
}

#controlBar .modeFilmstrip:hover, #controlBar .modeFilmstrip.selected, #controlBar .modeFilmstrip span {
	background-image: url(images/mode/filmstrip-active.png);
}

#controlBar .modeSingle {
	background-image: url(images/mode/single.png);
}

#controlBar .modeSingle:hover, #controlBar .modeSingle.selected, #controlBar .modeSingle span {
	background-image: url(images/mode/single-active.png);
}

#controls {
	color: #ddd;
	position: absolute;
	left: 50%;
	width: 12em;
	margin-left: -6em;
	bottom: 0;
	padding: .5em 0;
	text-align: center;
}

#controls span {
	cursor: pointer;
	padding: 0 1ex;
}

#controls span:hover {
	color: #fff;
}

#thumbsSize {
	position: absolute;
	right: 1em;
	height: 16px;
	top: .95em;
	padding: 0 25px;
}

#smallThumbnails {
	background: url(images/slider/smallThumbnail.gif) right center no-repeat;
	position: absolute;
	left: 0;
	width: 16px;
	height: 16px;
}

#largeThumbnails {
	background: url(images/slider/largeThumbnail.gif) center no-repeat;
	position: absolute;
	right: 0;
	width: 16px;
	height: 16px;
}

#resizeSlider {
	position: relative;
	width: 116px;
	height: 16px;
	margin: 0 -8px;
	background: url(images/slider/track.png) no-repeat center;
}

#resizeHandle {
	background: url(images/slider/knob.png);
	width: 16px;
	height: 16px;
	top: 1px;
}

#download {
	position: absolute;
	right: 0;
	bottom: 0;
	height: 2em;
	padding: .5em 1em;	
}

#download * {
	margin-right: 1ex;
}

/* @end */

/* @group Filmstrip */

#strip {
	overflow: auto;
	background: #090A0D;
	white-space: nowrap;
	border-right: 1em solid #090A0D;
	border-left: 1em solid #090A0D;
	text-align: center;
	margin: -.6em 0 0.5em;
	padding-top: .8em;
}

#strip a {
	border: none;
}

#strip img {
	height: 75px;
	margin: 3px;
	border: 1px solid #fff;
}

#strip a:hover img, #strip img.selected {
	border-width: 3px;
	margin: 1px;
}

#strip img.selected {
	border-color: #ddd;
}

/* @end */
