:root {
  --unicolor: #eab31d;
  --unicolor: rgb(86, 89, 104);
  --unicolor: black;
  --coloraccent: rgb(0, 0, 0);
  --colortitle: rgb(255, 212, 147);
  --colortitle: rgb(225, 215, 207);
  --colortitle: #efeae4;

  
  /* --greenitalic: #d1f3c8; */
}

html {
background-color: #fffefd;
color: black;
height: 100%;
-ms-overflow-style: none !important; 
scrollbar-width: none !important;
}

html::-webkit-scrollbar {
  display: none !important;
}

body{
  margin: 0;
  padding: 0;
  height: 100vh;
}

/* preloader */

.preloader{
  display: flex;
  background-color: #fffefd;
  z-index: 10000;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.preloader-title{
  /* color: rgba(47, 47, 47, 0.85); */
  color: var(--unicolor);
  font-size: 2.7rem;
  font-family: "Cormorant";
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.2rem;
  overflow: hidden;
  line-height: 0;
}
.preloader-crushed{
  animation: crushd 2.1s;
}

@keyframes crushd {
  0% {line-height: 2.7rem;}
  76% {line-height: 2.7rem;}
  96% {line-height: 0rem;}
}

.preloader-faded{
  animation: fadd 1s;
  animation-delay: 0.5s;
}

@keyframes fadd {
  0% {opacity: 1;}
  100% {opacity: 0;}
}

/* Block avec navigation et images */
#imagesetnavigation{
    margin: auto;
    margin-top: 5rem;
    width: 80%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 6rem;
}

#drawings_title{
  font-family: "Inter";
  font-weight: 300;
  padding-bottom: 1rem;
  font-size: 1.1rem;
}

#main_div{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    column-gap: 0.6rem;
}

.dessin_img_small{
    height: 10vw;
}

/* hidden to viewer */

h1{
    padding: 0;
    margin: 0.7rem 0.5rem 1rem 0.5rem;
    line-height: 0;
    text-transform: uppercase;
}

h2{
  margin: 0;
}

.sous-titre-h2{
  border: 0;
  padding: 0;
  margin: 0;
  position: absolute !important;
  height: 1px; 
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 - a 0 height clip, off to the bottom right of the visible 1px box */
  clip: rect(1px, 1px, 1px, 1px); /*maybe deprecated but we need to support legacy browsers */
  clip-path: inset(50%); /*modern browsers, clip-path works inwards from each corner*/
  white-space: nowrap; /* added line to stop words getting smushed together (as they go onto seperate lines and some screen readers do not understand line feeds as a space */
}


/* header w/ menu */

.soustitre{
    font-size: 1rem;
    font-family: "Inter";
    font-weight: 300;
}

.main_header{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    padding-top: 0.8rem;
    margin-right: 1.5rem;
    margin-left: 1.5rem;
    font-family: "Inter", sans-serif;
}

#main_title{
    font-size: 1.6rem;
    font-weight: 600;
    /* color: rgb(84, 79, 74); */
    color: black;
    /* letter-spacing: 0.2rem; */
    font-family:'Playfair Display';
    line-height: 0.9;
    /* font-style: italic; */
}

#mg{
    font-weight: 380;
    margin-left: 0.42rem;
    letter-spacing: 0.03rem;
    margin-top: -0.56rem;
    background-clip: text;
    width: fit-content;
}

#menu{
    display: flex;
    margin-top: 1rem;
    margin-left: 1rem
}

.menu-item{
    font-size: 0.8em;
    margin: 0 0.5rem 0 0.5rem;
    height: fit-content;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
    text-transform: uppercase;
    font-weight: 500;
}

.menu-item:hover{
    /* border-bottom: 1px solid var(--unicolor); */
    border-bottom: 1px solid black;
    /* background-color: var(--colortitle) */
    transition: all 0.15s;
}

/* Hamburger */

#hamburger{
  display: flex;
  flex-direction: column;
  background-color: #f3f0ee;
  background:linear-gradient(#f7f1ec 20%, #d1d5f1 130%);
  z-index: 800;
  position: fixed;
  top: 0;
  right: 0;
  width: 55vw;
  height: 100vh;
  transform: translateX(103vw);
  transition: all 0.4s;
  padding-top: 5rem;
  /* border-left: solid 1.5px black; */
}

#mh{
  display: none;
  z-index: 810;
  position: fixed;
  top: 2.2rem;
  right: 1.5rem;
  width: 2.3rem;
  height: 1.7rem;
}

.clicked{
  transform: translateX(0vw) !important; 
  transition: all 0.5s;
}

.ham-item{
  font-size: 0.9rem;
  padding: 0.9rem 1.5rem 0rem 0rem;
  font-family: "Inter";
  font-weight: 400;
  text-align: end;
}

/* Block central */
#navigation {
  display: flex;
  font-family: "Inter";
  margin-top: 1rem;
  margin-left: 1px;
  /* margin-right: 0.3rem; */
  align-items: start;
  margin-bottom: 0rem;
  flex-direction: column;
  gap: 0.6rem;
}

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

#random_icon{
    font-family: "Inter";
    font-size: 0.8rem;
    height: fit-content;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: 400;
    color: black;
    border: solid 1px black;
    border-radius: 9px;
    padding: 3px 6px;
}

#random_icon:hover{
    transition: all 0.15s;
    /* border-bottom: 1px solid rgb(84, 79, 74); */
    /* color: rgb(158, 158, 157); */
    background-color: black;
    color: white;
}

#space {
    width: 2.5rem;
}

#select{
    border-radius: 9px;
  background-color: #fffefd;
  padding: 3px 6px;
  color: black;
  font-family: "Inter";
  font-size: 0.8rem;
  border: 1px solid black;
}

/* zoom quand hover de la sourie */

.clic {
    transition: all 0.15s;
    /* cursor: url("eye.svg")26 12,auto; */
  }
.clicc {
  transition: all 0.15s;
}
.clic:hover {
    transition: all 0.15s;
    transform: scale(1.02);
}
.clicc:hover {
  transition: all 0.15s;
  transform: scale(1.01);
}

a,button,#random_icon:hover,#year_selector,#select{
 cursor: pointer !important;
}


/* Fancybox */
[title^='Toggle zoom level'] {
  display: none !important;
}
[title^='Toggle slideshow'] {
  display: none !important;
}

/* QUERIES */

@media screen and (min-width: 768px) and (min-height: 768px) {
  .fancybox__caption{
    margin-top: 1rem !important;
    padding: 0.3rem 0.5rem !important;
    /* background-color: white !important; */
  }
}

@media screen and (max-width: 1023px) {
   #imagesetnavigation{
    width: 80%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 6rem;
    margin: auto;
    margin-top: 4rem;
}
.dessin_img_small{
    height: 7rem;
}
#main_div{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    column-gap: 0.4rem;
}

}

@media screen and (max-width: 768px) {
  #imagesetnavigation{
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 6rem;
    margin: auto;
    margin-top: 4rem;
}
    #menu {
        display: none;
    }
    #mh {
        display: flex;
        top: 1.4rem;
    }
    .main_header {
      padding-top: 1.4rem;
      flex-direction: row;
    }
    #hamburger{
      width: 40vw;
    }
    h1{
    margin: 0rem 0rem 0rem 0rem;
    }

}

@media screen and (max-width: 600px) {
    #hamburger{
      padding-top: 4rem;
      width: 55vw;
    }
    .ham-item{
      padding: 0.9rem 1.5rem 0rem 0rem;
    }
    #mh {
      width: 2.3rem;
      top: 1.26rem;
      right: 1.2rem;
      height: 1.7rem;
    }
    #main_title {
      font-size: 1.5rem;
      font-weight: 600;
    }
    #mg {
      font-size: 0.8rem;
      margin-top: -0.5rem;
    }
    .main_header {
      margin-left: 1.05rem;
    }
    /* .dessin_img_small{
    height: 3.8rem;
    } */
    #imagesetnavigation {
    margin-left: 0%;
    width: 90%;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 6rem;
    margin: auto;
    margin-top: auto;
    margin-top: 4rem;
  }
  #main_div{
    row-gap: 0.5rem;
  }
  .dessin_img_small{
    height: 4.9rem;  
    }
}


/* mobile landscape special */
@media screen and (max-width: 992px ) and (max-height: 450px ) and (orientation: landscape) {
    .main_header {
      margin-bottom: 2rem;
      padding-top: 1rem;
    }
    #main_title{
      font-size: 1.5rem;
      font-weight: 600;
    }
    #mg {
      font-size: 0.8rem;
      margin-top: -0.5rem;
    }
    #menu{
      margin-top: 0.5rem;
    }
    #mh{
      width: 2.3rem;
      top: 1.23rem;
    }
    .ham-item {
      font-size: 0.9rem;
    }
    #imagesetnavigation {
    width: 90%;
    margin-top: 2rem;
  }
}
