* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
  }


  /* Styles de la galerie */
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(125px, 2fr));
    grid-gap: 15px;
    margin-bottom: 30px;
  }

  .gallery-item {
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    height: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
  }

  .gallery-item:hover {
    transform: translateY(-5px);
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
  }

  .gallery-item:hover img {
    filter: brightness(0.9);
  }

  /* Styles du lightbox */
  .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: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    flex-direction: column;
  }

  .lightbox.active {
    opacity: 1;
    pointer-events: auto;
  }

  .lightbox-content {
    max-width: 90%;
    max-height: 80%;
    margin-bottom: 20px;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  }

  .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
  }

  .close:hover {
    color: #f8de7e;
  }

  #caption {
    color: white;
    font-size: 18px;
    margin-top: 10px;
    max-width: 80%;
    text-align: center;
  }

  /* Ajout de contrôles pour images précédente/suivante */
  .lightbox-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
  }

  .lightbox-control {
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    user-select: none;
    transition: background-color 0.3s;
  }

  .lightbox-control:hover {
    background: rgba(0, 0, 0, 0.7);
  }