@charset "UTF-8";
/* CSS Document */

.masonry-container {
	justify-content: center;
	margin: 0 auto;
	width: 100%;
	max-width: 1200px;
	overflow: hidden;
}
.masonry {
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
}

.grid-item {
  float: left;
  padding: 10px;
  list-style: none;
  box-sizing: border-box;
  width: 25%; /* 4 colonnes par défaut */
}

.grid-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.grid-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Responsive Columns */
@media (max-width: 1200px) {
  .grid-item {
    width: 33.3333%; /* 3 colonnes */
  }
}

@media (max-width: 900px) {
  .grid-item {
    width: 50%; /* 2 colonnes */
  }
}

@media (max-width: 600px) {
  .grid-item {
    width: 90%; /* 1 colonne */
  }
.grid-item img {
  display: block;
  width: 70%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
  justify-content: center;
}
}

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox.show {
  visibility: visible;
  opacity: 1;
  cursor: zoom-out;
}

