@font-face {
  font-family: "JoanneRegular";
  src: url("fonts/JB-R.woff") format('woff');
  font-weight: Medium;
}

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

a:hover {
  filter: blur(1px);
/*  font-style: italic;*/
}







body {
  min-height: 100vh;
  /* mobile viewport bug fix */
  min-height: -webkit-fill-available;
}

html {
  height: -webkit-fill-available;
}







body{
  font-family: "JoanneRegular";
  line-height: 21px;
  margin: 0;
}

#grid {
  width: 100vw;
  position: absolute;
  min-height: 100vh;
  /* mobile viewport bug fix */
  min-height: -webkit-fill-available;
  display: grid;
  grid-template-rows: 9px 1.3em auto 1.5em 8px;
  grid-template-columns: 10px 1fr 1fr 35px 1fr 1fr 10px;
}

header {
z-index: 1000;
font-family: "JoanneRegular";
font-weight: 500;
margin: 0;
font-size: 1em;
grid-row: 2/3;
grid-column: 2/3;
}

.about {
z-index: 1000;
font-family: "JoanneRegular";
font-weight: 500;
margin: 0;
font-size: 1em;
grid-row: 2/3;
grid-column: 6/7;
text-align: right;
}

.text-about {
  line-height: 18px;
  width: calc(100vw - 20px);
  text-align: center;
  position: absolute;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  line-height: 24px;
}

.direction {
z-index: 1000;
font-family: "JoanneRegular";
font-weight: 500;
margin: 0;
font-size: 1em;
grid-row: 2/3;
grid-column: 3/4;
text-align: right;
}

.personnal {
z-index: 1000;
font-family: "JoanneRegular";
font-weight: 500;
margin: 0;
font-size: 1em;
grid-row: 2/3;
grid-column: 5/6;
text-align: left;
}






* {box-sizing: border-box}
.mySlides {
  display: none
}

img {
  z-index: 1;
  vertical-align: middle;
  max-width: 100vw;
  max-height: calc(100vh - 17px - 2.8em);
}

video {
  z-index: 1;
  vertical-align: middle;
  max-width: 100vw;
  max-height: calc(100vh - 17px - 2.8em);
}

/* Slideshow container */
.slideshow-container {
  grid-row: 3/4;
  grid-column: 1/8;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next{
  cursor: pointer;
  position: absolute;
  top: 0;
  height: 100%;
  width: 50vw;
}
.prev {
  right: 50%;
  border-radius: 3px 0 0 3px;
  cursor: w-resize;
}

/* Position the "next button" to the right */
.next {
  left: 50%;
  border-radius: 3px 0 0 3px;
  cursor: e-resize;
}

/* Désactiver le rectangle gris sur les éléments cliquables du slider */
.prev, .next, img, a {
  touch-action: manipulation; /* Empêcher les effets par défaut du navigateur lors du clic */
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
}

.prev:focus, .next:focus, img:focus, a:focus {
  touch-action: manipulation;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
}



/* Caption text */
.text {
  padding: 0px 10px;
  z-index: 10000000;
  font-family: "JoanneRegular";
  font-size: 15px;
  position: fixed;
  left: 0;
  bottom: 16px;
  width: 100%;
  text-align: center;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: .0s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .prev, .next,.text {font-size: 11px}
}









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

#grid {
  grid-template-columns: 10px auto auto 12px auto auto 10px;
}

  body {
    padding-bottom: env(safe-area-inset-bottom);
    line-height: 14px;
}

  header {
    font-size: 0.7em;
  }

  .direction {
    margin-left: 7px;
    font-size: 0.7em;
  }

  .about {
    font-size: 0.7em;
  }

  .personnal {
    margin-right: 7px;
    font-size: 0.7em;
  }

  .text-about{
    line-height: 16.3px;
    font-size: 0.75em;  
    left: 50%;
    top: calc(50px + 3em);
    padding-bottom: 30px;
    transform: translate(-50%, 0);
  }

  .text {
  font-size: 0.7em;
}

/* Next & previous buttons */
.prev, .next{
  margin-top: 2.0em;
}
.prev {
  right: 50%;
  border-radius: 3px 0 0 3px;
  cursor: w-resize;
}

/* Position the "next button" to the right */
.next {
  left: 50%;
  border-radius: 3px 0 0 3px;
  cursor: e-resize;
}

}

/*@media only screen and (max-height: 600px) {

  .text-about{
    line-height: 16.3px;
    font-size: 0.87em;  
    left: 50%;
    top: calc(9px + 3em);
    padding-bottom: 30px;
    transform: translate(-50%, 0);
  }

}*/