/* ======================================
  RESPONSIVE PORTFOLIO GRID FRONT STYLE
========================================*/
@import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);

.clearfix:before,
.clearfix:after {
    content: " ";
    display: table;
}

.clearfix:after {
    clear: both;
}

.clearfix {
    *zoom: 1;
}

.rgpg-grid {
	list-style: none;
	padding: 20px 0;
	margin: 0 auto;
	text-align: center;
	width: 100%;
	position:relative;
	font-family: 'Lato', Calibri, Arial, sans-serif;
}

.rgpg-grid  .og-grid{
	margin-bottom:0px;
}

.rgpg-grid ul li{
	display: inline-block;
	margin: 14px 5px 0 5px;
	vertical-align: top;
}

.rgpg-grid li > a,
.rgpg-grid li > a img {
    border-radius: 0;
    box-shadow: none;
    display: block;
    outline: medium none;
    position: relative;
}

.rgpg-grid li.og-expanded > a::after {
	top: auto;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-bottom-color: #ddd;
	border-width: 19px;
	left: 50%;
	margin: -25px 0 0 -15px;
}

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

.rgpg-grid .og-expander-inner {
	padding: 40px 20px;
	display:block;
	height: 100%;
	box-sizing: border-box;
}

.rgpg-grid .og-close {
	position: absolute;
	width: 40px;
	height: 40px;
	top: 20px;
	right: 20px;
	cursor: pointer;
	z-index: 1;
}

.rgpg-grid .og-close::before,
.rgpg-grid .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);
	transition: all 0.3s linear 0s;  -webkit-transition: all 0.3s linear 0s; -moz-transition: all 0.3s linear 0s; -o-transition: all 0.3s linear 0s; 
}

.rgpg-grid .og-close::after {
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

.rgpg-grid .og-close:hover::before,
.rgpg-grid .og-close:hover::after {
	background: #333;
}

.rgpg-grid .og-fullimg,
.rgpg-grid .og-details {
	width: 50%;
	float: left;
	height: 100%;
	overflow: hidden;
	position: relative;
}

.rgpg-grid .og-details {
    box-sizing: border-box;
    padding: 0 0 0 40px;
	margin-top: 20px;
	float:right;
}

.rgpg-grid .og-fullimg {
	text-align: center;
	line-height: 0;
	float:left;
}

.rgpg-grid .og-fullimg img {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
	border-radius: 0;
    box-shadow: none;
}

.rgpg-grid .og-details h3 {
    font-size: 52px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 10px;
    margin-top: 0;
    padding: 0px 0 10px;
    text-align: left;
}

.rgpg-grid .og-details p {
    color: #999;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;
    margin-left: 3px;
}

.rgpg-grid .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: 10px 0 0;
	outline: none;
	line-height: 1.3;
	text-decoration:none;
	margin-left:3px;
	transition: all 0.3s linear 0s;  -webkit-transition: all 0.3s linear 0s; -moz-transition: all 0.3s linear 0s; -o-transition: all 0.3s linear 0s; 
}

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

.rgpg-grid .og-details a:hover {
	opacity:.9;
}

.rgpg-grid .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) {
	.rgpg-grid .og-expander h3 { font-size: 32px; }
	.rgpg-grid .og-expander p { font-size: 13px; }
	.rgpg-grid .og-expander a { font-size: 12px; }
}
@media screen and (max-width: 650px) {
	.rgpg-grid .og-fullimg { display: none; }
	.rgpg-grid .og-details { float: none; width: 100%; }
}