/* style.css */

body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #fff;
  color: #222;
}

header h1 {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.navbar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
  font-size: 1rem;
}

nav ul li a {
  text-decoration: none;
  color: #222;
}

.insta-icon {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.insta-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* Fixe la grille à 4 colonnes */
  gap: 1rem;
  padding: 2rem;
  justify-content: center;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.photo {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  overflow: hidden;
  border: 5px solid #ccc;  /* Bordure plus large autour de chaque photo */
}

.normal-photo img,
.large-photo img {
  object-fit: cover;  /* Modifier l'objet pour qu'il couvre toute la cellule */
  width: 100%;
  height: 100%;
  background-color: #fff;
  cursor: pointer;
  border-radius: 0;  /* Assurer qu'il n'y ait pas d'arrondi sur les images */
}

.large-photo {
  grid-column: span 2;  /* Faire en sorte que les images "large" prennent 2 colonnes */
  grid-row: span 2;  /* Faire en sorte que les images "large" prennent 2 lignes */
}

.banner-img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 1rem;
  box-sizing: border-box;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border: 5px solid #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  font-weight: bold;
  z-index: 1000;
}

.hidden {
  display: none;
}

/* Ajustement des images au format paysage */
.landscape-photo {
  grid-column: span 2;  /* Faire en sorte que les images "landscape" prennent 2 colonnes */
  grid-row: span 1;  /* Garder la hauteur d'une seule ligne */
  width: 100%;
}

.landscape-photo img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
