/* transitions: Codrops, src http://tympanus.net/codrops/2013/04/23/fullscreen-layout-with-page-transitions/ */


.navigation-main {
	position: absolute;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #fdcf2c;
}

.navigation-main > section {
	position: absolute;
	width: 25%;
	height: 100%;
}

.navigation-main > section:first-child {
  top: calc(96px - 1px);
  bottom: calc(120px -1px);
  height: calc(100% - 96px);
  height: -moz-calc(100% - 96px);
  height: -webkit-calc(100% - 96px);
  background: #e8e6e1;
}

.navigation-main > section:first-child.bl-expand {
  background: #fdcf2c;
}

.navigation-main > section:nth-child(2) {
  top: calc(96px - 1px);
  bottom: calc(120px -1px);
  height: calc(100% - 96px);
  height: -moz-calc(100% - 96px);
  height: -webkit-calc(100% - 96px);
	left: 25%;
	background: #e8e6e1;
}

.navigation-main > section:nth-child(2).bl-expand {
	background: #fdcf2c;
}

.navigation-main > section:nth-child(3) {
  top: calc(96px - 1px);
  bottom: calc(120px -1px);
  height: calc(100% - 96px);
  height: -moz-calc(100% - 96px);
  height: -webkit-calc(100% - 96px);
	left: 50%;
	background: #e8e6e1;
}

.navigation-main > section:nth-child(3).bl-expand {
	background: #fdcf2c;
}

.navigation-main > section:nth-child(4) {
  top: calc(96px - 1px);
  bottom: calc(120px -1px);
  height: calc(100% - 96px);
  height: -moz-calc(100% - 96px);
  height: -webkit-calc(100% - 96px);
	left: 75%;
	background: #e8e6e1;
}

.navigation-main > section:nth-child(4).bl-expand {
	background: #fdcf2c;
}


.bl-box {
	position: fixed;
    top: calc(96px - 1px);
    bottom: calc(120px -1px);
    height: calc(100% - 214px);
    height: -moz-calc(100% - 214px);
    height: -webkit-calc(100% - 214px);
	cursor: pointer;
	opacity: 1;
	/* Centering with flexbox */
    /* display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -moz-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center; */
}


.navigation-main > section .bl-icon-close {
	position: absolute;
	top: 20px;
	right: 20px;
	cursor: pointer;
	z-index: 100;
	pointer-events: none;
}

.bl-icon-close i {
	font-size: 26px;
}

.bl-content, 
div.bl-panel-items > div > div {
	pointer-events: none;
	position: absolute;
	top: 60px;
	left: 30px;
	right: 30px;
	bottom: 30px;
	padding: 0 20px;
	overflow: hidden;
	overflow-y: auto;
}

/* Custom content */

.bl-content p {
	margin: 0 auto;
	padding-bottom: 15px;
	font-size: 1.7em;
	line-height: 1.8;
}

.bl-content h2 {
	font-size: 3em;
	font-weight: 300;
	margin: 0 0 20px 0;
}

.bl-content article {
	padding: 20px 40px 20px 0px;
}

.bl-content article h3 {
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	margin: 0 0 10px 0;
	padding-top: 20px;
	font-size: 1.4em;
}

.bl-content article a {
	color: rgba(0,0,0,0.2);
}

.bl-content > ul {
	list-style: none;
	padding: 0;
	margin: 0;
} 

.bl-content > ul li {
	display: inline-block;
	width: 20%;
	margin: 1%;
}

.bl-content > ul li a {
	display: block;
	padding: 0;
	border: 8px solid rgba(0,0,0,0.1);
}

.bl-content > ul li a img {
	display: block;
	max-width: 100%;
}
/* Transition classes and properties */
/* Separated for a better overview and control */

.navigation-main > section {
	-webkit-transition: all 0.5s ease-in-out;
	-moz-transition: all 0.5s ease-in-out;
	transition: all 0.5s ease-in-out;
}

.navigation-main > section.bl-expand {
	left: 0;
    top: calc(96px - 1px);
    bottom: calc(120px -1px);
	height: calc(100% - 96px);
	height: -moz-calc(100% - 96px);
	height: -webkit-calc(100% - 96px);
	width: 100%;
}

.navigation-main > section.bl-expand-top {
	z-index: 100;
}

.navigation-main.bl-expand-item > section:not(.bl-expand),
.navigation-main.bl-expand-item > section.bl-scale-down {
	opacity: 0;
}

.bl-box {
	-webkit-transition: opacity 0.2s linear 0.5s;
	-moz-transition: opacity 0.2s linear 0.5s;
	transition: opacity 0.2s linear 0.5s;
}

section.bl-expand .bl-box {
	opacity: 0;
	-webkit-transition: opacity 0s linear;
	-moz-transition: opacity 0s linear;
	transition: opacity 0s linear;
}

.bl-icon-close {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    z-index: 99999999;
    pointer-events: auto;
    background: transparent;
    width: 28px;
	
    height: 28px;
    border: 2px solid #000;     
	font-size: 15px;
    line-height: 23px;
    -webkit-transition: all linear 0.3s;
    -moz-transition: all linear 0.3s;
    transition: all linear 0.3s;
}

.bl-icon-close span {
	transform: rotate(-45deg);	
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-ms-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
}

.bl-icon-close:hover,
.bl-icon-close:active,
.bl-icon-close:focus {
	background: #000;
	color: #fdcf2c;
    -webkit-transition: all linear 0.3s;
   -moz-transition: all linear 0.3s;
   transition: all linear 0.3s;
}


@media screen and (max-width: 46.5em) {
	.bl-content,
	.bl-box {
		font-size: 75%;
	}

	.bl-expand .bl-box {
		height: 130px;
	}

	.bl-content > ul li {
		width: 40%;
	}
}

@media screen and (max-width: 992px) {
	.navigation-main > section.bl-expand {
		height: 100vh !important;
	}	
	
	.navigation-main > section.bl-expand.bl-expand-top{
		top: 0px !important;
	}
}