.og-grid {
	background-color:#000;
	list-style: none;
	padding: 20px 0;
	margin: 0 auto;
	text-align: center;
	width: 100%;
}

.og-grid li {
	display: inline-block;
	margin: 8px;
	vertical-align: top;
	/*height: 250px;*/
}
.og-grid li:first-child {
	/*display:none;*/
}

.og-grid li > a,
.og-grid li > a img {
	border: none;
	outline: none;
	display: block;
	position: relative;
	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: #f5d491;
	border-width: 15px;
	left: 50%;
	margin: -20px 0 0 -15px;
}
.og-grid li a span.itemgrid {
	content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    -webkit-transition: background-color 0.3s;
    -moz-transition: background-color 0.3s;
    -o-transition: background-color 0.3s;
    transition: background-color 0.3s;
}
.og-grid li a:hover {
	background-image: url(../../img/ico_search.png);
	background-repeat: no-repeat;
	background-position: center center;
}
.og-grid li a:hover img {
	opacity: 0.5;
	
	-webkit-transition: all 0.3s ease-in-out;
		-moz-transition: all 0.3s ease-in-out;
        -ms-transition: all 0.3s ease-in-out;
        -o-transition: all 0.3s ease-in-out;
		transition: all 0.3s ease-in-out;
}
.og-grid li a:hover img {
	background: rgba( 0, 0, 0, 0.66) url(../../img/ico_search.png) center center no-repeat;
}

.og-expander {
	position: absolute;
	background: #f5d491;
	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: 20px;
	right: 20px;
	cursor: pointer;
}

.og-close::before,
.og-close::after {
	content: '';
	position: absolute;
	width: 100%;
	top: 50%;
	height: 1px;
	background: #000;
	-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;
	padding:2%;
}

.og-details {
	padding: 0 120px 0 20px;
}

.og-fullimg {
	text-align: center;
}

.og-fullimg img {
	display: inline-block;
	max-height: 100%;
	max-width: 100%;
	-webkit-box-shadow:  1px 1px 20px 2px #999;
     box-shadow:  1px 1px 20px 2px #999;
}

.og-details h3 {
	color:#000;
	font-weight: 300;
	font-size: 42px;
	padding: 40px 0 10px;
	margin-bottom: 10px;
}

.og-details p {
	font-weight: 400;
	font-size: 16px;
	line-height: 22px;
	color: #000;
}
#ajaxcontfilm, #ajaxcontgall  {
	width:218px;
	margin:0 auto;
}
#ajaxcont {
	width:175px;
	margin: 0 0 20px 0;
}
/*#filmografia #ajaxcont, #filmografia #ajaxcontfilm  {
	margin:0;
}*/
#ajaxcontfilm {
	width:170px;
}
.og-details a {
	font-weight: 500;
	font-size: 13px;
	color: #000000;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 10px 20px;
	border: 1px solid #000000;
	display: inline-block;
	margin: 30px 0 0;
	outline: none;
	-webkit-border-radius: 14px;
    border-radius: 14px;
	-webkit-transition: background 0.5s ease-in-out;
	-moz-transition: background 0.5s ease-in-out;
	-ms-transition: background 0.5s ease-in-out;
	-o-transition: background 0.5s ease-in-out;
	transition: background 0.5s ease-in-out;
}
#ajaxcont span, #ajaxcontfilm span, #ajaxcontgall span {
	white-space:nowrap;
	font-weight: 500;
	font-size: 13px;
	color: #f5d491;
	text-transform: uppercase;
	letter-spacing: 2px;
	padding: 10px 20px;
	border: 1px solid #f5d491;
	display: inline-block;
	margin: 30px 0 0;
	outline: none;
	-webkit-border-radius: 14px;
    border-radius: 14px;
	-webkit-transition: background 0.5s ease-in-out;
	-moz-transition: background 0.5s ease-in-out;
	-ms-transition: background 0.5s ease-in-out;
	-o-transition: background 0.5s ease-in-out;
	transition: background 0.5s ease-in-out;
}
#ajaxcont span, #ajaxcontfilm span {
	/*color:#000;*/
	background-color:#000000;
}
.og-details a:hover {
	text-decoration: none;
		
}
.og-details a::before, #ajaxcont span::before {
	content: '\2192';
	display: inline-block;
	margin-right: 10px;
}

#ajaxcontfilm span::before {
	content: '\2192';
	display: inline-block;
	margin-right: 10px;
	transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
}

.og-grid .og-details a:hover, #ajaxcont span:hover , #ajaxcontfilm span:hover, #ajaxcontgall span:hover{
	color: #000;
	border: 1px solid #333;
	background-image:none;
	background-color:#fff;
	-webkit-transition: background 0.5s ease-in-out;
	-moz-transition: background 0.5s ease-in-out;
	-ms-transition: background 0.5s ease-in-out;
	-o-transition: background 0.5s ease-in-out;
	transition: background 0.5s ease-in-out;
}

.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-details {
		padding: 0 20px 0 20px;
	}
	.og-fullimg {
		width:30%;
	}
	.og-details {
		width:70%;
	}
	
}
@media screen and (max-width: 830px) {

	.og-expander h3 { font-size: 32px; }
	.og-expander p { font-size: 13px; }
	.og-expander a { font-size: 12px; white-space:nowrap; }

}
@media screen and (max-width: 830px) {
	.og-fullimg {
		width:25%;
	}
	.og-details {
		width:75%;
	}
}

@media screen and (max-width: 650px) {

	.og-fullimg { display: none; }
	.og-details { float: none; width: 100%; }
	
}
@media screen and (max-width: 480px) {
	.og-expander h3 {
		font-size:22px;
		line-height:normal;
	}
	.og-close {
	position: absolute;
	z-index:99999;
	width: 40px;
	height: 40px;
	top: 50px;
	right: 5px;
	cursor: pointer;
     }
	 .og-close::before, .og-close::after {
		 width:80%;
	 }
}
@media screen and (max-width: 320px) {
	.og-expander h3 {
		font-size:28px;
		font-weight:300;
		}
	.og-details {
		padding:0;
	}
	.og-details p {
	font-weight: 400;
    font-size: 16px;
	line-height: 20px;
	color: #000;
	margin:0;
    }
	.og-details h3 {
		margin-bottom:0px;
	}
	.og-details a {
		margin-top:20px;
	}
}