/* SOMMAIRE */
/* 1. GRID
/* 2. MASONRY
/* 3. LIGHTBOX
/* 4. DIAPO
/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/
/* GALLERY GRID */
/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/

/* gallery.js | style - BEGIN */

#fvgalleryID {
  display: flex;
  flex-wrap: wrap;
  width: calc(100% - 340px);
  transition: all .8s ease;
}

#fvgalleryID.loading {
  filter: blur(4px) grayscale(100%);
}

#fvgalleryID .gallery-element {
  /*
  width: calc(33.33% - 40px);
  margin: 0 0 50px 0;
  box-sizing: border-box;
  text-align: center;
  */
  transition: all .4s ease;
}

#fvgalleryID .gallery-element.hide {
  display: none !important;
}

#gallery_filters {
  width: 340px;
  background-color: #EDEDED;
  padding: 35px 20px 20px 20px;
  box-sizing: border-box;
}

/* gallery.js | style - END */

.hello {
  opacity: 1 !important;
}

.full {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.full .content {
  background-color: rgba(0, 0, 0, 0.75) !important;
  height: 100%;
  width: 100%;
  display: grid;
}

.full .content img {
  left: 50%;
  transform: translate3d(0, 0, 0);
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  width: initial;
}

.byebye {
  opacity: 0;
}

.byebye:hover {
  transform: scale(0.2) !important;
}

.galleryG {
  display: grid !important;
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 8px;
}

.galleryG img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 16px #333;
  transition: all 1.5s ease;
}

.galleryG img:hover {
  box-shadow: 0 0 32px #333;
}

.galleryG .content {
  padding: 4px;
}

.galleryG .gallery-item {
  transition: grid-row-start 300ms linear;
  transition: transform 300ms ease;
  transition: all 0.5s ease;
  cursor: pointer;
}

.galleryG .gallery-item:hover {
  transform: scale(1.025);
}

@media (max-width: 600px) {
  .galleryG {
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
  }
}

@media (max-width: 400px) {
  .galleryG {
    grid-template-columns: repeat(auto-fill, minmax(50%, 1fr));
  }
}

/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/
/* GALLERY MASONRY */
/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/
.galleryS ul {
  display: grid !important;
  height: calc(100vh - 10px);
  grid-template: repeat(6, 1fr)/repeat(6, 1fr);
  grid-gap: 0.5em;
}

.galleryS>ul .layer:nth-child(6n+1) {
  grid-column: span 2;
  grid-row: span 2;
}

.galleryS>ul .layer:nth-child(2) {
  grid-column: span 3;
  grid-row: span 3;
}

.galleryS>ul .layer:nth-child(4) {
  grid-column: span 1;
  grid-row: span 2;
}

.galleryS>ul .layer>a {
  opacity: 0;
  position: absolute;
  color: #000;
  background-color: #000;
  text-shadow: 0 -1px 5px #fff, -1px 0px 5px #fff, 0 1px 5px #fff, 1px 0px 5px #fff;
  padding: 2rem;
  mix-blend-mode: difference;
  width: 100%;
  height: 100%;
  transition: all ease 1s;
  font-size: 14px;
  text-transform: uppercase;
  text-align: center;
}

.galleryS>ul .layer>img {
  width: 100%;
  min-height: 100%;
  transition: all ease 1s;
  object-fit: cover;
}

.galleryS>ul .layer:hover img {
  filter: blur(4px);
}

.galleryS>ul .layer:hover a {
  opacity: 1;
}

.galleryS>ul .layer {
  overflow: hidden;
  position: relative;
  /* box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 20px 0 rgba(0, 0, 0, 0.19); */
}

.galleryS ul .layer,
.galleryS ul a {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

[id^=lightbox-] {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  opacity: 0;
  transition: opacity 450ms ease-in-out;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 99999;
}

[id^=lightbox-]:target {
  opacity: 1;
  pointer-events: inherit;
}

[id^=lightbox-]:target img {
  filter: blur(0);
}

[id^=lightbox-] .content {
  max-width: 90%;
  position: relative;
  color: #fff;
}

[id^=lightbox-] .content:hover>a.close {
  opacity: 1;
  transform: scale(1, 1);
}

[id^=lightbox-] .content:hover>.title {
  opacity: 1;
  transform: translateY(0px);
}

[id^=lightbox-] .content:hover>.title::after {
  opacity: 1;
}

[id^=lightbox-] .content>* {
  transition: all 450ms ease-in-out;
}

[id^=lightbox-] .title {
  display: block;
  padding: 1em;
  position: absolute;
  bottom: 0;
  width: 90%;
  transform: translateY(50%);
  font-size: 1.5em;
  opacity: 0;
  text-align: center;
  margin: 0 5%;
}

[id^=lightbox-] .title::after {
  content: " ";
  background-color: rgba(0, 0, 0, 0.4);
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  transition: all 350ms ease-in-out 250ms;
  opacity: 0;
  transform-origin: bottom;
  mix-blend-mode: soft-light;
}

[id^=lightbox-] img {
  max-height: 80vh;
  max-width: 90%;
  margin: auto;
  padding: 0;
  filter: blur(50px);
}

[id^=lightbox-] a.close {
  width: 2em;
  height: 2em;
  position: absolute;
  right: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0, 0);
  opacity: 0;
  transform-origin: right top;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
}

[id^=lightbox-] a.close::after {
  content: "X";
}

.galleryS .lightbox img {
  object-fit: cover;
}

.lightArrows div {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
}

.prevLight {
  left: 5%;
}

.nextLight {
  right: 5%;
}

.lightArrows a {
  color: #fff;
}

.lightArrows a::before {
  content: " ";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 13px;
  display: inline-block;
  margin-right: 10px;
  border-color: transparent transparent transparent #fff;
}

.lightArrows .prevLight a::before {
  transform: rotate(180deg);
}

@media (max-width: 800px) {
  .galleryS ul {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
  }

  .galleryS>ul .layer {
    width: 48%;
    margin: 1%;
  }
}

@media (max-width: 800px) {
  .galleryS>ul .layer {
    width: 98%;
  }
}

/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/
/* GALLERY LIGHTBOX */
/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/
.galleryL {
  width: 100%;
  height: 100%;
  position: relative;
  margin-bottom: 130vh;
}

.galleryL .blocks {
  width: 100%;
}

.galleryL .bloc-1 {
  height: 100%;
}

.galleryL .bloc-2 {
  height: 50%;
}

.galleryL .bloc-3 {
  height: 33%;
}

.galleryL .bloc-4 {
  height: 100px;
}

.bloc-5 {
  height: 20%;
}

.bloc-6 {
  height: 16.65%;
}

.galleryL img {
  object-fit: cover;
  width: initial;
}

.trans {
  transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  -webkit-transition: all 1s ease;
}

.galleryL .top {
  display: flex;
  width: 100%;
  height: 20vw;
  margin-top: 10vh;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10vh;
}

.galleryL .top ul {
  list-style: none;
  width: 100%;
  height: 100%;
  z-index: 1;
  box-sizing: border-box;
}

.galleryL .top ul li {
  position: relative;
  float: left;
  overflow: hidden;
}

.galleryL .top ul li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  content: '';
  color: white;
  opacity: 0.4;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
  transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  -ms-transition: all 0.5s ease;
  -o-transition: all 0.5s ease;
  -webkit-transition: all 0.5s ease;
}

.galleryL .top ul li:hover::before {
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.90);
}

.galleryL .top ul li img {
  width: 100% !important;
  height: 100%;
  overflow: hidden;
}

.galleryL .lightbox {
  position: fixed;
  width: 100%;
  height: 100%;
  text-align: center;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
}


.galleryL .lightbox img {
  max-width: 100%;
  max-height: 80%;
  position: relative;
  top: -100%;
  /* Transition */
  transition: all 1s ease;
  -moz-transition: all 1s ease;
  -ms-transition: all 1s ease;
  -o-transition: all 1s ease;
  -webkit-transition: all 1s ease;
  margin: auto;
}


.galleryL .lightbox:target {
  outline: none;
  top: 0;
  opacity: 1;
  pointer-events: auto;
  transition: all 1.2s ease;
  -moz-transition: all 1.2s ease;
  -ms-transition: all 1.2s ease;
  -o-transition: all 1.2s ease;
  -webkit-transition: all 1.2s ease;
}

.galleryL .lightbox:target img {
  top: 0;
  top: 50%;
  transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
}

.lightboxBar {
  display: flex;
  position: fixed;
  bottom: 0;
  opacity: 1;
  width: 100%;
  height: 10%;
  text-align: center;
  left: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 999;
  opacity: 1;
  justify-content: center;
}

.lightboxBar {
  display: none;
}

.lightboxBar>div {
  display: flex;
  justify-content: center;
}

.lightboxBar .arrow-rite {
  width: 70px;
}

.lightboxBar .arrow-rite a {
  color: red;
}

#page .lightboxBar .arrow-rite img {
  width: 100%;
  height: 70px;
}

@media screen and (max-width: 767px) {
  .galleryL .bloc-4 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media screen and (min-width: 767px) and (max-width: 1023px) {

  .galleryL .bloc-4 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }

}

@media screen and (min-width: 767px) {
  .galleryL {
    margin-bottom: 70vh;
  }

  .galleryL .bloc-4 {
    height: 200px;
  }
}

/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/
/* GALLERY DIAPO */
/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/
.slider_focus {
  max-width: 1280px;
  margin: 2rem auto
}

.slider_focus ul {
  display: flex;
  padding-bottom: 50%;
  position: relative;
  overflow: hidden;
  list-style-type: none;
  margin: 0;
}

.slider_focus ul li::before {
  content: none;
}

.slider_focus ul li a img {
  flex: 1;
  padding: .5rem;
  height: 200px;
}

.slider_focus ul li span img {
  position: absolute;
  bottom: 0;
  left: -100%;
  opacity: 0;
  transition: all .6s;
  height: 600px;
  object-fit: contain;

}


.slider_focus ul li:focus-within span img {
  left: 0;
  opacity: 1
}

@media screen and (max-width: 600px) {
  .slider_focus ul {
    flex-wrap: wrap;
  }

}



/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/
/* GALLERY CUBE */
/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/
#galleryCube {
  width: 300px;
  height: 300px;
  margin: 15% auto;
}

#galleryCube .box-area {
  -webkit-animation: animate 10s ease-in-out infinite;
  animation: animate 10s ease-in-out infinite;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-transform-origin: 100px 100px 0;
  -ms-transform-origin: 100px 100px 0;
  transform-origin: 100px 100px 0;
}

@-webkit-keyframes animate {

  from,
  to {
    -webkit-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }

  16% {
    -webkit-transform: rotateY(-90deg);
    transform: rotateY(-90deg);
  }

  33% {
    -webkit-transform: rotateY(-90deg) rotateZ(90deg);
    transform: rotateY(-90deg) rotateZ(90deg);
  }

  50% {
    -webkit-transform: rotateY(-180deg) rotateZ(90deg);
    transform: rotateY(-180deg) rotateZ(90deg);
  }

  66% {
    -webkit-transform: rotateY(-270deg) rotateZ(90deg);
    transform: rotateY(-270deg) rotateZ(90deg);
  }

  83% {
    -webkit-transform: rotateX(-270deg);
    transform: rotateX(-270deg);
  }

}

@keyframes animate {

  from,
  to {
    -webkit-transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }

  16% {
    -webkit-transform: rotateY(-90deg);
    transform: rotateY(-90deg);
  }

  33% {
    -webkit-transform: rotateY(-90deg) rotateZ(90deg);
    transform: rotateY(-90deg) rotateZ(90deg);
  }

  50% {
    -webkit-transform: rotateY(-180deg) rotateZ(90deg);
    transform: rotateY(-180deg) rotateZ(90deg);
  }

  66% {
    -webkit-transform: rotateY(-270deg) rotateZ(90deg);
    transform: rotateY(-270deg) rotateZ(90deg);
  }

  83% {
    -webkit-transform: rotateX(-270deg);
    transform: rotateX(-270deg);
  }

}

#galleryCube .box-area div {
  position: absolute;
  width: 300px;
  height: 300px;
  line-height: 300px;
}

#galleryCube .box-area .box1 {
  /* background-image: url('https://i.postimg.cc/657qCg0T/img1.jpg'); */
  background-size: cover;
  background-position: center center;
  -webkit-transform: translateZ(100px);
  transform: translateZ(100px);
}

#galleryCube .box-area .box2 {
  /* background-image: url('https://i.postimg.cc/Px3fwQvm/img2.jpg'); */
  background-size: cover;
  background-position: center center;
  -webkit-transform: rotateY(90deg) translateZ(100px);
  transform: rotateY(90deg) translateZ(100px);
}

#galleryCube .box-area .box3 {
  /* background-image: url('https://i.postimg.cc/vH91pC6k/img3.png'); */
  background-size: cover;
  background-position: center center;
  -webkit-transform: rotateY(90deg) rotateX(90deg) translateZ(100px);
  transform: rotateY(90deg) rotateX(90deg) translateZ(100px);
}

#galleryCube .box-area .box4 {
  /* background-image: url('https://i.postimg.cc/g2Hx0RsK/img4.jpg'); */
  background-size: cover;
  background-position: center center;
  -webkit-transform: rotateY(180deg) rotateZ(90deg) translateZ(100px);
  transform: rotateY(180deg) rotateZ(90deg) translateZ(100px);
}

#galleryCube .box-area .box5 {
  /* background-image: url('https://i.postimg.cc/qRSRFGBp/img5.jpg'); */
  background-size: cover;
  background-position: center center;
  -webkit-transform: rotateY(-90deg) rotateZ(90deg) translateZ(100px);
  transform: rotateY(-90deg) rotateZ(90deg) translateZ(100px);
}

#galleryCube .box-area .box6 {
  /* background-image: url('https://i.postimg.cc/WbM39rBP/img6.jpg'); */
  background-size: cover;
  background-position: center center;
  -webkit-transform: rotateX(-90deg) translateZ(100px);
  transform: rotateX(-90deg) translateZ(100px);
}

/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/
/* GALLERY VINTAGE */
/*****************************************************************************************************/
/*****************************************************************************************************/
/*****************************************************************************************************/
#galleryV {
  position: relative;
  height: 500px;
}

#galleryV ul {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  list-style: none;
  width: 955px;
  height: 450px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 1px 1px 3px 1px;
  list-style-type: none;
}

#galleryV li {
  position: relative;
  width: 190px;
  height: 450px;
  float: left;
  border-left: 1px solid white;
  -webkit-transition: all 0.7s;
  -moz-transition: all 0.7s;
  transition: all 0.7s;
  box-shadow: -2px 0 10px 2px;
}

#galleryV li::before {
  content: none;
}

#galleryV ul li:first-child {
  border: none;
}

#galleryV span {
  display: block;
  position: absolute;
  bottom: 0;
  width: 50%;
  color: white;
  white-space: nowrap;
  padding: 20px;
  background: -moz-linear-gradient(left, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
  /* FF3.6+ */
  background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(0, 0, 0, 0.65)), color-stop(100%, rgba(0, 0, 0, 0)));
  /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
  /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(left, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
  /* Opera 11.10+ */
  background: -ms-linear-gradient(left, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
  /* IE10+ */
  background: linear-gradient(to right, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
  /* W3C */
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a6000000', endColorstr='#00000000', GradientType=1);
  /* IE6-9 */

}

#galleryV img {
  width: 800px;
  height: 450px;
  object-fit: cover;
}

#galleryV ul:hover li {
  width: 50px;
}


#galleryV ul li:hover {
  width: 750px;
}






/* galleries - END */
