
/* Story grid */
.js #gridframe {
	position: fixed;
	width: 100%;
	height: 100%;
	overflow: hidden;
	}


#grid {
	width: 2000px;
	padding-left: 346px;
	padding-right: 40px;
	position: relative;
	zoom: 1;
	}

#grid li {
	list-style-type: none;
	float: left;
	height: 102px;
	width: 102px;
	position: relative;
	}

.add {
	background-color: #ffe;
	background: url(../library/bg-add.png) no-repeat;
	}

.reserved {
	background: #ddd;
	background: url(../library/bg-reserved.png) no-repeat;
	}

.thumb {
	position: relative;
	overflow: hidden;
	background-color: #000;
	background-color: #ded5b3;
	height: 100px;
	width: 100px;
	}

.thumb img {
	margin: -10px 0 0 -10px; /* thumb too big? */
	opacity: .8;
	}

.modalopen .thumb img {
	opacity: .3;
	}

.text {
	position: absolute;
	left: -9999px;
	top: 0;
	text-align: left;
	}


/* Left and right scroll buttons */

.scrollbutton {
	position: fixed;
	top: 0;
	bottom: 0;
	width: 40px;
	z-index: 5;
	cursor: pointer;
	}	
	
.scrollbutton span {
	position: absolute;
	top: 49%;
	left: 0;
	opacity: .5;
	cursor: pointer;
	width: 100%;
	height: 0;
	padding-top: 22px;
	overflow: hidden;
	}	
	
.scrollbutton:hover span {
	opacity: 1;
	}	


#scrollleftbutton {
	left: -41px;
	background: url(../library/scroll-button-bg.png) repeat-y;
	border-right: solid 1px #444;
	}
#scrollleftbutton span {
	background: url(../library/scroll-button-left.png) no-repeat 13px 0;
	}
#scrollrightbutton {
	right: -41px;
	background: url(../library/scroll-button-bg.png) repeat-y right;
	border-left: solid 1px #444;
	}
#scrollrightbutton span {
	background: url(../library/scroll-button-right.png) no-repeat 13px 0;
	}

/* Add your story pop-over */

#addstory {
	height: 100px;
	width: 100px;
	background-color: #fff;
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 12; /* CEZ ADDED */
	}

#addstory.open {
	background-image: url(../library/bg-addstory.png);
	}


/* Story pop-over */

#imagezoom {
	display: block;
	height: 100px;
	width: 100px;
	background-color: #000;
	z-index: 12; /* CEZ CHANGED FROM 1*/
	position: absolute;
	left: -9999px;
	top: 0;
	background-position: 50% 50%;
	}


/* STORY BUBBLE */     
#introbox {
	position: absolute;
	top: 0;
	left: -9999px;
	z-index: 11000;
	width: 160px;
	min-height: 130px;
	padding: 20px 15px 35px 20px;
	background: #fff;
	cursor: pointer;
	zoom: 1;
	}

#introbox h2 {
	padding: 0 0 8px 0;
	font-size: 127.3%;
	font-weight: bold;
	}
.full-story {
	padding: 0;
	position: absolute;
	bottom: 15px;
	right: 15px;
	}	
.full-story a {
	display: block;
	background: url(../library/icn-link.gif) no-repeat 100% 3px;
	text-align: right;
	padding-right: 11px;
	}

.pointer {
	position: absolute;
	left: 0;
	border-right: solid 50px #eee;
	border-top: solid 50px transparent;
	width: 0;
	height: 0;
	top: -50px;
	z-index: 1;
	width: 0px;
	height: 0px;
	overflow: hidden;
	}
		
#storypage .pointer,
.flip .pointer {
	border-left: solid 50px #eee;
	border-bottom: solid 50px transparent;
	border-right: none;
	border-top: none;
	top: auto;
	left: auto;
	bottom: -50px;
	right: 0;
	width: 0px;
	height: 0px;
	overflow: hidden;
	}

.mod-content {
	background: #fff;
	padding: 40px;
	}

/* Modal background */

#modal {
	position: fixed;
	top: 100%;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 13; /* CEZ ADDED */
	background: #685c5e;
	}


/* Ajax loaded story */

#storypage {
	position: relative;
	top: 11px;
	left: -9999px;
	width: 582px;
	z-index: 100;
	}
#storypage.show {
	left: 359px;
	}

#story {
	background: #fff;
	position: relative;
	min-height: 500px;
	}


/* Story paging */

#prevstory {
	width: 30px;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	background: url(../library/innerscroll-button-bg.png) repeat-y;
	cursor: pointer;
	}
#nextstory {
	width: 30px;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	background: url(../library/innerscroll-button-bg.png) repeat-y right;
	cursor: pointer;
	}

#prevstory span {
	position: absolute;
	top: 245px;
	right: 0;
	height: 0;
	width: 30px;
	padding-top: 22px;
	overflow: hidden;
	background: url(../library/innerscroll-button-left.png) no-repeat 8px 0;
	}
#nextstory span {
	position: absolute;
	top: 245px;
	left: 0;
	height: 0;
	width: 30px;
	padding-top: 22px;
	overflow: hidden;
	background: url(../library/innerscroll-button-right.png) no-repeat 8px 0;
	}	
#prevstory span,
#nextstory span {
	opacity: .5;
	}
#prevstory:hover span,
#nextstory:hover span {
	opacity: 1;
	}			
	
#closestory {
	position: absolute;
	top: 1px;
	right: 0px;
	width: 16px;
	height: 0;
	padding-top: 16px;
	overflow: hidden;
	display: block;
	background: url(../library/bg-close.png) no-repeat 0 0 #fff;
	cursor: pointer;
	border-top: 21px solid #fff;
	border-right: 15px solid #fff;
	border-bottom: 10px solid #fff;
	border-left: 10px solid #fff;
	}	
#closestory:hover {
	background-position: 0 -16px;
	}



#header {
	position: fixed;
	}

#loading {
	background: rgba(255,255,255,.7) url(../library/loading.gif) no-repeat 50% 50%;
	z-index: 11;
	position: absolute;
	width: 195px;
	left: -9999px;
	}
	

