/* Universal box-sizing rule */
*,
*::before,
*::after {
  box-sizing: border-box;
}


.inside-projet {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-name {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

/* Adjusting the imagesdescr class for proper wrapping */
.imagesdescr {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Ensures equal spacing between images */
  align-items: center;
  gap: 1rem; /* Adds spacing between the images */
  flex-wrap: wrap; /* Allows images to wrap to the next row if needed */
  width: 100%; /* Ensures the container fits within the .inside class */
  max-width: 100%; 
  overflow-x: hidden; 
}
.imagesdescr5 {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Ensures equal spacing between images */
  align-items: center;
  gap: 1rem; /* Adds spacing between the images */
  height: 400px;
  flex-wrap: wrap; /* Allows images to wrap to the next row if needed */
  width: 100%; /* Ensures the container fits within the .inside class */
  max-width: 100%; 
  overflow-x: hidden; 
}


#imagesdescr {
  display: flex;
  flex-direction: row;
  justify-content: space-between; /* Ensures equal spacing between images */
  align-items: center;
  gap: 1rem; /* Adds spacing between the images */
  width: 100%; /* Makes the container fit the width of the .inside class */
}

.imgdescr {
  height: 100%;
  width: 100%;
}

/* Adjusting the imgdescr4 class for consistent sizing */
.imgdescr4 {
  flex: 1 1 calc(33.33% - 1rem); /* Ensures each image takes up one-third of the row with spacing */
  max-width: calc(33.33% - 1rem); /* Prevents images from exceeding their allocated space */
  height: auto; /* Maintains the aspect ratio of the images */
  object-fit: cover; /* Ensures images fit nicely within their container */
  box-sizing: border-box; /* Includes padding and border in the width/height calculation */
}

.imgdescr2 {
  height: 300px;
  width: 300px;
  flex: 0 0 auto; 
}

.imgdescr3 {
  display: flex;
  left: 50%;
  height: 50%;
  width: 50%;
  flex: 0 0 auto; 
}

.antigone {
  display: flex;
  align-items: center;
  width: 100%;
  flex-direction: row;
  gap: 1rem;
}

.bordure {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: rgb(0, 0, 0) 2px solid;
}

/* POP UP */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 1000px;
  max-height: 1200px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 10px;
  border: rgb(255, 255, 255) 2px solid;
}

.modal-content {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: fill;
}

.close {
  position: absolute;
  top: 5px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  background: rgba(193, 193, 193, 0.2);
  border-radius: 15px;
  height: 40px;
  width: 40px;
  display: flex;
  z-index: 9000;
}

.cross {
  left: 6px;
  top: -13px;
  position: absolute;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.close:hover,
.close:focus {
  background: #e7e7e7;
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 2px px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  cursor: pointer;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: #fff;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  user-select: none;
}

.prev {
  left: 0;
  background: rgba(193, 193, 193, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 2px px rgba(0, 0, 0, 0.1);
}

.next {
  right: 0;
  background: rgba(193, 193, 193, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 2px px rgba(0, 0, 0, 0.1);
}

.prev:hover,
.next:hover {
  background: #e7e7e7;
  backdrop-filter: blur(10px);
  border-radius: 15px;
  box-shadow: 0 2px px rgba(0, 0, 0, 0.1);
}