.og-grid {
	list-style: none;
	padding: 20px 0;
	margin: 0 auto;
	text-align: center;
    max-width: 980px;
}

.og-grid li {
	display: inline-block;
	margin: 1% .4% 0 .4%;
	vertical-align: top;
	height: 233px;
    width: auto;
}

.og-grid li > a,
.og-grid li > a img {
	border: none;
	outline: none;
	display: block;
	position: relative;
    width: 233px;
    height:auto;
}

.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: #d1d1d1;
	border-width: 15px;
	left: 50%;
	margin: -20px 0 0 -15px;
}


.og-expander {
	position: absolute;
	background: #d1d1d1;
	top: auto;
	left: 0;
	width: 100%;
	margin-top: 10px;
	text-align: left;
	height: 0;
	overflow: hidden;
}

.og-expander-inner {
	padding: 50px 30px;
	height: 100%;
}

.og-close {
	position: absolute;
	width: 40px;
	height: 40px;
	top: 2%;
	right: 2%;
	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;
}

.og-details {
    margin-top: 1%;
	padding: 0 3% 0 2%;
    width:40%;
}

.og-fullimg {
	text-align: center;
    width:60%;
}

.og-fullimg img {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
}

.og-details h3 {
	font-weight: 300;
	font-size: 2.5em;
	padding: 5% 0 2%;
	margin-bottom: 2%;
}

.og-details p {
	font-size: .8em;
	line-height: 1.2em;
	color: #666;
}

.og-details a {
	font-size: .8em;
	color: #fff;
  /*background: #85C5D1; */
    background: #666;
	text-transform: uppercase;
	letter-spacing: .1em;
	padding: 3% 4%;
	display: inline-block;
	margin: 4% 0 0;
	outline: none;
}

.og-details a::before {
	content: '\2192';
	display: inline-block;
	margin-right: 10px;
}

.og-details a:hover {
	opacity: .8;
}

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

.og-loading {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ddd;
	box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ccc;
	position: absolute;
	top: 50%;
	left: 50%;
	margin: -25px 0 0 -25px;
	-webkit-animation: loader 0.5s infinite ease-in-out both;
	-moz-animation: loader 0.5s infinite ease-in-out both;
	animation: loader 0.5s infinite ease-in-out both;
}

@-webkit-keyframes loader {
	0% { background: #ddd; }
	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@-moz-keyframes loader {
	0% { background: #ddd; }
	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

@keyframes loader {
	0% { background: #ddd; }
	33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
	66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
}

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

	.og-expander h3 { font-size: 1em; }
	.og-expander p { font-size: .7em; }
	.og-expander a { font-size: .8em; }
    
}


@media screen and (max-width: 650px) {
    #main {position:relative;}
    #top {padding-top:4%;}
    .og-fullimg { display: none; }
	.og-details { float: none; width: 100%; }
    .og-details h3 {
	font-size: 52px;
	padding: 30px 0 10px;
	margin-bottom: 10px;
}

.og-details p {
	font-weight: 400;
	font-size: 16px;
	line-height: 22px;
	color: #999;
}

.og-details a {
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 10px 20px;
	display: inline-block;
	margin: 30px 0 0;
	outline: none; 
	
}
    

@media screen and (max-width: 480px) {    
    .og-grid li {
	height: 150px;
    margin: 2% .3% 0 .5%;
    width: auto;
}

.og-grid li > a,
.og-grid li > a img {
    width: 150px;
    height:auto;
}
    }