.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  /* added line */
  border: 0;
}

.carrousel_container * {
  box-sizing: border-box;
}

/* ------------ Title ------------ */
.caroussel_title_container {
  position: absolute;
  padding: 10px 10px 10px 10px;
  justify-content: flex-start;
  background-color: white;
  margin-left: 6%;
  max-width: 35%;
}

.caroussel_title {
  font-family: 'Oswald';
  color: #1a1a1a;
  font-size: 250%;
  text-shadow: none;
  line-height: 1.1;
  font-weight: normal;
  font-style: normal;
  text-decoration: none;
  text-align: left;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: uppercase;
  font-weight: 700;
}


.caroussel_p {
  margin-bottom: 0px !important;
}

/* ------------ Carrousel Container ------------ */
.carrousel_container {
  /* width in carrousel_page.php */
  /* max-height in carrousel_page.php */
  position: relative;
  margin: auto;
}

.carrousel_img {
  object-fit: contain;
  overflow: hidden;
  object-fit: cover;

  /* width in carrousel_page.php */
  /* height in carrousel_page.php */
}



@media (max-width: 520px) {
  .carrousel_img {
    object-fit: cover;
  }

}


/* Hide the images by default */
.carrousel_mySlides {
  position: absolute;
  width: 100%;
  display: flex;
  /* contexte sur le parent */
  flex-direction: column;
  /* direction d'affichage verticale */
  justify-content: center;
  /* alignement vertical */
}

.carrousel_showing_init {
  opacity: 1;

}

.carrousel_hideSlide_init {
  opacity: 0;
}

.carrousel_showing_next {
  animation-name: slide-in-next;
  animation-duration: 1s;
  opacity: 1;
}

.carrousel_showing_previous {
  animation-name: slide-in-previous;
  animation-duration: 1s;
  opacity: 1;
}

.carrousel_hideSlide_next {
  animation-name: slide-out-next;
  animation-duration: 1s;
}


.carrousel_hideSlide_previous {
  animation-name: slide-out-previous;
  animation-duration: 1s;

}

/* ------------ Next & previous buttons ------------ */
#carrousel_prev,
#carrousel_next {
  /* cursor: pointer; */
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 22px 16px;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;

  background-color: rgba(242, 242, 242, 0.6);
  color: rgba(0, 0, 0, 0.7);
}

#carrousel_prev>span,
#carrousel_next>span {
  vertical-align: sub;
}

/* Position the "next button" to the right */
#carrousel_next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover and focus, add a white background color with a little bit see-through */
#carrousel_prev:hover,
#carrousel_next:hover,
#carrousel_prev:focus,
#carrousel_next:focus,
.carrousel_controls:hover,
.carrousel_controls:hover,
.carrousel_controls:focus,
.carrousel_controls:focus {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
}

/* ------------ Play/Pause ------------ */
.carrousel_controls {
  /* cursor: pointer; */
  background-color: rgba(242, 242, 242, 0.7);
  color: rgba(0, 0, 0, 0.9);
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
  border-radius: 0 0 3px 0;
}

/* ------------ The dots/bullets/indicators ------------ */
.carrousel_dot_center {
  text-align: center;
  padding: 8px 12px;
  margin-top: -5vh;
  position: absolute;
  bottom: 5%;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  width: fit-content;
  width: -moz-fit-content;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 80px;
  line-height: 0 !important;
}

.carrousel_dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: white;
  border: solid 1px rgba(0, 0, 0, 0.7);
  display: inline-block !important;
  border-radius: 50%;
  animation-name: square-dot-end;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

.carrousel_active_dot {
  background-color: rgba(0, 0, 0, 0.7);
  animation-name: square-dot-start;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}


/* ------------ Transition ------------ */
@keyframes slide-in-next {
  from {
    margin-left: 100%;
  }

  to {
    margin-left: 0%;
  }
}

@keyframes slide-out-next {
  from {
    margin-left: 0%;
  }

  to {
    margin-left: -100%;
  }
}

@keyframes slide-in-previous {
  from {
    margin-left: -100%;
  }

  to {
    margin-left: 0%;
  }
}

@keyframes slide-out-previous {
  from {
    margin-left: 0%;
  }

  to {
    margin-left: 100%;
  }
}

@keyframes square-dot-start {
  to {
    border-radius: 0%;
  }
}

@keyframes square-dot-end {

  to {
    border-radius: 50%;
  }
}