.gallery {
  display: flex;
  gap: 10px;
}

.thumbnail {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/*
.thumbnail {
  width: 150px;
  cursor: pointer;
  transition: transform 0.2s;
}
*/

.thumbnail:hover {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 80%;
  max-height: 80%;
  transform: scale(0.25);   /* commence petit */
  opacity: 1;
  transition: transform 2s ease, opacity 2s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.frame {
  width: 200px;
  height: 200px;
  background: #fdfdfd;
  border: 4px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 8px;
  display: inline-block;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  vertical-align: middle; /* permet d'avoir les vignettes alignées que l'image soit portrait ou paysage*/
}

.frame-inner {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
  box-sizing: border-box;
}

.frame img {
  object-fit: contain;
  max-height: 100%;
  max-width: 100%;
}

.frame:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
