/* GALERIE D'IMAGES */
.section-galerie {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-galerie .section-content {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.section-galerie .section-content h2 {
  margin-bottom: 0px;
}

.section-galerie .section-content .section-contenus {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.section-galerie .section-content .section-contenus h2, 
.section-galerie .section-content .section-contenus h3,
.section-galerie .section-content .section-contenus h4,
.section-galerie .section-content .section-contenus h5,
.section-galerie .section-content .section-contenus p {
  margin-bottom: 0px;
}

.section-galerie .galerie-items {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  row-gap: 30px;
  column-gap: 2%;
}

.section-galerie .galerie-items .galerie-image {
  aspect-ratio: 1/1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  flex: 0 0 32%;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 20px;
}

.section-galerie .galerie-items .galerie-image:hover {
  opacity: 0.5;
}

.section-galerie .voir-plus-galerie {
  text-align: center;
}

.section-galerie .voir-plus-galerie a {
  width: -webkit-fill-available;
  border: 0px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-galerie .voir-plus-galerie p {
  padding: 15px 20px;
  font-size: 18px;
  letter-spacing: 2.7px;
  transition: all 0.5s ease;
  text-transform: uppercase;
  margin-bottom: 0px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 100000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 100%;
  max-width: calc(100vw - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close {
  color: white;
  position: absolute;
  top: 5px;
  right: 20px;
  font-size: 50px;
  font-weight: bold;
  padding: 25px;
}

.close:hover,
.close:focus {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.slideImages {
  display: none;
  position: relative;
  width: fit-content;
}

.slideImages .galerie-image {
  width: auto !important;
  height: calc(100vh - 200px);
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  /* color: white; */
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 10px 10px 0;
  user-select: none;
  -webkit-user-select: none;
  /* background-color: var(--principale); */
}

.prev {
  left: 0px;
  border-radius: 10px;
}

.next {
  right: 0px;
  border-radius: 10px;
}

/* .prev:hover,
.next:hover {
  color: #000;
  background-color: var(--accent);
} */

.numbertext {
  color: white;
  height: 35px;
  display: flex;
  font-size: 14px;
  padding: 0px 10px;
  position: absolute;
  top: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.75);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  border-radius: 10px 0 0 10px;
  width: fit-content;
}

.active,
.demo:hover {
  opacity: 1;
}

/* RESPONSIVE */
@media screen and (max-width: 1550px) {
  .next {
    border-radius: 10px 0px 0px 10px;
  }

  .prev {
    border-radius: 0px 10px 10px 0px;
  }
}

@media screen and (max-width: 1270px) {
  .slideImages .galerie-image {
    width: 100% !important;
    height: auto;
  }

  .modal {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    max-width: calc(100vw - 100px);
  }
}

@media screen and (max-width: 1024px) {}

@media screen and (max-width: 960px) {}

@media screen and (max-width: 820px) {}

@media screen and (max-width: 768px) {
  .section-galerie .galerie-items {
    row-gap: 20px;
  }

  .modal-content {
    max-width: calc(100vw - 50px);
  }

  .close {
    top: 0px;
    right: 0px;
  }
}

@media screen and (max-width: 600px) {
  .section-galerie .galerie-items .galerie-image {
    flex: 0 0 49%;
  }

  .section-galerie .galerie-items {
    row-gap: 10px;
  }
}

@media screen and (max-width: 450px) {
  .section-galerie .galerie-items {
    row-gap: 20px;
  }

  .section-galerie .galerie-items .galerie-image {
    flex: 0 0 100%;
  }
}