body{
	overflow-x: hidden;
}

main{
	width: 100%;
	margin: 0;
	clear:both;
	position: relative;
}

main section{
	margin: 0;
	margin-bottom: 3vh;
	width: 49.0%;
	height: 89vh;
	position: relative;
	display: inline-block;
	background-color: #ffffff;
	cursor: pointer;
	box-shadow: 0 0 5px;
	overflow-x: hidden;
}

main section h1{
	position: absolute;
	left: 83px;
	top: 21px;
	
}

main section:not(.zoom):hover{
	box-shadow: 0 0 5px;
	transition: box-shadow 0.2s ease-in-out;
}

header div{
	padding-top: 0;
	height: auto;
}

header div#title_div img, header div#title_div h1, header div#title_div a{
	vertical-align: top;
}

header{
	overflow: visible;
	position: fixed;
	top: 6vh;
	left: 40px;
	z-index: 150;
	padding-right: 5px;
}


header a{
	display: inline-block;
	vertical-align: top;
	padding: 0;
	margin: 0;
}

header img{

	margin-right: 5px;
}

header h1{
	font-size: 2.5em;
	color: #d4af37;
	text-transform: lowercase;
}
header h1.small{
	font-size: 1.8em;
	transition: font-size 0.5s ease-in-out;

}

div.wrapper{
	display: inline;
}

main section img{
	pointer-events : none;
	position: absolute;
	max-width: 100%;
	max-height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin:auto;
    transition: top 0.2s ease-in-out,  bottom 0.2s ease-in-out,  left 0.2s ease-in-out,  right 0.2s ease-in-out;
}

main section aside{
	position: absolute;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 1% 5% 1% 5%;
	bottom: 0;
	width: 90%;
	height: 17%;
	box-shadow: 0 0 3px rgba(0,0,0,0.8);
	background-color: rgba(0,0,0,0.8);
	color: rgba(249,249,249,1);
	opacity: 1;
	transition: opacity 0.2s ease-in-out;
}

main section div.img-wrapper{
	pointer-events : none;
	position: relative;
	height: 80.5%;
	transition: height 0.2s ease-in-out;
}


main#works.zooming section div.img-wrapper{
	pointer-events : auto;
}

main#works section aside *{
	margin-top: 5px;
	margin-bottom: 5px;

}

main#works.zooming section aside{
	opacity: 0.0;
	transition: opacity 0.2s ease-in-out;
}

main#works.zooming section aside:hover{
	height: 20%;
	box-shadow: 0 0 3px rgba(0,0,0,0.8);
	background-color: rgba(0,0,0,0.8);
	color: rgba(249,249,249,0.8);
	transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

@keyframes shift-left {
    from {left: 50%; width: 49.8%;}
    to {left: 0%; width: 100%;}
}

@keyframes shift-right {
    from {left: 0%; width: 100%;}
    to {left: 50%; width: 49.8%;}
}

main#works.zooming section:not(.zoom), main#works a.button:not(#down), main#works.zooming a.button#down{
	display: none;
}

main#works.zooming a.button:not(#down){
	display: inline;
}
main#works section:nth-child(odd){
	margin-left: 2%;
	right: 0;
}

main#works section h2, main#works section h3{
	font-size: 1em;
	text-transform: lowercase;
}

main#works section.zoom h2{
	display: none;

}

main#works section.zoom div.img-wrapper{
	height: 100%;
	transition: height 0.2s ease-in-out;
}

main#works section:nth-child(even).zoom{
	top:0;
	left: 0;
	width: 100%;
	display: block;
	transition: width 0.2s ease-in-out, height 0.2s ease-in-out, left 0.5s ease-in-out;
}

main#works section:nth-child(odd).zoom{
	width: 100%;
	display: block;
	animation-name: shift-left;
	animation-duration: 0.7s;
	margin-left: 0;
}

main#works section:nth-child(odd).zoom.reset{
	animation-name: shift-right;
	animation-duration: 0.2s;
}

main#works section:nth-child(even).zoom.reset{
	width: 49.0%;
	transition: width 0.2s ease-in-out;
}

#left,#right,#exit,#down,#progres{
	position: absolute;
	text-align: center;
	cursor: pointer;
	z-index: 100;
}
span#progres{
	width: 0;
	opacity: 0;
	transition: width 0.2s ease-in-out, opacity 0.2s ease-in-out;
}
main#works.zooming span#progres{
	width: 40%;
	height: 0px;
	display: flex;
	justify-content: space-between;
	bottom: 20px;
	left: 0;
	right: 0;
	margin: 0 auto;
	box-shadow: 0 0px 5px 0px #000000;
	opacity: .8;
	transition: width 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

span#progres span{
	content: ' ';
	display: inline-block;
	border: 2px solid black;
	height: 10px;
	width: 10px;
	border-radius: 10px;
	margin-top: -8px;
	background-color: black;
}

span#progres span.active{
	background-color: #d4af37;
	/*box-shadow: 0 0px 5px 0px #d4af37;*/
	transition: background-color 0.5s ease-in-out/*, box-shadow 0.5s ease-in-out*/;
}


.button:hover{
	color: #d4af37;
	box-shadow: 0 0 3px rgba(0,0,0,0.3);
	border-radius: 3px;
	background-color: rgba(0,0,0,0.3);
	transition: box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
}


main a#left, main a#right{
	padding: 0 10px 15px 10px;
    font-size: 5em;
    top: 40vh;
}
main a#left{
    left: 0;
}

main a#right{
    right: 0;
}

main a#exit{
	right: 0;
	top: 0;
	padding: 0 10px 0 10px;

}

main a#down{
	position: fixed;
	bottom:0vh;
	margin: auto;
	font-size: 4em;
	vertical-align: middle;
	width: 100px;
	transform: translateX(-30px);
	padding-bottom: 30px;
}

main a#down:hover{
	box-shadow: none;
}

main a#down span{
	transform: translateX(20px) rotateZ(90deg);
}

main#works section img.pictureRight{
	right: -300%;
	transition: right 0.2s ease-in-out;
}
main#works img{
	opacity: 0.0;
}

main#works img.focused{
	opacity: 1.0;
}

main#works img:hover{
	opacity: .0;
}

main nav{
	display: block;
	text-align: center;
	height: 0px;
	padding-top: 5px;
	margin-top: -3vh;
}

main#works.zooming nav{
	display: none;
}

main nav{
	font-size: 1.3em;
}

main nav a{
	font-size: 1.3em;
	vertical-align: middle;
}

.mobile-appear{
	display: none;
}

@media all and (max-width:1000px) {
	main#works section:nth-child(odd).zoom{
		width: 100%;
		animation-name: none;
		animation-duration: 0;
	}


	main#works section:nth-child(odd).zoom.reset, main#works section:nth-child(even).zoom.reset{
		animation-name: none;
		animation-duration: 0;
		width: 100%;
		transition: width 0.0s ease-in-out;
	}
	
	main#works.zooming span#progres{
		width: 98%;
	}
	header{
		display: inline-block;
		max-width: 65%;
		word-wrap: break-word;
	}

	header img, header a{
		width: 50px;

	}

	header h1{
		font-size: 1em;
	}

	main section{
		margin-bottom: 3vh;
		width: 100.0%;
		display: inline-block;
	}

	main#works section:nth-child(odd){
		margin-left: 0;
	}

	main a#left, main a#right{
		padding: 0 5px 15px 5px;
	    font-size: 2em;
	}


	main a#exit{
		padding: 0 10px 0 10px;
		font-size: 1.5em;
	}

	.mobile-appear{
		display: inline-block;
	}
	section:not(.mobile-appear){
		display: none;
	}
	main#works nav{
		display: none;
	}
}

@media all and (max-width:600px) {
	span#progres span{
		height: 7px;
		width: 7px;
		margin-top: -4px;
		border: 1px solid black;
	}


	body{
		padding: 5vh 10px 2vh 10px;
	}

	header{
		left: 15px;
		background: none;
	}

	header h1{
		display: none;
	}

	main section div.img-wrapper{
		height: 70%;
	}

	main section aside{
		padding: 1% 2% 1% 2%;
		bottom: 0;
		width: 96%;
		height: 30%;
		box-shadow: 0 0 3px rgba(0,0,0,0.8);
		background-color: rgba(0,0,0,0.8);
		color: rgba(249,249,249,1);
	}

}

@media all and (max-width:400px) {
	header h1{
		display: none;
	}

	header{
		display: inline-block;
		max-width: 50%;
		word-wrap: break-word;
	}
}