.og-grid {
	list-style: none;
	padding: 0;
	margin: 0 auto;
	text-align: center;
	width: 100%;
}

.og-grid li {
	display: inline-block;
	margin: 0px 5px 15px 5px;
	vertical-align: top;
    width:212px;
}

.og-grid li > a,
.og-grid li > a img {
    width: 100%;
	border: none;
	outline: none;
	display: block;
	position: relative;
    transition: all 0.6s ease-in-out;
    -moz-transition: all 0.6s ease-in-out;
    -webkit-transition: all 0.6s ease-in-out;
    -o-transition: all 0.6s ease-in-out;
}

.og-grid li > a img:hover {
    border-radius: 50%;

    /*z-index: 9999;*/
}

.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: #f5f5f5;
	border-width: 15px;
	left: 50%;
	margin: -20px 0 0 -15px;
}

.og-expander {
	position: absolute;
	background: rgba(0, 0, 0, 0.2);
	top: auto;
	width: 100%;
        width: calc(100% - 18px);
	left: 9px;
	margin-top: 10px;
	text-align: left;
	height: 100%;
	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%;
        left: 0;
	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: 46%;
	float: left;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.og-details {
	padding: 0 30px 0 40px;
}

.og-fullimg {
	text-align: center;
}

.og-fullimg img {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
}

.og-details h3 {
	padding: 40px 0 10px;
	margin-bottom: 10px;
	font-size: 21px;
}

.og-details>div {
	font-size: 15px;
}

.og-details a {
	color: #FFF;
	float: left;
	font-size: 15px;
        font-weight: bold;
        text-decoration: none;
	margin-top: 20px;
        
	position: relative;
	display: inline-block;
	outline: none;
	overflow: hidden;
}

.og-details a span {
	display: block;
	padding: 10px 60px;
	background: #291455;
	border: 2px solid #291455;
        border-radius: 100px;
	-webkit-border-radius: 100px;-moz-border-radius:100px;border-radius:100px;
	-webkit-transition: -webkit-transform 0.3s;
	-moz-transition: -moz-transform 0.3s;
	transition: transform 0.3s;
}

.og-details a::before {
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	padding: 10px 60px;
	background: #fff;
	color: #291455;
	content: attr(data-hover);
	border: 2px solid #291455;
        border-radius: 100px;
	-webkit-border-radius: 100px;-moz-border-radius:100px;border-radius:100px;
	-webkit-transition: -webkit-transform 0.3s;
	-moz-transition: -moz-transform 0.3s;
	transition: transform 0.3s;
	-webkit-transform: translateX(-25%);
}

.og-details a:hover span,
.og-details a:focus span {
	-webkit-transform: translateX(100%);
	-moz-transform: translateX(100%);
	transform: translateX(100%);
}

.og-details a:hover::before,
.og-details a:focus::before {
	-webkit-transform: translateX(0%);
	-moz-transform: translateX(0%);
	transform: translateX(0%);
}

.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; }
}


/* ============================================================================= 
4. Media Queries 
============================================================================= */

	/* Smaller than standard 960 (devices and browsers) */
	@media only screen and (max-width: 959px) {
		}

	/* Tablet Portrait size to standard 960 (devices and browsers) */
	@media only screen and (min-width: 768px) and (max-width: 959px) {
	.og-grid li {
    width:223px;
    }
    .og-fullimg {
	width: 40%;
	float: left;
	height: 100%;
	overflow: hidden;
	position: relative;
    }
    .og-details {
	width: 50%;
	float: left;
	height: 100%;
	overflow: hidden;
	position: relative;
    }	
	}
	
	/* All Mobile Sizes (devices and browser) */
	@media only screen and (max-width: 767px) {
    #home {
    height: 670px;
	background-image: url(../images/bg.png);
	background-color: #fff;
	border-bottom: 2px solid #dddddd;
    }
   .subpage_title{
    text-align: center;
	margin-top: 90px;
	margin-bottom: 30px;
    }
	.portrait{
    text-align: center;
    margin-top: 130px;
    }
    #nav {
	margin-top: 20px;
	display: inline-block;
	float: right;
	border-radius: 50px 50px 50px 0px;
	background: #333;
	-webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, .2);
	-moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, .2);
	box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, .2);
    }

    .navigation li {
	float: left;
	display: inline-block;
	margin: 10px 2px 5px 2px;
	margin-left: 8px;
	text-align: center;
	cursor: pointer;
	padding: 0;
	text-shadow: none;
	-webkit-transition: all 0.3s ease-out;
	-moz-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
    }

    .navigation li h5{
    font-size: 13px;
    color: #fff;
	text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
    }

    .navigation li:first-child {
    margin-left: 15px;
    }

    .navigation li:last-child {
    margin-right: 15px;
    }

    .navigation li:hover,
    .active {
    color: #333!important;
    }

    .service ul {
    margin-bottom: 30px;
    }	

    .og-expander h3 { font-size: 32px; }
    .og-expander p { font-size: 13px; }
    .og-expander a { font-size: 12px; }

    .og-fullimg { display: none; }
    .og-details { width: 100%; padding: 0; }

    .og-expander-inner {
	padding: 0;
	margin-top: 40px;
	margin-left: 20px;
    margin-right: 20px;
    }
    }
	
	/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
	@media only screen and (min-width: 480px) and (max-width: 767px) {
	.subpage_title{
    text-align: center;
	margin-top: 110px;
	margin-bottom: 30px;
    }
    .levelMarks span { 
	margin-left: 32.95%; 
    }
    .og-grid li {
	display: inline-block;
	margin: 10px 0 10px 0;
	vertical-align: top;
    width:380px;
    }
    .og-grid li:first-child {
	margin: 0 0 10px 0;
    }
    .og-grid li:last-child {
	margin: 10px 0 0 0;
    }
    }

	/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
	@media only screen and (max-width: 479px) {
    .og-grid li {
	display: inline-block;
	margin: 10px 0 10px 0;
	vertical-align: top;
    width:260px;
    }
    .og-grid li:first-child {
	margin: 0 0 10px 0;
    }
    .og-grid li:last-child {
	margin: 10px 0 0 0;
    }	
	}
