.og-expanded:nth-child(5) /*-------------grid styles----------*/

.og-grid {
	list-style: none;
	padding: 20px 0;
	margin: 40px auto;
	text-align: center;
	width: 100%;
}

.og-grid li {
	display: inline-block;
	margin: 10px 10px 0 0px;
	vertical-align: top;
	width: calc(33.33% - 10px);
}

.og-grid li:nth-child(3),
.og-grid li:nth-child(6),
.og-grid li:nth-child(9),
.og-grid li:nth-child(12){
	margin-right:0;
}

.og-grid li > a,
.og-grid li > a img {
	border: none;
	outline: none;
	display: block;
	position: relative;
	width: 100%;
}

.hover-image{
	margin:0;
	width: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: #04012561;
	border-width: 20px;
	left: 50%;
	margin: -20px 0 0 -15px;
}

.og-expander {
	position: absolute;
	background: #04012561;
	top: auto;
	left: 0;
	width: 100%;
	margin-top: 20px;
	text-align: left;
	height: 0;
	overflow: hidden;
}

.og-expander-inner {
	padding: 50px 30px;
	height: 100%;
}

.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: 3px;
	background: rgba(77, 123, 162, 1);
	background: rgb(87 74 188);
	-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: #8587fa;
}

.og-fullimg,
.og-details {
	width: 50%;
	float: left;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.og-details {
	padding: 0 40px 0 20px;
}

.og-fullimg {
	text-align: center;
}

.og-fullimg img {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
}

.og-details h3 {
	font-weight: 300;
	font-size: 32px;
	padding: 0 0 10px;
	margin-bottom: 10px;
	font-family: 'Raleway', sans-serif;
	color: #574abc;
}

.og-details p {
	font-weight: 400;
	font-size: 20px;
    line-height: 26px;
    color: #636fab;
    text-align: left;
}

.og-details a {
	font-weight: 700;
	font-size: 16px;
	color: #333;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 10px 20px;
	border: 3px solid #333;
	display: inline-block;
	margin: 30px 0 0;
	outline: none;
	display:none;
}


.og-expanded:nth-child(2) .og-expander-inner .og-details a,
.og-expanded:nth-child(3) .og-expander-inner .og-details a,
.og-expanded:nth-child(4) .og-expander-inner .og-details a,
.og-expanded:nth-child(8) .og-expander-inner .og-details a,
.og-expanded:nth-child(9) .og-expander-inner .og-details a,
.og-expanded:nth-child(11) .og-expander-inner .og-details a,
.og-expanded:nth-child(12) .og-expander-inner .og-details a,
.og-expanded:nth-child(13) .og-expander-inner .og-details a,
.og-expanded:nth-child(14) .og-expander-inner .og-details a{
	display: none;
}

.og-details a::before {
	content: '\2192';
	display: inline-block;
	margin-right: 10px;
}

.og-details a:hover {
	border-color: #4C7AA2;
	color: #4C7AA2;
}

.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: 1024px) {
	.og-grid li{
		width: calc(50% - 5px);
	}
	
	.og-grid li:nth-child(odd){
		margin-right:5px;
	}
	
	.og-grid li:nth-child(even){
		margin-right:0;
	}
	
	.og-details h3 {
		font-size: 35px;
	}

}

@media screen and (max-width: 830px) {

	.og-expander h3 { font-size: 32px; }
	.og-expander p { font-size: 13px; }
	.og-expander a { font-size: 12px; }

}

@media screen and (max-width: 650px) {

	.og-fullimg { display: none; }
	.og-details { float: none; width: 100%; }
	
}

@media screen and (max-width: 650px) {
	.og-grid li{
		width:100%;
		margin-right:0;
	}
	
}