.grid-masonry {
  margin: 0 auto; /* Pour centrer la galerie */
  position: relative; /* C'est crucial pour que Masonry se positionne dedans */
}

.gallery-item-a {
  width: 300px;
  margin-bottom: 15px;
  transition: box-shadow 0.3s ease;
  /*pour la fluidite de l'agrandissement*/
  cursor: pointer;
}

.gallery-item-a:hover {
  transform: scale(1.03);
  /* agrandissement de 3%*/
  z-index: 10;
}

.gallery-item-a img {
  display: block;
  /* Supprime l'espace inutile sous l'image */
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* Un petit ajout pour l'élégance de vos portraits */
  border: 1px solid #a0785a;
  /* Un doré plus terreux, très artistique */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  /* Ombre de base douce */
  transition: box-shadow 0.3 ease;
  /* Pour la fluidité de l'ombre */
}

/* EFFET D'OMBRE AU SURVOL */
.gallery-item-a:hover img {
  box-shadow: 0 12px 24px rgba(255, 215, 0, 0.4);
  /* Reflet doré plus intense et diffus */
}

.gallery-item-a:hover img {
  box-shadow: 0 12px 24px rgba(160, 120, 90, 0.3);
  /* Reflet doré plus intense et diffus */
}

.gallery-item-a:hover img {
  box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
  /* Reflet doré au survol */
}

.grid-item--text {
  background: #1a1a1a;
  /* Un gris très foncé */
  color: #ffffff;
  /* Du texte blanc pour qu'il soit lisible */
  padding: 20px;
  /*border: 1px solid #a0785a;*/
}

.grid-item--text {
  border: none !important; /* Cela force l'absence de bordure */
  background-color: transparent; /* Si vous voulez aussi enlever le fond gris */
}

.lightbox-overlay {
  display: none;
  /* Invisible par défaut */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  /* Fond très sombre et chic */
  z-index: 9999;
  /* Par-dessus tout le reste */
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid #a0785a;
  /* Votre signature dorée terreuse */
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);

  margin-top: 40px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #a0785a;
  font-size: 50px;
  cursor: pointer;
  font-family: Arial, sans-serif;
}
