/* -------------------------------------------------------------------------------------------------------------------------
A CSS3 presentation demonstrating how to take advantage of modern browsers while still allowing the content to be easily
accessible in older, less capable browsers.
Inspired by http://playground.deaxon.com/css/lightbox by http://twitter.com/deaxon 
---------------------------------------------------------------------------------------------------------------------------- */


/* -------------------------------------------------------------------------------------------------------------------------
Grid of images
---------------------------------------------------------------------------------------------------------------------------- */
#grid { margin: 35px 0; }
/*
Add the transition affect to the images in the grid. Any changes to the element will be transtioned from it's current state, for example on :hover */
#grid li { 
float: right;
 list-style: none; 
margin: 0 0px 25px 25px; 
position: relative;
 overflow: hidden;
border-top: 1px solid rgba(255, 255, 255, 0.25);
	-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
	-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
	-webkit-transition: all 0.15s ease-in;
	-moz-transition: all 0.15s ease-in;
	-ms-transition: all 0.15s ease-in;
	transition: all 0.15s ease-in;
	width:210px;
	padding:2px !important;
	
	
}
#grid li.end { margin-left: 0 !important; }
#grid li:nth-child(3n) { margin-left: 0; }

#grid li:hover { z-index: 2;
	-webkit-transform: scale(1) translateY(-10px);	
	-moz-transform: scale(1) translateY(-10px);	
	-ms-transform: scale(1) translateY(-10px);	
	transform: scale(1) translateY(-10px);	
	-webkit-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	-moz-box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
/*
Rotate left hand column to the left upon hover */
#grid li:nth-child(3n-2):hover {
	-webkit-transform: scale(1) translate3d(0, -10px, 0) rotate(-2.0deg);
	-moz-transform: scale(1) translateY(-10px) rotate(-2.0deg);
	-ms-transform: scale(1) translateY(-10px) rotate(-2.0deg);
	transform: scale(1) translateY(-10px) rotate(-2.0deg);
}
/*
Rotate every third li with :nth-child(3n) (right hand column in this demo) to the right upon hover */
#grid li:nth-child(3n):hover {
	-webkit-transform: scale(1) translate3d(0, -20px, 0) rotate(2.0deg);	
	-moz-transform: scale(1) translateY(-10px) rotate(2.0deg);	
	-ms-transform: scale(1) translateY(-10px) rotate(2.0deg);	
	transform: scale(1) translateY(-10px) rotate(2.0deg);	
}

#grid img, li[id]:target div, #grid li, .backface {
	width:210px;
	height:200px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
}

#grid .details img
{
	border:none !important;
	outline:none !important;
	
}


#grid .details { position: absolute;
 bottom: 0;
 background: #fff;
 background: rgba(255, 255, 255, 0.87);
  border-top: 1px solid #fff; 
  width: 190px; 
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
   padding: 10px;
	-webkit-border-radius:  0 0 5px 5px;
	-moz-border-radius: 0 0 5px 5px;
	border-radius: 0 0 5px 5px;
	-webkit-box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.35);
	-moz-box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.35);
	box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.35);
}
#grid .details h3 { 


margin: 0px !important; 
letter-spacing: -1px !important;
font-size:14px;
	color:#C00;
	margin-right:10px !important;
	
	
	font-weight:normal;
	 font-family: 'DROIDKUFI-REGULAR_0', "Tahoma";
	font-style: normal;
	text-align: right;


 }
#grid .details a.more {
	position: absolute;
	left: 10px;
	top: 5px;
	font-size: 12px;
	font-family: 'GESSTwoMedium-Medium';
	padding: 3px 10px;
	background-color:#DFDFDF !important;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 15px;
	text-decoration:none;
	color:#333 !important;	
}

#grid .details a.more:hover {
	background-color: #C00;
	color: #fff;
	text-decoration:none;
}
#grid .details a.more:visited { background-color: rgba(0, 0, 0, 0.03); color:#999; text-decoration:none;}


#information { z-index: 20; }
#information li div h3 { background-color: #0090E2; border-radius: 5px 5px 0 0; color: #fff; font-size: 20px; font-weight: bold; margin: -30px -30px 20px; padding: 15px 30px; text-shadow: rgba(0, 0, 0, 0.4492); text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45); letter-spacing: -2px; }

/* -------------------------------------------------------------------------------------------------------------------------
Using :target we can style the specific ID of the list item when clicked/tapped on eg: www.url.com/#info1
---------------------------------------------------------------------------------------------------------------------------- */
li[id]:target { width: 100%; height: 100%; opacity: 1; z-index: 10; position: fixed; overflow-x: hidden; /* overflow-y: scroll; */ margin-bottom: 25px; }
li[id]:target::-webkit-scrollbar { width: 8px; background-color: rgba(0,0,0,0.6); position: relative; left: }
li[id]:target::-webkit-scrollbar-thumb { -webkit-border-radius: 1ex; background-color: #6CF; }
li[id]:target div { position: relative; margin: 0 auto; top: 15%; background: #fff; width: 600px; padding: 30px;
	-webkit-box-shadow: 0 1px 8px #000;
	-moz-box-shadow: 0 1px 8px #000;
	box-shadow: 0 1px 8px #000;
	-webkit-animation: lightbox 0.75s cubic-bezier(0,0,0,1);
	-moz-animation: lightbox 0.5s cubic-bezier(0,0,0,1);
}
/* 
Style list items with an ID */
li[id] { overflow: hidden; position: absolute; width: 0; height: 0; left: 0; top: 0; opacity: 0; background: rgba(0,0,0,.8);
	-webkit-transition: opacity 0.2s cubic-bezier(0,0,0,1);
	-moz-transition: opacity 0.2s cubic-bezier(0,0,0,1);
	transition: opacity 0.2s cubic-bezier(0,0,0,1);
}
/* 
Lightbox close button */
li[id] div a.close { background: #000; position: absolute; top: -10px; left: -10px; line-height: 0; color: #fff; text-align: center; font-weight: bold; border: 2px solid #fff; padding: 12px 9px 9px; border-radius: 30px;
	-webkit-box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 1px;
	-moz-box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 1px;
	box-shadow: rgba(0, 0, 0, 0.3) 1px 1px 1px;
}

/* 
Animation keyframes for the lightbox.
First line is at 0% so we're setting it to be 5x the actual size and rotate it around the Y axis by -270 degrees
100% resets it's actual size and resets the rotation back to flat. */
@-webkit-keyframes lightbox {
	0% { -webkit-transform: scale(5) rotateY(-270deg); }
	100% { -webkit-transform: scale(1) rotateY(0deg); }
}

@-moz-keyframes lightbox {
	0% { -moz-transform: scale(5) /* rotateY(-270deg) */; }
	100% { -moz-transform: scale(1) /* rotateY(0deg) */; }
}

/* -------------------------------------------------------------------------------------------------------------------------
Use Modernizer (http://www.modernizr.com) to display content for browsers that don't support CSS Transforms.
It now defaults to linking to the ID ie: www.url.com/#info3 and moving to that position on the page.
---------------------------------------------------------------------------------------------------------------------------- */
.no-csstransforms #information li { overflow: visible; position: relative; margin: 0 auto; margin-bottom: 25px; background: #fff; width: 600px; padding: 30px; height: auto; list-style: none; }	
.no-csstransforms #information li div a.close { position: relative; background: transparent; padding: 0; color: #0090e2; font-size: 12px; font-weight: normal; left: 0; top: 0; }	




