  /*-----Carrousel container------*/
  .carousel-container.photos-page {
      position: relative;
      max-width: 800px;
      margin: auto;
  }

  .carousel-viewport {
      overflow: hidden;
  }

  /*Les slides*/

  .carousel {
      display: flex;
      transition: transform 0.5s ease;
      width: 100%;
      /* obligatoire */
  }

  .slide {
      min-width: 100%;
      /* chaque slide prend 100% du carrousel */
      display: flex;
      justify-content: center;
      align-items: center;
  }


  .slide img {
      max-width: 100%;
      max-height: 500px;
      object-fit: contain;
      border-radius: 10px;
      margin-top: 1em;
  }


  /* -----Boutons next / prev---------*/

  .photos-page .photos-prev,
  .photos-page .photos-next {
      width: 60px;
      height: 60px;
      padding: 0;
      border: none;
      background: transparent;
      cursor: pointer;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 20;
      /* au-dessus du carrousel */
      display: flex;
      justify-content: center;
      align-items: center;
  }

  .photos-page .photos-prev {
      left: -10px;
  }

  .photos-page .photos-next {
      right: -10px;
  }

  .photos-page .photos-prev img,
  .photos-page .photos-next img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
  }



  /* ------Bouton pause/play centré------*/
  .photos-page .photos-toggle {
      display: block;
      margin: 20px auto;
      width: 40px;
      height: 40px;
      border: none;
      background: transparent;
      cursor: pointer;
  }

  .photos-page .photos-toggle img {
      width: 100%;
      height: 100%;
      object-fit: contain;
  }



/*contrôle des boutons*/
.control-buttons {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 20px; 
    margin-top: 10px;
}


#toggleThumbs img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#toggleThumbs:hover img {
    content: url("/assets/images/thumbs-aqua.png");
    opacity: 0.7;
}


#toggleSpinner img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#toggleSpinner:hover img {
    content: url("/assets/images/start-aqua.png");
    opacity: 0.7;
}


#toggleSpinnerStop img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#toggleSpinnerStop:hover img {
    content: url("/assets/images/close-aqua.png");
    opacity: 0.7;
}


#toggleFullScreen img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#toggleFullScreen:hover img {
    content: url("/assets/images/scale-aqua.png");
    opacity: 0.7;
}




#toggleSmallScreen img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#toggleSmallScreen:hover img {
    content: url("/assets/images/unscale-aqua.png");
    opacity: 0.7;
}


 
#prevButton img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#prevButton:hover img {
    content: url("/assets/images/prev-aqua.png");
    opacity: 0.7;
}






#nextButton img{
    width: 40px;
    height: 40px;
    transition: opacity 0.2s;
}

#nextButton:hover img {
    content: url("/assets/images/next-aqua.png");
    opacity: 0.7;
}






  /*------Responsive mobile------------- */
  @media (max-width: 600px) {

      .photos-page .photos-prev,
      .photos-page .photos-next,
      .photos-page .photos-toggle {
          width: 80px;
          height: 80px;
      }

      .photos-page .photos-prev {
          left: -90px;
      }

      .photos-page .photos-next {
          right: -90px;
      }
  }


  #toggleSpinner {
      margin-top: 1em;
  }