﻿* {
	margin: 0;
	padding: 0;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

html { height: 100%; }

body {
	min-height: 100%;
	line-height: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-family: 'Lato', sans-serif;
/* 	background: #000 url('../imx/bg2.jpg'); */
	background: #000;
	margin: 10px 0px 10px 10px;
}

ul {list-style-position: inside;}

.cf {
	content: "";
	display: table;
	clear: both;
}

#mask {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: radial-gradient(ellipse at center,  rgba(0,0,0,0) 0%,rgba(0,0,0,1) 100%);
}

#main {
	max-width: 2400px;
	margin: 0 auto;
}

.rollover-grid > li:nth-of-type(3n+1) {clear: both;}
.rollover-grid > li:nth-of-type(n) {clear: none;}
.rollover-grid > li {width: 33%;}

.rollover-grid > li {
	display: block;
	height: auto;
	float: left;
	padding: 10px 10px 10px;
	list-style: outside none none;
}
.rollover-grid:before, .rollover-grid:after {
	content: " ";
	display: table;
}

.rollover-grid img {
	width: 100%;
	position: absolute;
}

.rollover-grid a {
	position: relative;
	overflow: hidden;
	display: block;
	height: 300px;
}

.rollover-grid a .overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 80%;
	overflow: hidden;
	transition: top 0.35s ease 0s;
}

.rollover-grid a .overlay canvas {
	position: absolute;
	width: 100%;
	height: 100%;
	top: -80%;
	transition: top 0.35s ease 0s;
}

.rollover-grid a .item {
	position: absolute;
	top: 80%;
	bottom: 0px;
	left: 0px;
	right: 0px;
	transition: top 0.35s ease 0s;
}

.rollover-grid a .item-content {
	display: table;
	height: 100%;
	width: 100%;
}

.rollover-grid a h2, .rollover-grid a .item-content-hover {
	font: 700 18px "Lato","Arial",sans-serif;
	display: table-cell;
	vertical-align: middle;
	color: #FFF;
	text-align: left;
	padding: 0px 55px 0px 24px;
	transition: opacity 0.35s ease 0s;
	background-color: transparent;
	list-style: none;
}
.rollover-grid a h2 {
	font-size: 24px;
	text-shadow: 0 0 4px rgba(0,0,0,1), 0 0 2px rgba(0,0,0,0.4);
}
.rollover-grid a .item-content-hover {
	font: 400 20px/1.4 "Lato","Arial",sans-serif;
	opacity: 0;
	visibility: hidden;
	padding: 0px 24px;
	text-shadow: 0 0 4px rgba(0,0,0,1), 0 0 2px rgba(0,0,0,0.4);
}

.rollover-grid a .item-content-hover b {
	font-weight: 900;
}

.rollover-grid .cta {
	position: absolute;
	width: 100%;
	left: 0px;
	text-align: center;
	bottom: 10px;
	color: rgb(255, 255, 255);
	font-size: 14px;
	text-shadow: 0px 0px 4px rgb(0, 0, 0);
	opacity: 0;
	visibility: hidden;
	transition: all 0.35s;
}

/*
.rollover-grid a.open .item-content-hover, .rollover-grid a.open .cta {
	opacity: 1;
	visibility: visible;
}
.rollover-grid a.open h2 {opacity: 0;}
.rollover-grid a.open .item, .rollover-grid a.open .overlay, .rollover-grid a.open .overlay canvas {top: 0%;}
*/

.rollover-grid a:hover .item-content-hover, .rollover-grid a:hover .cta {
	opacity: 1;
	visibility: visible;
}
.rollover-grid a:hover h2 {opacity: 0;}
.rollover-grid a:hover .item, .rollover-grid a:hover .overlay, .rollover-grid a:hover .overlay canvas {top: 0%;}


.hide {
	display: none !important;
	visibility: hidden;
}

iframe {
	width: 300px;
	height: 250px;
	border: 0;
	position: fixed;
	left: calc(50% - 150px);
	top: calc(50% - 125px);
	box-shadow: 0 0 12px 6px rgba(0,0,0,0.6);
	visibility: hidden;
	opacity: 0;
}

iframe.size-160x600 {
	width: 160px;
	height: 600px;
	left: calc(50% - 80px);
	top: calc(50% - 300px);
}
iframe.size-300x600 {
	width: 300px;
	height: 600px;
	left: calc(50% - 150px);
	top: calc(50% - 300px);
}
iframe.size-500x250 {
	width: 500px;
	height: 250px;
	left: calc(50% - 250px);
	top: calc(50% - 125px);
}

#overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.8);
}

#overlay.loading {
	background-image: url('../imx/ajax-loader.gif');
	background-position: center center;
	background-repeat: no-repeat;
}

#overlay.message {
	display: table;
}
#overlay.message > div {
	display: table-cell;
	padding: 50px;
	text-align: center;
	vertical-align: middle;
	color: #fff;
	font-size: 15px;
	line-height: 1.2;
}

.door {
	position: fixed;
	width: 50%;
	height: 100%;
	top: 0;
	bottom: 0;
	background: rgba(0,0,0,1) url('../imx/ajax-loader.gif') -16px center no-repeat;
}
#left-door {
	left: 0;
	background-position: calc(100% + 16px) center;
}
#right-door {
	right: 0;
}

#pixels {
	position: absolute;
	left: -5000px;
}

@media (max-width: 699px) {
	.rollover-grid > li {width: 100%;}
	.rollover-grid > li:nth-of-type(2n+1) {clear: both;}
	.rollover-grid > li:nth-of-type(n) {clear: none;}
	.rollover-grid a .item-content-hover {font-size: 18px;}
	.rollover-grid a h2 {font-size: 21px;}
}

@media (min-width: 700px) and (max-width: 1023px) {
	.rollover-grid > li {width: 50%;}
	.rollover-grid > li:nth-of-type(n+1) {clear: both;}
	.rollover-grid > li:nth-of-type(n) {clear: none;}
}
@media (min-width: 1441px) and (max-width: 1920px) {
	.rollover-grid > li {width: 25%;}
	.rollover-grid > li:nth-of-type(n+3) {clear: both;}
	.rollover-grid > li:nth-of-type(n) {clear: none;}
}
@media (min-width: 1921px) {
	.rollover-grid > li {width: 20%;}
	.rollover-grid > li:nth-of-type(n+4) {clear: both;}
	.rollover-grid > li:nth-of-type(n) {clear: none;}
}

@media (min-height: 600px) {
	iframe.size-160x600 {position: fixed;}
	iframe.size-300x600 {position: fixed;}
}

