	.og-grid {
		list-style: none;
		padding: 0 0 20px 0;
		max-width: 1060px;
		margin: 0 auto;
		text-align: left;
		width: 100%;
	}
	
	.og-grid li {
		display: inline-block;
		margin: 10px 5px 0 5px;
		vertical-align: top;
		/*height: 250px;
		width: 250px*/
	}
	
	.og-grid li a div {
    position: absolute;
    left: 0px;
    top: 0px;
    right: 0px;
    bottom: 0px;
    background: rgba(41,41,41,0.6);
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: flex;
    -webkit-align-items: flex-end;
    -moz-align-items: flex-end;
    -ms-align-items: flex-end;
    align-items: flex-end;
    text-align: left;
	padding: 20px;
	color: #fff;
    opacity: 0;
	-moz-opacity: 0;
	filter:alpha(opacity=0);
	-webkit-transition: opacity 180ms ease-in-out;
	-moz-transition: opacity 180ms ease-in-out;
	-o-transition: opacity 180ms ease-in-out;
	transition: opacity 180ms ease-in-out;
}
 
	.no-touch .og-grid li a:hover div {
	    opacity: 1;
		-moz-opacity: 1;
		filter:alpha(opacity=100);
	}
	
	.touch .og-grid li a div {opacity: 1; background: rgba(41,41,41,0.4);}

	.og-grid li span.portfolio {
		display: block;
	    
	    overflow: hidden;
	    height: 200px;
	    width: 200px;
	    opacity: 0;
	    -webkit-transition: opacity .3s;
			-moz-transition: opacity .3s;
			-o-transition: opacity .3s;
			transition: opacity .3s;
	}
	
	.csstransitions .og-grid li span.portfolio.visible {opacity: 1;}
	
	.og-grid li > a,
	.og-grid li > a img {
		border: none;
		outline: none;
		position: relative;
	}
	
	.og-grid li > a:first-child {
		height:200px;
		display: block;
	}

	.og-grid li.og-expanded > a::after {
		top: auto;
		border: solid transparent;
		content: " ";
		height: 0;
		width: 0;
		position: absolute;
		pointer-events: none;
		border-bottom-color: #292929;
		border-width: 15px;
		left: 50%;
		margin: -20px 0 0 -15px;
	}
	
	.og-expander {
		position: absolute;
		background: #292929;
		top: auto;
		left: 0;
		width: 100%;
		margin-top: 10px;
		text-align: left;
		height: 0;
		overflow: hidden;
	}
	
	.og-expander-inner {
		padding: 50px 30px 10px;
		height: 100%;
	}
	
	a.og-next {
		position: absolute;
		display: block;
		width: 40px;
		height: 30px;
		top: 25px;
		right: 80px;
		text-indent: -6000px;
		background: url(../img/next.png) no-repeat 0 0;
	}
	a.og-prev {
		position: absolute;
		display: block;
		width: 40px;
		height: 30px;
		top: 25px;
		right: 130px;
		text-indent: -6000px;
		background: url(../img/prev.png) no-repeat 0 0;
	}
	
	.og-close {
		position: absolute;
		width: 40px;
		height: 40px;
		top: 20px;
		right: 20px;
		cursor: pointer;
	}
	
	.og-close::before,
	.og-close::after {
		content: '';
		position: absolute;
		width: 100%;
		top: 50%;
		height: 1px;
		background: #888;
		-webkit-transform: rotate(45deg);
		-moz-transform: rotate(45deg);
		transform: rotate(45deg);
	}
	
	.og-close::after {
		-webkit-transform: rotate(-45deg);
		-moz-transform: rotate(-45deg);
		transform: rotate(-45deg);
	}
	
	.og-close:hover::before,
	.og-close:hover::after {
		/*background: #333;*/
	}
	
	.og-fullimg,
	.og-details {
		width: 50%;
		float: left;
		height: 100%;
		overflow: hidden;
		position: relative;
		 -webkit-overflow-scrolling: touch;
	}
	
	.og-fullimg img {
		box-shadow: 0 5px 35px rgba(0,0,0,.65);
		-moz-box-shadow: 0 5px 35px rgba(0,0,0,.65);
		-webkit-box-shadow: 0 5px 35px rgba(0,0,0,.65);
	}
	
	.og-details {
		padding: 0 0 0 20px;
	}
	
	.og-fullimg {
		text-align: center;
	}
	
	.og-fullimg img {
		display: inline-block;
		max-height: 90%;
		max-width: 90%;
	}
	
	.og-details h3 {
		/*font-size: 42px!important;*/
		padding: 20px 0 10px;
		margin-bottom: 10px;
		color: #fff!important;
	}
	
	.og-details p {
	   	color: #999999!important;
	    font-weight: 400;
	    line-height: 22px;
	}
	
	.og-details a {
		display: inline-block;
		margin: 30px 0 0;
		outline: none;
		padding: 10px;
		text-align: center;
		border: 3px solid #80C080;
		border-radius: 6px;
		box-shadow: 0 2px 1px rgba(0, 0, 0, 0.2), inset 0 2px 1px rgba(0, 0, 0, 0.2);
		background: transparent;
		text-decoration: none;
		text-transform: uppercase;
		color: #fff;
		-webkit-transition: all 0.3s ease-in-out;
		-moz-transition: all 0.3s ease-in-out;
		-ms-transition: all 0.3s ease-in-out;
		-o-transition: all 0.3s ease-in-out;
		transition: all 0.3s ease-in-out;
	}	
	
	.og-details a:hover {
		background-color: rgba(0,0,0,0.6);
		text-decoration: none;
	}
	
	.og-details ul.thumbs {
		margin-left: 0;
		/*max-width: 450px;*/
		padding: 0;
		
		 -webkit-overflow-scrolling: touch;
	}
	
	.og-details ul.thumbs li,
	#og-grid ul.thumbs li {
		margin: 5px 5px 0 0;
		height: 80px;
		width:auto;
		overflow: inherit;
	}
	
	#og-grid ul.thumbs li > a{
		height:inherit;
	}


	.og-details ul.thumbs a {
		padding: 0; margin: 0;
	}
	
	.og-details ul.thumbs a img {
		border: 2px solid #292929!important;
		padding: 1px;
		height: 80px;
		width: 80px;
	}
	
	.og-details ul.thumbs a.active img {
		border: 2px solid #dcdcdc!important;
		padding: 1px;
	}
	
	.og-loading {
		width: 50px;
		height: 50px;
		background: url('../img/ajax-loader.gif') center center no-repeat;
		position: absolute;
		top: 25%;
		left: 50%;
		margin: -25px 0 0 -25px;
	}
	
	.og-details a[href="#"] {
		display:none;
	}

	.og-details ul.thumbs a[href="#"] {
		display:block;
	}


/* TIMELINE
============================== */

.cbp_tmtimeline {
	margin: 60px 0 0 0;
	padding: 0;
	list-style: none;
	position: relative;
} 

.cbp_tmtimeline li {
	position: relative;
}

/* The line */
.cbp_tmtimeline:before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 10px;
	background: #dcdcdc;
	left: 20%;
	margin-left: -10px;
}

/* The date/time */
.cbp_tmtimeline > li .cbp_tmtime {
	display: block;
	width: 25%;
	padding-right: 100px;
	position: absolute;
	line-height: 2em;
}

.cbp_tmtimeline > li .cbp_tmtime span {
	display: block;
	text-align: right;
}

.cbp_tmtimeline > li .cbp_tmtime span:first-child {
	font-size: 0.9em;
}

.cbp_tmtimeline > li .cbp_tmtime span:last-child {
	font-size: 2em;
}

.cbp_tmtimeline > li:nth-child(odd) .cbp_tmtime span:last-child {
}

/* Right content */
.cbp_tmtimeline > li .cbp_tmlabel {
	margin: 0 0 25px 25%;
	background: #333333;
	color: #fff;
	padding: 2em;
	/*font-size: 1.2em;*/
	font-weight: 300;
	line-height: 1.4;
	position: relative;
	border-radius: 5px;
}

.cbp_tmtimeline > li:nth-child(odd) .cbp_tmlabel {
	background: #cccccc;
}

.cbp_tmtimeline > li .cbp_tmlabel p.lead { 
	margin-top: 0px;
	padding: 0 0 10px 0;
	border-bottom: 1px solid rgba(255,255,255,0.4);
	color: #666666;
	font-size: 1.57em;
	font-weight: normal;
}
.cbp_tmtimeline > li .cbp_tmlabel p { 
	padding: 30px 60px 10px 50px;
}


.cbp_tmtimeline > li .cbp_tmlabel span.editable-checkbox {
	border: 1px solid blue;
	position: relative;
}

/* The triangle */
.cbp_tmtimeline > li .cbp_tmlabel:after {
	right: 100%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-right-color: #333333;
	border-width: 10px;
	top: 10px;
}

.cbp_tmtimeline > li:nth-child(odd) .cbp_tmlabel:after {
	border-right-color: #cccccc;
}

/* The icons */
.cbp_tmtimeline > li .cbp_tmicon {
	width: 40px;
	height: 40px;
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	font-size: 1.4em;
	line-height: 40px;
	-webkit-font-smoothing: antialiased;
	position: absolute;
	color: #fff;
	background: #80C080;
	border-radius: 50%;
	box-shadow: 0 0 0 8px #dcdcdc;
	text-align: center;
	left: 20%;
	top: 0;
	margin: 0 0 0 -25px;
}



/* =============================================================== */
/* Media Queries
================================================================ */

@media screen and (max-width: 1024px) {
	.og-grid {text-align: center;}
}

@media screen and (max-width: 650px) {
	.og-details {float: none; width: 100%; height: auto;}
	.og-fullimg {display: none;}
}
.touch .og-fullimg {display: none;}

@media only screen and (max-width: 767px) {
	.cbp_tmtimeline > li .cbp_tmlabel p.text {padding: 10px 20px 10px 20px;}
		
	.cbp_tmtimeline:before {
		display: none;
	}

	.cbp_tmtimeline > li .cbp_tmtime {
		width: 100%;
		position: relative;
		padding: 0 0 20px 0;
	}

	.cbp_tmtimeline > li .cbp_tmtime span {
		text-align: left;
	}

	.cbp_tmtimeline > li .cbp_tmlabel {
		margin: 0 0 30px 0;
		padding: 1em;
		font-weight: 400;
		font-size: 95%;
	}

	.cbp_tmtimeline > li .cbp_tmlabel:after {
		right: auto;
		left: 20px;
		border-right-color: transparent;
		border-bottom-color: #333333;
		top: -20px;
	}

	.cbp_tmtimeline > li:nth-child(odd) .cbp_tmlabel:after {
		border-right-color: transparent;
		border-bottom-color: #ccc;
	}

	.cbp_tmtimeline > li .cbp_tmicon {
		position: relative;
		float: right;
		left: auto;
		margin: -55px 5px 0 0px;
	}	
	
	
	.og-details h3 {font-size: 30px!important;}
	.og-details ul.thumbs li,
	#og-grid ul.thumbs li {height: 60px;}
	.og-details ul.thumbs a img {border: 1px solid #292929!important;	height: 60px;	width: 60px;}
	
	.touch .og-grid li span.portfolio {width: 200px; height: 200px;}
	.touch .og-grid li > a {height: 200px;}
}

@media only screen and (max-width: 479px) {

	.touch .og-grid li span.portfolio {width: 140px; height: 140px;}
	.touch .og-grid li > a {height: 140px;}
}