/*
 Theme Name:   Emma Tholot
 Theme URI:    http://emmatholot.com/blankslate-child/
 Description:  Blankslate Child Theme
 Author:       Aurelie Defez
 Author URI:   http://aureliedefez.eu
 Template:     blankslate
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:ital,wght@0,400;1,400;1,700&display=swap');

/* RESET */
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}


:root{
    --beige-color: #FFFFEE;
    --red-color: #CC0000;
}

body.home, body.page-id-24{
    width: 100vw;
    height: 100vh;
    color: black;
}

body.page-template-about{
  background-color:#CC0000;
  color: #FFFFEE;
}

body{
    font-family: 'Inria Serif', serif;
}

::-webkit-scrollbar {width: 0; height: 3px;}
 
::-webkit-scrollbar-thumb {background: #000; border-radius: 1px;}

::-webkit-scrollbar-thumb:hover {background: #000; border-radius: 1px;}

#header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    z-index: 999;
}

#header .background-beige > div, ul#header-menu > li > a, ul.sub-menu > li > a {
    background-color: #fff;
}
.home #header .background-beige > div, .home ul#header-menu > li > a, .home ul.sub-menu > li > a {
    background-color: #fff;
}

.home ul#header-menu > li > a:hover, .home ul.sub-menu > li > a:hover {
    background-color: #FFFFEE;
}

body.page-template-about #header .background-beige > div, body.page-template-about ul#header-menu > li > a, body.page-template-about ul.sub-menu > li > a {
  background-color: #CC0000;
}

a{
    color: #000;
    cursor: pointer;
}

em, i{
    font-style: italic;
}

strong, b{
  font-weight: bold;
}
blockquote{
    padding-left: 30px;
}

body .home #header-menu .menu-item{
    background-color: #FFFFEE;
}

li.menu-item{
  line-height: 1.15;
}

a:hover, .category a:hover > figcaption{
    background-color: #FFFFEE;
    color: #000;
    text-decoration: none;
}

.menu-item a:hover{
  background-color: #ffffee;
  color : #CC0000;
}

#header-menu ul.sub-menu{
    margin-top: 7px;
    margin-bottom: 10px;
}
ul#header-menu > li > a{
    font-style: italic;
    font-weight: bold;
}


/* LANDING */
#showRndmdiv{
    cursor: pointer;
    position: fixed;
    left: 50%;
}
.hat > a:hover{
  background-color: transparent;
}
.chapeau{
    height: 100px;
    padding-left: 15px;
}
.chapeau-menu{
    height: 50px;
    padding-left: 15px;
}

.landing{
    margin-top: 30vh;
    float: right;
}
.landing-container{
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;  
    display: flex;
    height: 70vh;
    padding: 15px;
    text-align: right;
    align-items: flex-end;
}

.landing-container img, .landing-container video {
    height: 100%;
    object-fit: contain;
}

.gauche{
    padding-right: 15px;
}

.gauche, .droite{
 height: 100%;
}

.chapeau:hover, .chapeau-menu:hover, .chapeau-about:hover {
  animation: shake 3s;
  animation-iteration-count: infinite;
  background-color: transparent !important;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.transform {
    -webkit-transition: all 2s ease;
    -moz-transition: all 2s ease;
    -o-transition: all 2s ease;
    -ms-transition: all 2s ease;
    transition: all 2s ease;
}

@-webkit-keyframes swing {
    20% {
      -webkit-transform: rotate3d(0, 0, 1, 15deg);
      transform: rotate3d(0, 0, 1, 15deg);
    }
    40% {
      -webkit-transform: rotate3d(0, 0, 1, -10deg);
      transform: rotate3d(0, 0, 1, -10deg);
    }
    60% {
      -webkit-transform: rotate3d(0, 0, 1, 5deg);
      transform: rotate3d(0, 0, 1, 5deg);
    }
    80% {
      -webkit-transform: rotate3d(0, 0, 1, -5deg);
      transform: rotate3d(0, 0, 1, -5deg);
    }
    to {
      -webkit-transform: rotate3d(0, 0, 1, 0deg);
      transform: rotate3d(0, 0, 1, 0deg);
    }
  }
  @keyframes swing {
    20% {
      -webkit-transform: rotate3d(0, 0, 1, 15deg);
      transform: rotate3d(0, 0, 1, 15deg);
    }
    40% {
      -webkit-transform: rotate3d(0, 0, 1, -10deg);
      transform: rotate3d(0, 0, 1, -10deg);
    }
    60% {
      -webkit-transform: rotate3d(0, 0, 1, 5deg);
      transform: rotate3d(0, 0, 1, 5deg);
    }
    80% {
      -webkit-transform: rotate3d(0, 0, 1, -5deg);
      transform: rotate3d(0, 0, 1, -5deg);
    }
    to {
      -webkit-transform: rotate3d(0, 0, 1, 0deg);
      transform: rotate3d(0, 0, 1, 0deg);
    }
}
.transform-active {
    -webkit-transform-origin: top right;
    transform-origin: top center;
    -webkit-animation-name: swing;
    animation-name: swing;
    animation-duration: 1s;
}

@-webkit-keyframes wobble {
    0% {
      -webkit-transform: none;
      transform: none
    }
    15% {
      -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
      transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)
    }
    30% {
      -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
      transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)
    }
    45% {
      -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
      transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)
    }
    60% {
      -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
      transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)
    }
    75% {
      -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
      transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)
    }
    100% {
      -webkit-transform: none;
      transform: none
    }
}
    @keyframes wobble {
    0% {
      -webkit-transform: none;
      -ms-transform: none;
      transform: none
    }
    15% {
      -webkit-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
      -ms-transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
      transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)
    }
    30% {
      -webkit-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
      -ms-transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
      transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)
    }
    45% {
      -webkit-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
      -ms-transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
      transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)
    }
    60% {
      -webkit-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
      -ms-transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
      transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)
    }
    75% {
      -webkit-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
      -ms-transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
      transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)
    }
    100% {
      -webkit-transform: none;
      -ms-transform: none;
      transform: none
    }
}

.transform-active2 {
    -webkit-transform-origin: top rigth;
    transform-origin: top center;
    -webkit-animation-name: wobble;
    animation-name: wobble;
    animation-duration: 1s;
}

#site-title:hover{
  cursor: pointer;
  background-color: #ffffee !important;
}

.page-template-about #site-title:hover{
  color: #000;
  cursor: pointer;
}
/* ARCHIVE PAGE */

.archive-image, .main-about img, .about-image, .video-about {
  width: 100%;
  height: auto;
}

.cat-archive{
  padding-top: 15vh;
  height: 100vh !important;
}

.archive-img{
  width: 16.66vw;
}

/* SINGLE ARTICLE */

.post-title{
  position: fixed;
  left: 50%;
  transform: translate(-50%, 0%);
  top: 10px;
  text-align: center;
}

.post-title > span:after{
  content: '\00A0\2013\00A0';
  font-weight: normal;
  font-style: normal;
}
.category .post-title > span:after, .page-template-vues .post-title > span:after{
  content:'';
}
figcaption{
    font-size: 0.8em;
    font-style: italic;
    max-width: fit-content;
}

.main-single, .main-vues{
    margin-top: 12vh;
    grid-area: main;
    overflow-x: hidden;
    overflow-y: hidden;
}

.item {
    display: inline-block;
    padding-right: 1em;
    white-space: normal;
    vertical-align: top;
}

.items:active {
    cursor: ew-resize;
}

.items{
    height: 88vh;
    padding-right: 5px;
    position: relative;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    user-select: none;
}

.items > div.text-content{
    height: 84vh;
    overflow: scroll;
    padding-top: 5px;
}

.table-item{
  display: table;
}

.table-img{
  display: table-row;
}

.table-caption{
  display: table-cell;
  width: 1px;
}

.scroll-single img, .scroll-single video{
    height: 84vh;
    max-width: fit-content;
}

.text-content > p{
    width: 35vw;
}

.text-content > p > em{
    display: block;
    padding-left: 10px;
}

figcaption{
  white-space: break-spaces;
}

/* ABOUT PAGE */

.main-about {
  font-size: 1.2em;
  margin-bottom: -5px;
  overflow: hidden;
}

.main-about b, .main-about strong{
	letter-spacing: 1px;
	-webkit-text-stroke: 0.5px #fff;
	text-stroke: 0.5px #fff;
}

.main-about a:hover b, .main-about a:hover strong{
	letter-spacing: 1px;
	-webkit-text-stroke: 0.5px #000;
	text-stroke: 0.5px #000;
}
.main-about p{
	padding-top: 10px;
}

.page-template-about a{
  color: #FFFFEE;
}
.page-template-about a:hover{
  color: #000;
  background-color: #FFFFEE;
}

.page-template-about .chapeau-menu{
  display: none;
}

.chapeau-about{
  height: 25px;
  width: auto;
}

a.no-background:hover{
  background-color: transparent !important;
}

.about-rows{
  line-height: 0;
}

.about-text, .credits{
  line-height: 1.2;
}
.titre{
  font-style: italic;
  font-weight: bold;
}

.liste{
  position: absolute;
  bottom: 30px;
  padding-right: 60px;
}

.credits .liste{
  bottom: 10px;
} 

.credits{
  margin-bottom: -10px;
}

/* LIGHTBOX */

.single #lightbox.active, .single .chapeau-menu #lightbox.active, #lightbox {
  display: none;
}

@media screen and (max-width: 992px){
	.liste{
		position: relative;
	}
	.main-about{
		padding-top: 4rem;
	}
}

@media screen and (max-width: 768px){
  #header .background-beige > div, ul#header-menu > li > a, ul.sub-menu > li > a, body .home #header-menu .menu-item, body.page-template-about #header .background-beige > div, body.page-template-about ul#header-menu > li > a, body.page-template-about ul.sub-menu > li > a {
    padding: 0;
  }
  li.menu-item{
    line-height: 1.15;
  }
    .main-single, .exhibition-vues{
        margin-top: 0;
        padding-top: 20vh;
        overflow-y: hidden;
    }
    .scroll-mobile{
        height: 80vh;
        width: auto;
        overflow-y: hidden;
    }
   .scroll-mobile img, .scroll-single video{
        height: 66vh;
        max-width: fit-content;
    }
    .scroll-mobile figcaption{
      padding-top: 3px;
    }
    .post-title{
      left: 55%;
      text-align: center;
    }
    .post-title > span {
      display: block;
    }
    .post-title > span:after{
      content: '';
    }
    .items > div.text-content{
      padding-top: 10px;
    }

    .text-content > p{
        width: 90vw;
        font-size: 0.8em;
    }

    .first-div{
        margin-right: 0 !important;
    }

    /* LANDING */
    .chapeau{
      height: 80px;
    }

    .landing{
        float: initial;
        margin-top: 0;
        overflow-y: hidden;
    }

    .landing-container{
        display: initial;
        position: fixed;
        bottom: 0;
        right: 0;
        padding: 15px;
        padding-bottom: 0;
        height: auto;
        width: 100vw;
        pointer-events: none;
    }

    .gauche, .droite {
      padding: 0;
      text-align: right;
      padding-bottom: 15px;
      height: 30vh;
    }

    .landing-container img, .landing-container video{
      height: 100%;
      object-fit: contain;
      max-width: 100%;
    }

    /* ABOUT */
    .main-about{
      margin-top: 100px;
      font-size: 1em;
    }
    .liste{
      position: relative;
      margin-bottom: 30px;
      bottom: 0;
    }

    /* ARCHIVE */
    .archive-img{
      width: 50vw;
    }

    .cat-archive{
      padding-top: 20vh;
    }

    /* LIGHTBOX */
    .single #lightbox, .page-template-vues #lightbox{
      position: fixed;
      z-index: 9999;
      top: 0;
      left:0;
      width: 100%;
      height: 100%;
      display: none;
      background-color: rgba(200, 200, 200, 0.5);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
    }

    .single #lightbox img, .page-template-vues #lightbox img {
      max-width: 95%;
      object-fit: contain;
      cursor: default;
      justify-content: start;
      margin-left: 10px;
      box-shadow: 0 0 20px 11px #FFFFEE;

    }

    .single #lightbox.active, .page-template-vues #lightbox.active {
      display: flex;
      align-items: center;
    }

    .video-content video{
      height: 66vh;
      width: auto;
    }
    .main-single, .home, .exhibition-vues, body.page-template-vues, body.single, body.category{
      height: 100vh;
      overflow-y: hidden !important;
    }

}

@media screen and (max-height: 667px){
    .landing-container{
      display: flex;
      right: 0;
      padding: 10px;
      justify-content: flex-end;
    }
  .gauche, .droite {
    height: 25vh;
    padding: 0;
  }
  .droite{
    padding-left: 10px;
  }
  .landing-container img, .landing-container video{
    object-position: bottom;
  }
  .chapeau{
    height: 60px;
  }
}
