.modal,
.modal2 {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

.modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  opacity: 10%;
  visibility: hidden;
  transform: scale(1.1);
}

.modal-content {
  box-sizing: border-box;
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 0px 105px;
  width: 630px;
  border-radius: 10px;
}
.close-button {
  position: absolute;
  right: 36px;
  top: 32px;
  width: 20px;
  line-height: 1.5rem;
  cursor: pointer;
  background-color: white;
  font-size: 20px;
}

.show-modal {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.modal-content h2 {
  font-family: "Work Sans";
  font-weight: 400;
  color: black;
  align-self: center;
  margin-top: 10px;
  font-size: 2em;
  margin-top: 60px;
  margin-bottom: 46px;
}

.galleryModal {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.imgWorks {
  position: relative;
  width: 78px;
  z-index: 1;
}

.galleryModal figcaption {
  font-size: 12px;
}

#addPictures,
.addPictures {
  font-family: "Syne";
  font-weight: 700;
  color: white;
  background-color: #1d6154;
  margin: 2em auto;
  width: 237px;
  text-align: center;
  border-radius: 25px;
  cursor: pointer;
  height: 36px;
  font-size: 14px;
  border: none;
  box-shadow: 0px 4px 14px rgb(0 0 0 / 9%);
  text-decoration: none;
}

.removeGallery {
  cursor: pointer;
  font-family: "Syne";
  font-weight: 400;
  color: #d65353;
  border: 0;
  background-color: white;
  font-size: 1.05em;
  margin-top: -5px;
}

.buttonModalFin {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #b3b3b3;
  align-self: center;
  width: 420px;
  margin-top: 47px;
  margin-bottom: 48px;
  padding-top: 9px;
}

/*2nd */

.modal2 {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  opacity: 10%;
  visibility: hidden;
  transform: scale(1.1);
}

.modal-content2 {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 9px 30px;
  width: 630px;
  border-radius: 10px;
}
.close-button2 {
  align-self: flex-end;
  float: right;
  width: 20px;
  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
  background-color: white;
  font-size: 20px;
}

.show-modal2 {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

#allerRetour {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

#return {
  cursor: pointer;
}

#titleModal2 {
  font-family: "Work Sans";
  font-weight: 400;
  color: black;
  align-self: center;
  margin-top: 10px;
  font-size: 2em;
  display: flex;
  justify-content: center;
}

.buttonModalFin2 {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #b3b3b3;
  align-self: center;
  width: 420px;
  margin-top: 47px;
}

/*ICONES */
.iconeGarbage {
  background-color: black;
  position: absolute;
  z-index: 2;
  padding: 4px;
  box-sizing: border-box;
  border-radius: 2px;
  top: 6px;
  left: 55px;
  cursor: pointer;
}

.boxGarbage {
  position: absolute;
  z-index: 2;
}

.iconeExpand {
  cursor: pointer;
  background-color: black;
  position: absolute;
  z-index: 2;
  padding: 3px;
  box-sizing: border-box;
  border-radius: 2px;
  width: 17px;
  top: 6px;
  left: 35px;
}

.boxExpand {
  z-index: 2;
  position: absolute;
  display: none;
}

.addPicture {
  display: flex;
  flex-direction: column;
  width: 420px;
  background-color: #e8f1f6;
  border-radius: 3px;
  justify-content: center;
  align-self: center;
  align-items: center;
  margin-top: 36px;
}

#fondImage {
  font-size: 58px;
  color: #b9c5cc;
  font-weight: 100;
  margin-top: 28px;
}

.ajoutPhoto {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 173px;
  height: 36px;
  background-color: #cbd6dc;
  color: #306685;
  border-radius: 50px;
  margin-top: 21px;
}

#image {
  display: none;
}

.descriptionImage {
  color: #444444;
  font-size: 10px;
  font-family: "Work Sans";
  font-weight: 400;
  margin-top: 7px;
  margin-bottom: 19px;
}

.infoPhoto {
  display: flex;
  flex-direction: column;
  width: 420px;
  align-self: center;
  margin-top: 9px;
  font-weight: 500;
  color: #3d3d3d;
}

#infoTitle {
  margin-bottom: 10px;
  margin-top: 21px;
  display: flex;
  gap: 10px;
  flex-direction: column;
}

#title,
#selectionCategorie2 {
  width: 420px;
  height: 51px;
  border-color: #ffffff;
  box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.09);
  color: #6c6c6c;
  padding-left: 16px;
}

#title {
  border: white;
  outline: none;
}

#formModal {
  align-self: center;
}

#addPictures:disabled {
  background-color: #a7a7a7;
  width: 237px;
  height: 36px;
  cursor: not-allowed;
}

.imagePreview {
  width: 129px;
  height: 193px;
}

.previewOff {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview p {
  color: red;
  margin-top: 30px;
}

#descriptionImage {
  color: #444444;
  font-size: 10px;
  font-weight: 400;
  margin-top: 7px;
  margin-bottom: 19px;
  display: flex;
  justify-content: center;
}

#pictures p {
  color: red;
  align-self: center;
  display: flex;
  justify-content: center;
}
