@charset "UTF-8";
#page_galerie {
  min-height: 80vh;
}

#tableau_galerie {
  display: block;
  max-width: 1800px;
  margin: auto;
  text-align: center;
  font-size: 0;
}

.cadre_photo {
  display: inline-grid;
  background: linear-gradient(#009442, #029879);
  border-radius: 10px;
  overflow: hidden;
  margin: 18px;
  box-shadow: #000000 0px 2px 8px -2px;
}

.conteneur_photo {
  display: block;
  width: 400px;
  height: 300px;
  box-sizing: content-box;
  cursor: pointer;
  transition: all 0.1s ease-in-out;
}

.miniature {
  margin: 0;
  width: inherit;
  height: inherit;
  -o-object-fit: cover;
     object-fit: cover;
  transition: all 0.1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.description_photo {
  display: block;
  height: 3em;
  color: #f0fff4;
  font-size: 18px;
  font-weight: 600;
  padding-right: 3%;
  text-align: right;
  z-index: 1;
}

.cadre_photo:hover .conteneur_photo .miniature {
  height: 354px;
  margin-bottom: -54px;
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
}
.cadre_photo:hover .description_photo {
  text-shadow: #000000 0px 0px 4px;
}

#image_chargement {
  padding: 5vh;
}

/* ------------------- Style de la fenêtre "modale" -------------------*/
.modal {
  display: none;
  position: fixed;
  z-index: 21;
  padding-top: 3vh;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 25, 16, 0.9764705882);
}

/* le contenu du Modal */
.contenu_modal {
  position: relative;
  margin: auto;
  padding: 0;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 1200px;
}

/* Le bouton fermer */
.croix {
  color: white;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 35px;
  font-weight: bold;
  z-index: 22;
}

.croix:hover,
.croix:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
}

.monImage {
  display: none;
}

.curseur {
  cursor: pointer;
}

.precedent,
.suivant {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.2s ease;
  border-radius: 0 3px 3px 0;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
}

.suivant {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.precedent:hover,
.suivant:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.modalImage {
  margin-bottom: -5px;
  max-height: 90vh;
  max-width: 100vw;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
}

.conteneur_titre {
  text-align: center;
  background-color: rgba(0, 25, 16, 0.9764705882);
  padding: 2px 16px;
  color: #024f41;
  font-size: 1.2em;
}

.active {
  opacity: 1;
}

@media only screen and (max-width: 1000px) and (max-device-width: 1000px) and (orientation: landscape) {
  #page_galerie {
    min-height: 62vh;
  }
  .cadre_photo {
    box-shadow: none;
    border-radius: 0;
    margin: 1px;
    background: #029879;
  }
  .conteneur_photo {
    height: 44vh;
    width: 33vw;
  }
  .description_photo {
    font-size: 14px;
  }
  .cadre_photo:hover .conteneur_photo .miniature {
    height: 56vh;
    margin-bottom: -12vh;
  }
  .modal {
    padding-top: 0;
  }
  .conteneur_titre {
    font-size: 0.8em;
  }
}
@media only screen and (max-device-width: 796px) and (orientation: portrait) {
  #page_galerie {
    padding-top: 7vh;
    min-height: 92vh;
  }
  #tableau_galerie {
    max-width: 100vw;
    overflow: hidden;
  }
  .cadre_photo {
    background: #029879;
    width: 100vw;
    margin: 50px 0;
    margin-left: 0;
    margin-right: 0;
    border-left: none;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
    display: inline-grid;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
  }
  .cadre_photo:hover .conteneur_photo .miniature {
    height: auto;
    margin-bottom: 0;
  }
  .conteneur_photo {
    display: inline-grid;
    width: 100vw;
    height: auto;
    transition: all 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
  }
  .miniature {
    height: auto;
    -o-object-fit: contain;
       object-fit: contain;
    transition: all 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
    justify-self: center;
  }
  .description_photo {
    font-size: 38px;
    padding-right: 5%;
    transition: all 0.3s cubic-bezier(0.65, 0.05, 0.36, 1);
  }
  .dans_le_cadre {
    transform: scale(105%);
  }
  .dans_le_cadre .conteneur_photo {
    transform: scale(135%) translateY(5%);
  }
  .dans_le_cadre .description_photo {
    text-shadow: #000000 1px 1px 6px;
  }
  #image_chargement {
    padding: 10vh 0 10vh 0;
  }
  /* _______________ Style pour le "Modale" sur Mobile ____________*/
  .croix {
    font-size: 80px;
  }
  .precedent,
  .suivant {
    font-size: 75px;
  }
  .precedent:hover,
  .suivant:hover {
    background-color: initial;
  }
  .precedent:active,
  .suivant:active {
    background-color: rgba(0, 0, 0, 0.8);
  }
  .modal {
    padding-top: 0;
  }
  .contenu_modal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .modalImage {
    width: 100vw;
    height: auto;
  }
}