   *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: system-ui, sans-serif; background: #e3e3e3; color: #1a1a18; padding: 2rem 1rem; }
    h1 { text-align: center; font-size: 1.4rem; font-weight: 500; margin-bottom: 2.5rem; color: #444; }

    .gallery {
      max-width: 1020px; /* ----  largeur ecran 720 pour images 200px mis920 pour 300 ---- */
      margin: 0 auto;
    }
    .grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem 1.5rem;
    }
    .item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
      cursor: pointer;
      text-decoration: none;
    }
    .thumb-wrap img {
      width: 350px;
      height: 350px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid #ddd;
      display: block;
      transition: border-color 0.2s, transform 0.2s;
    }
    .item:hover img {
      border-color: #888;
      transform: scale(1.06);
    }
    .caption {
      font-size: 14px;
      font-weight: 500;
      color: #666;
      text-align: center;
      max-width: 150px;
      line-height: 1.4;
      transition: color 0.2s;
    }
    .item:hover .caption { color: #111; }

    /* Lightbox */
    .lightbox {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.85);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 1rem;
    }
    .lightbox.open { display: flex; }
    .lightbox img {
      max-width: 90vw;
      max-height: 80vh;
      border-radius: 10px;
      object-fit: contain;
    }
    .lightbox-title {
      color: #fff;
      font-size: 1rem;
      font-weight: 500;
    }
    .lightbox-close {
      position: absolute;
      top: 1rem;
      right: 1.5rem;
      color: #fff;
      font-size: 2rem;
      cursor: pointer;
      background: none;
      border: none;
      line-height: 1;
    }

    @media (max-width: 520px) {
      .grid { grid-template-columns: repeat(2, 1fr); }
      .thumb-wrap img { width: 110px; height: 110px; }
    }