.og-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	width: auto;
    display:block;
}

.og-grid li {
	display:inline-block;
	margin-bottom:15px;
    padding-right: 15px;
    padding-left: 15px;
	vertical-align: top;
	height: auto;
    width:100%;
}
.og-grid li a {
    position:relative;
    width:100%;
}
.og-grid li .crop {
    width:100%;
    overflow:hidden;
}
.og-grid li .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
    padding: 5px;
    background: #fff;
    color: #555;
    height: 70px;
    overflow: hidden;
    font-size: 18px;
    font-weight: bold;
    line-height: 21px;
    letter-spacing: -0.2px;
}

.og-grid li:hover .caption, .og-grid li.og-expanded .caption {
    background:rgba(9, 163, 228, 0.9);
    color:#fff;
}
.button-arrow {
   background-position: left;
}
.og-grid li > a,
.og-grid li > a img {
	border: none;
	outline: none;
	display: block;
	position: relative;
    width: 100%;
}
.og-grid li > a img {
    width:125%;
    margin:0;
}

.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: #E4E4E4;
	border-width: 30px;
    left: 50%;
    margin: -30px 0 0 -30px;
}

.og-expander {
	position: absolute;
	background: #E4E4E4; 
	top: auto;
    /*height:auto !important;*/
	left: 0;
    margin-top: 29px;
	width: 100%;
	text-align: left;
	height: 0;
	overflow: hidden;
}

.og-expander-inner {
	padding: 50px 30px;
	height: 100%;
    position: relative;
}

.og-close {
	position: absolute;
	width: 25px;
	height: 25px;
	top: 20px;
	right: 20px;
	cursor: pointer;
    background-image:url('/img/svg/Assets_Projects_Close button_26pxX26px.svg');
    background-repeat:no-repeat;
}

/*.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 {
	padding: 0 0 0 20px;
}

.og-fullimg {
	text-align: center;
}

.og-fullimg img {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
    height:auto;
    /*height: 100%;
    margin-left: -30%; ---> Makes the image square and full height of element */
}

.og-details h3 {
	font-size: 30px;
    line-height:34px;
	margin-top:0;
	margin-bottom: 10px;
}

.og-details p {
	font-weight: 400;
	font-size: 18px;
	line-height: 22px;
}

.og-details a {

	display: inline-block;
	outline: none;
}

.og-details a:hover {
	border-color: #999;
	color: #999;
}

.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: 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 (min-width: 768px) {
    .og-grid li {
        width: 32.33333333%;
        height:220px;
    }
}

@media(min-width:480px) and (max-width:768px) {
    .og-grid {
        width:100%;
    }
    .og-grid li {
        width:49%;
        height:250px
    }
    .og-grid li > a, .og-grid li > a img {
        width: 100%;
    }
    .og-grid li > a img {
        width: 125%;
        margin-left: 0;
    }
}

