/**********************/
/*********Fond*********/
/**********************/

body:before{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(#d400ff, #4c00ff,#4c00ff);
  clip-path: circle(25% at 35% 10%);
  z-index: -1;
}

body:after{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(#ff009d,#ff009d,#ff0000);
  clip-path: circle(18% at 75% 90%);
  z-index: -1;
}

/**********************/
/****Partie 1 Titre****/
/**********************/

.part1{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    z-index: 4;

}

.part1 h1{
    font-size: 6em;
    margin: 1%;
    text-align: center;
}

.part1 h3{
    font-size: 2em;
    text-align: center;
}

/**********************/
/****Partie 2 Texte****/
/**********************/

.part2{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: auto;
  margin-top: 5%;
  margin-bottom: 10%;
}

.part2 h2{
  margin-bottom: 3%;
  font-size: 3em;
  color: #fff;
  z-index: 3;
}

/**********************/
/*Partie 2 Biblioteque*/
/**********************/

.wrapper{
  justify-content: space-evenly;
  width: 100%;
 /* margin: 100px auto;
  max-width: 1100px;*/
  
}
.wrapper nav{
  display: flex;
  justify-content: center;
}
.wrapper .items{
  display: flex;
  max-width: 720px;
  width: 100%;
  justify-content: space-between;
  position: relative;
  z-index: 6;
}
.items span{
  padding: 7px 25px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  color: #fff;;
  border-radius: 50px;
  border: 2px solid #fff;
  transition: all 0.3s ease;
}
.items span.active,
.items span:hover{
  color: #000;
  background: #fff;
}

.gallery{
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
  align-items: center;
  justify-content: left;
  max-width: 75%;
  margin: 0 auto;
  padding-top: 50px;
}

.gallery .image{
  width: 32%;
  padding: 7px;
}
.gallery .image span{
  display: flex;
  width: 100%;
  overflow: hidden;
}
.gallery .image img{
  width: 100%;
  vertical-align: middle;
  transition: all 0.3s ease;
}
.gallery .image:hover img{
  transform: scale(1.1);
}
.gallery .image.hide{
  display: none;
}
.gallery .image.show{
  animation: anim 0.4s ease;
}
@keyframes anim {
  0%{
    transform: scale(0.5);
  }
  100%{
    transform: scale(1);
  }
}


.closegal{
  cursor: pointer;
  position: absolute;
  color: #fff;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
}

.preview-box{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  max-width: 700px;
  width: 100%;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  padding: 0 5px 5px 5px;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.2);
  overflow-y: scroll;
  overflow-x: hidden;
  height: auto;
  
}

.preview-box.show{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition: all 0.3s ease;
}

.preview-box .details{
  padding: 17px 15px 13px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 90px;
}

.details{
  display: flex;
  flex-direction: column;
}

.details .title{
  font-size: 2em;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.20px;
}


.description-real{
  top: 40px;
  color: #fff;
  font-size: 1em;
}

.preview-box .image-box{
  width: 100%;
  display: block;
  position: relative;
}

.tag{
  margin: 2%;
  position: absolute;
  bottom: 0;
  right: 0;
  text-align: right;
  padding: 7px 14px;
  background-color: #fff;
  color: #000;
  font-weight: 600;
  font-size: 20px;
  box-shadow: -2px 2px 5px 2px #00000020;
}


.image{
  margin: 5px;
  padding: 0;
  box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
  overflow: hidden;
}

.image-box img{
  width: 100%;
  border-radius: 0 0 3px 3px;
}

.shadow{
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  z-index: 2;
  display: none;
  background: rgba(0,0,0,0.4);
}
.shadow.show{
  display: block;
}

@media (max-width: 1000px) {
  .gallery .image{
    width: calc(100% / 3);
  }
}
@media (max-width: 800px) {
  .gallery .image{
    width: calc(100% / 2);
  }
}
@media (max-width: 700px) {
  .wrapper nav .items{
    max-width: 600px;
  }
  nav .items span{
    padding: 7px 15px;
  }
}
@media (max-width: 600px) {
  .wrapper{
    margin: 30px auto;
  }
  .wrapper nav .items{
    flex-wrap: wrap;
    justify-content: center;
  }
  nav .items span{
    margin: 5px;
  }
  .gallery .image{
    width: 100%;
  }
}