body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 90vh;
  margin: 0;
  background-color: #f0f0f0;
  padding-top: 50px; /* Ajuste cette valeur en fonction de la hauteur de ton header */
}

header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #f0f0f0;
  text-align: center;
  z-index: 1000; /* Pour s'assurer que le header reste au-dessus */
  padding: 10px 0; /* Pour ajouter un peu d'espace autour du texte */
}


#loading {
  display: none;
  font-size: 20px; /* Taille de la police pour que ce soit bien visible */
  color: #007bff; /* Couleur bleu pour attirer l'attention */
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centré au milieu de l'écran */
}


.gallery {
  text-align: center;
}

.main-frame {
  width: 100vw;
  height: 65vh;
  margin: auto;
  overflow: hidden;
  /*border: 2px solid #ccc;*/
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-frame img {
  max-width: 100%;
  max-height: 100%;
}





.fullscreen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.fullscreen img {
  max-width: 100%;
  max-height: 100%;
}

.close {
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 3em;
  color: white;
  cursor: pointer;
}




#div_legende
{
  color: #505050;
  font-size: 14px;
  padding-top: 4px;
}


#div_like
{
  color: #500000;
  font-size: 14px;
  padding-top: 4px;
}





.download-button {
  display: inline-block;
  margin: auto;
  margin-top: 6px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
}

.download-button:hover {
  background-color: #0056b3;
}



.like-button {
  display: inline-block;
  margin: auto;
  margin-top: 6px;
  padding: 10px 20px;
  background-color: #F5B7B0;
  color: black;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}

.like-button:hover {
  background-color: #F49796;
}




/* Conteneur pour permettre le défilement horizontal */
.thumbnail-container {
  overflow-x: auto;
  margin: auto;
  padding: 10px 0;
  max-width: 92vw;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden; /* Important pour garder les flèches à l'intérieur */
}

.arrow-left, .arrow-right {
  cursor: pointer;
  font-size: 4em;
  user-select: none;
  z-index: 10;
  color: white; /* Couleur des flèches en blanc */
  text-shadow: 2px 2px 4px black; /* Ombre noire pour les flèches */
  background-color: rgba(0, 0, 0, 0.5); /* Fond noir transparent */
  padding: 4px; /* Ajoute un peu de padding pour un meilleur aspect */
  border-radius: 5px
}

.arrow-left {
  position: absolute;
  left: 2px; /* Légèrement à l'intérieur */
}

.arrow-right {
  position: absolute;
  right: 6px; /* Légèrement à l'intérieur */
}

.thumbnail-row {
  display: flex;
  gap: 10px;
  overflow-x: auto; /* Assure que les miniatures soient défilables */
  scroll-behavior: smooth;
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}
.thumbnail-row::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

.thumbnail-row img {
  width: 100px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.3s;
}

.thumbnail-row img:hover {
  border-color: #333;
  border-width: 3px;
}












/* Styles pour écrans mobiles */
@media (max-width: 768px)
{

}