/*  
Theme Name: For me.
Theme URI: http://martinblevy.com/
Description: Dynamic theme for portfolio
Version: 1.2
Author: Martin B. Lévy
Author URI: http://martinblevy.com/
*/


html,
body {

  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none;
}

body {
  font-family: "Avenir Next", Montserrat, Helvetica, sans-serif;
  font-weight: normal;
  margin: 0;
  background-color: #000;
}

#wpadminbar {
  display: none;
}


/********************************************
	
	Typography
	
*********************************************/

p { margin: 1em 0; }
h1 { font-size: 25px; font-weight: normal; }

a {
  text-decoration: none;
  color: grey;
}

a:hover {
  text-decoration: none;
  color: white;
}
/********************************************
	
	Layout
	
*********************************************/

.Loop {
  white-space: nowrap;
  overflow-x: hidden;
  overflow-y: hidden;
  font-size: 0; /* remove inline-block space */
  /*-webkit-overflow-scrolling: touch;*/
}

#full {
	overflow-x: hidden;
}

#return {
  color: white;
  position: fixed;
  top: 17px;
  left: 20px;
  z-index: 99;
  cursor: pointer;
  font-size: 15px;

  opacity: 0;

  transition: 1s;
}

#about {
  color: white;
  position: fixed;
  top: 17px;
  right: 20px;
  z-index: 99;
  cursor: pointer;
  font-size: 15px;

  opacity: 1;
}

#mbl {
  color: white;
  position: fixed;
  bottom: 40px;
  left: 50px;
  z-index: 99;

  font-size: 25px;

  opacity: 1;
}

section {
  position: relative;
  height: 100vh;
  width:25vw;
  display: inline-block;
  transition: 1s;
}

.thumbs_content {
  top: -400px;
  opacity: 0;
  /* opacity: .5; */
  position: absolute;
  transition: 1s;
  cursor: pointer;
}

.thumbs_content_inactive {
  top: -400px !important;
  opacity: 0;
  transition: 1s;
}

.thumbs {
  width: 85%;
  height: auto;
  opacity: .5;
  transition: .6s;
}

.thumbs_active {
  opacity: 1;
  transition: .6s;
}

.title {
  top: 50%;
  width: 85%;
  height: 40px;
  text-align: center;
  margin-top: -7.5px;
  position: absolute;
  color: white;
  font-size: calc(10px + .4vw);
  z-index: 2;
  opacity: 1;

  transition: .2s;
}

.title_active {
  opacity: 0;
  transform: translateY(0em);

  transition: .2s;
}

.thumbs_content:hover .title {
  opacity: 0;
}

.thumbs_content:hover .thumbs {
  opacity: 1;
  margin:-25px 0;
}

#content {
overflow-x: hidden;
}

#zone {
  width: 100%;
  min-height: 60vh;
  position: absolute;
  z-index: 10;
  overflow-x: hidden;
  opacity: 0;
  color: white;
  transform: translateY(1em);
  transition: 1s;
}

/*

Intro.

*/

#intro {
  display: block;
  width: 100vw;
  height: 60vh;
  color: white;
}

#big_right {
  position: absolute;
  border: none;
  width: 50vw;
  height: 60vh;
  right: 0px;
}

.img_big {
  position: relative;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#big_left {
  position: absolute;
  height: 60vh;
  width: 50vw;
}

#title {
  font-size: calc(15px + 3vw);
  font-weight: bold;
  text-align: right;
  line-height: calc(15px + 3vw);
  margin: 5vh -5vw 2vh 0;
  opacity: 0;
  transition: 3s;
  /* text-shadow: 2px 2px 10px #000000; */
}

#short {
  font-size: calc(7px + .5vw);
  margin: 0 3vw 0 10vw;
  text-align: right;
  opacity: 0;
  transition: 3s;
}


/*
Page Content
*/

#page_content {
  width: 50vw;
  position: relative;
  margin: 8vh 10vw 10vh 40vw;
  font-size: calc(7px + .5vw);
}

/*
Contenu
*/

table#contenu_gallery {
  width: 100vw;
  left: 0px;
  height: auto !important;
  display: block;
  position: relative;
  margin-top: 3vh;
  border-collapse: collapse;
}

tr {}
td {width: 50%; vertical-align: top; height: auto !important;}

#contenu {
  font-size: calc(7px + .5vw);
  margin: 0 3vw ;
}


/* 
Gallery 
*/
.gallery {display: none; }; /* à virer proprement */

#show {width: 50vh; height: auto !important; margin-top: 3vh;}
#show img {width: 50vw; height: auto !important; cursor: pointer;}
#show_nav {width: 50vw; margin-top: 15vh; text-align: right; }
#show_nav a {font-size: calc(7px + .5vw); color: #b8b8b8; text-decoration: none; margin-left: 10px;}
#show_nav a:hover, #show_nav .cycle-pager-active {color: white;}
.with_vid {margin-top: 20vh !important;}
.shownav_with_vid {margin-top: calc(((50vw / (16/9))/2) + 18vh) !important;}
/*
Vidéo
*/

#video {
  width: 50vw;
  height: calc(50vw / (16/9));
  position: absolute;
  top: 110vh;
  transition: .6s cubic-bezier(0.68, -0.55, 0.27, 1.55) 1s;
  z-index:1;
}

.video_hide {
  left: -20vw;  
}

.video_show {
  left: 0vw;
}


.vimeo {
  position: relative;
  width: 50vw;
  height: calc(50vw / (16/9));
}

#voir {
  position: relative;
  font-size: calc(7px + .5vw);
  width: 50vw;
  left: 50vw;
  top: calc(-49vw / (16/9));
}


/* 

Footer 

*/

#footer {
  display: block;
  position: relative;
  margin-top: 50px;
  height: 180px;
  width: 100vw;
  color: white;
  margin-bottom: 100px;
}

#footer:hover #big_footer_left {
  width: calc(100vw - 180px);
}

#footer:hover #next_title {
  width: calc(100vw - 180px);
}


#big_footer_right {
  position: absolute;
  width: 180px;
  height: 180px;
  right: 0px;
  z-index: 1;
}

.img_big {
  position: relative;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#big_footer_left {
  position: absolute;
  background-color: #0a0a0a;
  left: 0;
  height: 180px;
  width: 100vw;
  z-index: 2;
  cursor: pointer;
  transition: .6s cubic-bezier(0.68, -0.55, 0.27, 1.55) .2s;
}

#next_title {
  position: absolute;
  text-align: right;
  margin: 70px -70px;
  font-size: calc(15px + .5vw);
  height: 20px;
  width: 100vw;
  z-index: 3;

  transition: .6s cubic-bezier(0.68, -0.55, 0.27, 1.55) .2s;
}

#next {
  position: absolute;
  text-align: left;
  margin: 70px 70px;
  font-size: calc(14px + .5vw);
  height: 20px;
  width: 100vw;
  z-index: 4; 
}


/*
About Page
*/



#about_content {
  position: absolute;
  font-size: 2.2vh !important;
  width: 50vw;
  height: auto;
  margin-top: 50vh; /* poussé de la moitié de hauteur de viewport */
  transform: translateY(-50%);  
  padding-left: 5vw;
  z-index: 12;
  color: white;
}

#about_links {
  position: absolute;
  font-size: calc(10px + 0.8vw) !important;
  width: 30vw;
  height: auto;
  margin-top: 50vh; /* poussé de la moitié de hauteur de viewport */
  transform: translateY(-50%);  
  padding-left: 60vw;
  line-height: 4vh;
  color: white;
  z-index: 11;
}

#about_links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

/* Queries ... */
@media (max-width: 768px) {
	.Loop {
		overflow-x: scroll;
		overflow-y: hidden;
		margin-top: 10vh;
	}
	
	section {
		width: 40vw;
		height: 80vh;
	}
	
	.title {
		height: auto;
		bottom: 102%;
	}
	
	.thumbs {
		opacity: 1;
	}
	
	#mbl {
	bottom: 10px;
    left: 20px;
    font-size: 20px;
	}
	
	#video {
	width : 100vw;
	top: 0;
	margin-top: 3vw;
	position: relative;
	height: calc(100vw / (16/9));
	}
	
	.vimeo {
    width : 100vw;
	height: calc(100vw / (16/9));
	}
	
	.video_hide {
	left: 0vw;
	}
	
	table#contenu_gallery, #contenu_gallery caption, #contenu_gallery tbody, #contenu_gallery tfoot, #contenu_gallery thead, #contenu_gallery tr, #contenu_gallery th, #contenu_gallery td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: transparent;
	display: block;
	}
	
	#contenu {
		width: 100vw;
		margin: 0 10vw;
	}
	
	table#contenu_gallery {
		
	}
	
	.with_vid {
    margin-top: -20vh !important;
	}
	
	#show img {
    width: 100vw;
	}
	
	#voir {
	display: none;
	}
	
	#show_nav {
    width: 100vw;
    margin-top: 3vw;
    text-align: center;
	}
	
	#about_content {
	height: 75vh;
    width: 75vw;
    padding-left: 3vw;
	font-size: calc(7px + 1.2vh) !important;
    left: 0vw;
	}
	#about_links {
	right: 1vw;
	width: 20vw;
	}
	/* 

	Footer 

	*/

	#footer {
	  display: block;
	  position: relative;
	  height: 80px;
	  width: 100vw;
	  color: white;
	  margin-bottom: 45px;
	}

	#big_footer_right {
	  position: absolute;
	  width: 80px;
	  height: 80px;
	  right: 0px;
	  z-index: 1;
	}

	.img_big {
	  position: relative;
	  object-fit: cover;
	  width: 100%;
	  height: 100%;
	}

	#big_footer_left {
	  position: absolute;
	  background-color: #0a0a0a;
	  left: 0;
	  height: 80px;
	  width: calc(100vw - 80px);
	  z-index: 2;
	  cursor: pointer;
	  transition: 0s;
	}

	#next_title {
	  position: absolute;
	  text-align: right;
	  margin: 34px -114px;
	  font-size: 12px;
	  height: 20px;
	  width: 100vw;
	  z-index: 3;

	  transition: 0s;
	}

	#next {
	  position: absolute;
	  text-align: left;
	  margin: 34px;
	  font-size: 12px;
	  height: 20px;
	  width: 100vw;
	  z-index: 4; 
	}
}