@font-face {
  font-family: 'BeVietnamPro-ExtraLight';
  src: url("fonts/BeVietnamPro-ExtraLight.eot"); /* IE9*/
  src: url("fonts/BeVietnamPro-ExtraLight.eot?#iefix") format("embedded-opentype"),
       url('fonts/BeVietnamPro-ExtraLight.woff2') format('woff2'),
       url('fonts/BeVietnamPro-ExtraLight.woff') format('woff'),
       url('fonts/BeVietnamPro-ExtraLight.ttf') format('truetype');
       font-weight: 200;
       font-display: swap;
       font-style: normal;
}

html, body {
    margin: 0;
    max-width: 100vw;
    overflow-y: hidden;
    background-color: #FEFAF7;
}
body {
  font-family: 'Be Vietnam Pro', sans-serif;
}

header {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 3;
    padding: 27px;
    width: calc(100% - 52px);
    display: flex;
    justify-content: space-between;
}
header h1 { 
    margin: 0;
    font-size: 1em; 
}
header h1 a  {
  text-decoration: none;
  color: #000;
  font-weight: normal;
  opacity: 1;
  transition: all 0.2s linear;
}
header h1 a:hover {
opacity: 0.7;
transition: all 0.2s linear;
}

header a.enter {
  text-decoration: none;
  color: #000;
  font-weight: normal;
  padding: 3px 0 6px;
  background-color: rgba(255, 255, 255, 0);
  opacity: 1;
  transition: all 0.2s linear;
  border-radius: 2rem;
  margin-top: -3px;
}
header a.enter:hover {
    opacity: 0.8;
    transition: all 0.2s linear;
}
.galerie {
    /* max-width: 100%;
    position: relative;
    margin: auto; */

    width: calc(100vw - 120px);
    position: relative;
    margin: auto;
    height: calc(100vh - 120px);
    padding: 60px;
}
.galerie .fade:first-child {
  width: 100%;
  position: relative;
  left: 50%;
  transform: translate(-50%);
  border-bottom: 60px solid #fefaf7;
  
}
.galerie .image:first-child::after{
  content:"";
  background-image: url('img-diapo/first.jpg');
  background-size: auto 100%;
  display: inline-block;
  height: calc(100vh - 120px);
  background-repeat: no-repeat;
  width: 100%;
  background-position: center; 
}


img {
  position: relative;
  z-index: 2;
  width: auto;
  /* height: 100vh; */
  height: calc(100vh - 120px);
  left: 50%;
  transform: translate(-50%);
}
.fade {
  animation-name: fade;
  animation-duration: 2s;
}
@keyframes fade {
  from {opacity: .8}
  to {opacity: 1}
}

    
@media screen and (max-device-width:640px), screen and (max-width:640px) {
  .galerie {
    overflow: hidden;
  }
  .galerie .image:first-child::after{
    content:"";
    background-image: url('img-diapo/first.jpg');
    background-size: 100% auto;
    display: inline-block;
    height: 100vh;
    background-repeat: no-repeat;
    width: inherit;
    background-position: top;
    left: -24%;
    position: relative;
  }
  img {
    width: 100vw;
    height: auto;
  }
}