/*--------------------------------------------------------------------------*/
/*
/*	4.	Home Styles
/*
/*--------------------------------------------------------------------------*/


body.home {
margin-top: 0;
padding-top: 0;
}

body.home main {
width: 100%;	
}

body.home main section {
height: 98vh; /* vh stands for view-port height, 1vh is 1% of screen height */
position: relative;
width: 100%;
border-bottom: solid 2px #fff;
overflow: hidden;
/*padding-right: 80px;*/
}


footer {
/*width: calc(100% - 80px);*/
}


body.home main section.last {
height: auto;
padding-top: 80px;
/*padding-right: 80px;*/
}

body.home main section div.image-bg {
width: 100%;
height: 100%;
/*border: dashed 8px #fff;*/
box-sizing: border-box;
position: relative;
z-index: 10;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
}


.ghost-panel {
position: absolute;
width: 100%;
height: 60%;
top: 20%;
left: 0;
box-sizing: border-box;
/*border: solid 2px #fc0;*/
z-index: -1;
}

div.lower-third {
/*position: absolute;
right: 80px;
bottom: 10%;
width: 50%;
background: rgba(255,255,255,0.9);
z-index: 15;
padding: 1% 2% 100px;
padding: 1% 2%;
color: #383a35;*/
border-left: solid 8px #5f8eb5;
border-right: 0;
}

div.lower-third p br {
display: none;	
}

/*
div.lower-third strong,
div.lower-third b {
color: #de6026;
}

div.lower-third.left {
right: auto;
left: 0;
border-right: solid 8px #5f8eb5;
border-left: 0;
}

div.lower-third h2 {
font-size: 2.4vw;
font-weight: 400;	
}

div.lower-third h2 span {
font-size: 4vw;
}

div.lower-third p {
font-size: 1.3vw;
font-weight: 200;	
}

@media screen and (min-width: 1600px) {

	div.lower-third h2 {
	font-size: 40px;
	line-height: 30px;
	}
	
	div.lower-third h2 span {
	font-size: 60px;
	}	

	div.lower-third p {
	font-size: 30px;
	}
	
}
*/

body.home section .down {
-webkit-border-top-left-radius: 50%;
-webkit-border-top-right-radius: 50%;
-moz-border-radius-topleft: 50%;
-moz-border-radius-topright: 50%;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
width: 100px;
height: 100px;
background: rgba(255,255,255,0.9);
position: absolute;
bottom: -50px;
left: 50%;
margin-left: -50px;
z-index: 40;
}

body.home section .down::after {
content: "\f347";
font-size: 60px;
font-stretch: expanded;
font-family: 'Dashicons';
line-height: 80px;
height: 50px;
width: 100px;
/* vertical-align: top; */
top: -5px;
position: absolute;
text-align: center;
color: #9b9c9a;
cursor: pointer;
}

body.home section .down:hover::after {
color: #de6126;
}

/*div.lower-third .down-arrow {
width: 0;
height: 0;
border-style: solid;
border-width: 30px 80px 0 80px;
border-color: #383a35 transparent transparent transparent;
position: absolute;
bottom: 20px;
left: 50%;
margin-left: -80px;
opacity: 0.5;
transition: all 0.3s ease 0s;
cursor: pointer;
-webkit-animation: pulse 1.5s infinite;
}

div.lower-third .down-arrow:hover {
opacity: 1.0;
}*/

@-webkit-keyframes pulse {
  0% {
    @include transform(scale(.9));
  }
  70% {
    @include transform(scale(1));
  }
    100% {
    @include transform(scale(.9));
  }
}


/*--------------------------------------------------------------------------*/
/*
/*
/*--------------------------------------------------------------------------*/

body.home #side-nav {
position: fixed;
right: 0;
top: 0;
z-index: 50;
height: 100vh;
width: 80px;
background-color: #ebebea;
border-left: solid 2px #fff;
}

body.home #side-nav .btn {
position: absolute;
width: 10px;
height: 10px;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
background-color: #fff;
box-sizing: border-box;
left: 35px;
transition: all 0.3s ease 0s;
}

body.home #side-nav .btn:hover {
background-color: #de6126;
}

body.home #side-nav .btn.active {
background-color: #de6126;
}

body.home #side-nav #btn-one {
top: 50%;
margin-top: -80px;	
}

body.home #side-nav #btn-two {
top: 50%;
margin-top: -25px;	
}

body.home #side-nav #btn-three {
top: 50%;
margin-top: 25px;	
}

body.home #side-nav #btn-four {
top: 50%;
margin-top: 80px;	
}



@media only screen and (max-width:770px) {

	body.home main section.last,
	body.home main section {
	/*height: 90vh;*/
	}
	
}



@media only screen and (max-width:640px) {
	
	body.home main section.last,
	body.home main section {
	/*padding-right: 60px;*/
	/*height: 90vh;*/
	}
	
	div.lower-third {
	/*right: 60px;*/
	border-right: 0;
	border-left: 0;
	padding-top: 6px;
	padding-bottom: 6px;
	}
	
	div.lower-third h2 {
	font-size: 30px;
	}	

	body.home #side-nav {
	width: 60px;
	}
	
	body.home #side-nav .btn {
	left: 25px;
	}

	footer {
	/*width: calc(100% - 60px);*/
	}

}


@media only screen and (max-width:640px) and (orientation: portrait) {

	body.home main section div.image-bg {
	background-size: 80vh;
	background-position: top left;	
	}
	
	body.home main section#one {
	margin-top: -54px;
	padding-top: 54px;	
	}
	
	body.home main section#four {
	height: auto;	
	}
	
	body.home main section {
	margin-top: 54px;
	}
	
	div.lower-third {
	text-align: center;
	right: 0;
	width: 100vw;
	padding: 0 70px 0 10px;	
	}
	
	div.lower-third p br {
	display: inline;	
	}
	
	body.home section .down {
	margin-left: -75px;	
	}
	
	/* temp BG positions */
	
	body.home main section#one div.image-bg {
		background-position: 10% top;
	}
	
	body.home main section#two div.image-bg {
		background-position: 45% top;
	}
	
	body.home main section#three div.image-bg {
		background-position: 80% top;
	}
	
	.accordion ul li img {
	max-width: 200px;	
	}
	
}



/*--------------------------------------------------------------------------*/
/*
/*
/*--------------------------------------------------------------------------*/


/*--------------------------------------------------------------------------*/
/*
/*	X.	Home Accordion Section
/*
/*--------------------------------------------------------------------------*/


#project-header {
color: #383a35;
max-width: 1200px;
padding: 40px 60px;
margin: 0 auto;	
}

#project-header h2 {
font-size: 2.5vw;
font-weight: 400;
line-height: 1;	
}

#project-header h2 span {
font-size: 4vw;
line-height: 2.5vw;
}

#project-header p {
font-size: 1.8vw;
font-weight: 200;
margin-bottom: 40px;
}

#project-header p:last-child {
color: #de6126;	
}

#project-header p a,
#project-header p a:active {
color: #de6126;
text-decoration: none;
transition: all 1.0s ease-out 0s;	
opacity: 1.0;
white-space: nowrap;
}

#project-header p a:hover {
opacity: 0.5;
}

#project-header p a span {
font-size: 3vw;
line-height: 3vw;
}

.accordion {
  width: 100%;
  /*max-width: 1800px;*/
  overflow: hidden;
  margin: 50px auto;
  position: relative;
  z-index: 20;
  
}

.accordion ul {
  width: 100%;
  display: table;
  table-layout: fixed;
  margin: 0;
  padding: 0;
}

.accordion ul li {
  display: table-cell;
  vertical-align: bottom;
  position: relative;
  width: 25%;
  height: 0;
  padding-top: 25%;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transition: all 750ms ease;
  box-sizing: border-box;
  border-left: solid 1px #fff;
  border-right: solid 1px #fff;
  padding-bottom: 15px; 
}

.accordion ul li div {
display: block;
overflow: hidden;
width: 100%;
}

.accordion ul li img,
.accordion ul li p {
margin-left: 15px;
display: block;
opacity: 0;
transition: all 1.0s ease-out 0s;
position: relative;
z-index: 40;
}

.accordion ul li img {
width: 100%;
max-width: 300px;
}

.accordion ul li p {
color: #fff;
}

.accordion ul li:hover img,
.accordion ul li:hover p {
opacity: 1.0;
}

.accordion ul li div a {
  display: block;
  height: 250px;
  width: 100%;
  position: relative;
  z-index: 3;
  vertical-align: bottom;
  padding: 15px 20px;
  box-sizing: border-box;
  color: #fff;
  text-decoration: none;
  font-family: Open Sans, sans-serif;
  transition: all 200ms ease;
}

.accordion ul li div a * {
  opacity: 0;
  margin: 0;
  width: 100%;
  text-overflow: ellipsis;
  position: relative;
  z-index: 5;
  white-space: nowrap;
  overflow: hidden;
  -webkit-transform: translateX(-20px);
  transform: translateX(-20px);
  -webkit-transition: all 400ms ease;
  transition: all 400ms ease;
}

.accordion ul li div a h2 {
  font-family: Montserrat, sans-serif;
  text-overflow: clip;
  font-size: 24px;
  text-transform: uppercase;
  margin-bottom: 2px;
  top: 160px;
}

.accordion ul li div a p {
  top: 160px;
  font-size: 13.5px;
}

.accordion ul:hover li { width: 15%; }


.accordion ul:hover li:hover { width: 55%; }

.accordion ul li a {
    display: none;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
    height: 100%;
    background: #6a86b8;
    opacity: 0.5;
}

.accordion ul li.hover:hover a {
	display: block;
	z-index: 30;	
}

.accordion ul li:after {
	opacity: 0;
	transition: all 0.8s ease 0s;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
	content: '';
	opacity: 1.0;
	width: 100%;
    height: 100%;
	background: rgb(0,0,0,0.0);
	background: linear-gradient(184deg, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.0) 100%);    
}

.accordion ul li:hover::after {
	background: rgb(0,0,0);
	background: linear-gradient(184deg, rgba(0,0,0,0.0) 60%, rgba(0,0,0,0.6) 100%);
}


@media screen and (max-width: 640px) {
	
	#project-header p {
	font-size: 22px;
	}

}

@media screen and (max-width: 640px) {
	
	#project-header {
	padding: 0 30px;
	}

	.accordion { height: auto; }
	
	.accordion ul li {
		border-bottom: solid 2px #fff;
		display: flex;
	    flex-direction: column;
	    justify-content: flex-end;		
	    aspect-ratio: 3 / 2; /* or use your preferred ratio */
	    height: auto;
        width: 100% !important;
	    padding-top: 0;
	    overflow: hidden;	
	}
	
	
	@media screen and (max-width: 640px) {
	  .accordion ul:hover li,
	  .accordion ul li:hover,
	  .accordion ul:hover li:hover {
	    width: 100% !important;
	  }
	}	
		
	/*.accordion ul li,
	.accordion ul li:hover,
	.accordion ul:hover li,
	.accordion ul:hover li:hover {
	  position: relative;
	  display: table;
	  table-layout: fixed;
	  width: 100%;
	  -webkit-transition: none;
	  transition: none;
	}*/
	
  .accordion ul li img {
  	max-width: 50%;
  }	

}
