@charset "utf-8";
/* CSS Document */

/* Lightbox Styles */




.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(243, 227, 219, 1);
  display: none;
  justify-content: center;
  align-items: center;
  z-index:3000;
  overflow: hidden;
}

.lightbox-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  text-align: center;
}

#lightboxImage {
  width: 90%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.image-title {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: #e1ae98;
  font-weight: 400;
  text-align: left;
  max-width: 90vw; /* optionnel, pour éviter que le titre dépasse */
  padding: 0 10px; /* un peu d’espace horizontal */
  white-space: nowrap; /* optionnel, si tu veux le titre sur une seule ligne */
  z-index: 9500;
}


.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 32px; /* Même registre que le scrollNumber */
  font-weight: 800; /* Cohérent avec le scrollNumber */
  color: #e1ae98;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3100;
  line-height: 1;
  display: block;
}

.close-btn:hover {
  color: #c2886d; /* Légère variation au survol, optionnelle */
}

@media (max-width: 768px) {
  .lightbox {
    flex-direction: column;
    justify-content: center; /* Centrage vertical */
    padding: 10px;
    box-sizing: border-box;
  }

  .lightbox-content {
    padding: 10px;
  }

  /* On conserve le positionnement absolu, mais on ajuste les espacements */
  .lightbox-project-title-container {
    bottom: 10px;
    left: 10px;
    right: auto;
    position: absolute;
    white-space: normal; /* Permet retour à la ligne si besoin */
    max-width: 60%;
  }

  .lightbox-image-alt-text-container {
    bottom: 10px;
    right: 10px;
    left: auto;
    position: absolute;
    text-align: right;
    white-space: normal;
    max-width: 60%;
  }

  .lightbox-project-title,
  .lightbox-image-alt-text {
    font-size: 16px;
  }

  #scrollNumber {
    font-size: 14px;
    top: 10px;
    left: 10px;
  }

  .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 26px; /* Même registre que le scrollNumber */
  font-weight: 800; /* Cohérent avec le scrollNumber */
  color: #e1ae98;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3100;
  line-height: 1;
  display: block;
}

}