
.center-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120vh;
  padding: 15px;
}
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}
.modal-wrapper.show {
  display: flex;
}
.modal-content {
  background-color: white;
  max-width: 510px;
  max-height: 90vh;
  width: auto;
  height: auto;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  margin: auto;
  box-shadow: 0 0 5px;
  transition: all 30ms ease-in-out;
}
.modal-img-container {
  display: block;
  align-items: center;
  justify-content: center;
  height: auto;
  width: auto;
  padding: 3px;
}

.modal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid rgb(1, 1, 1);
  transition: all 10ms ease-in-out;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  color: #C89446;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 36px;
  font-weight: bold;
  color: #C89446;
  z-index: 1;
}

.modal-prev:hover,
.modal-next:hover {
  color: #000000;
}
.modal-prev {
  left: 15px;
}
.modal-next {
  right: 15px;
}
.thumbnail-img {
  width: 100%;
  max-width: 400px;
  cursor: pointer;
}
/* Styles CSS pour le carrousel */
.carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 55vh;
  position: relative;
  margin-bottom: 100px;
}
.carousel-container img {
width: 600px;
height: 900px;
object-fit: cover;
}

.carousel-wrapper {
  width: 100%;
  max-width: 1200px;
}

.carousel-item {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 380px;
}

.carousel-item img {
  max-width: 100%;
  max-height: 100%;
}
.modal-prev,
.modal-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: none;
  border: none;
  font-size: 24px;
  color: #C89446;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover,
.modal-prev:hover,
.modal-next:hover {
  opacity: 1;
}

.slick-prev,
.modal-prev{
  left: 10px;
}

.slick-next,
.modal-next {
  right: 10px;
}

/* Styles CSS pour l'overlay et le texte */
.carousel-item {
  position: relative;
  /* Ajouter cette ligne */
}

.carousel-item:hover .overlay {
  opacity: 1;
  /* Ajouter cette ligne */
}
/*images pour les écrans de moins de 768px de largeur */
@media (max-width: 767px) {
  .modal-img {
    max-width: 100%;
    height: auto;
  }
}
/* pour les écrans de 768px de largeur et plus */
@media (min-width: 768px) {
  .modal-img {
    max-width: 80%;
    max-height: 80vh;
  }
}