/* ═══════════════════════════════════════════════════════════════════════════
   LE FIL EN PHOTOS — pages/fil_public.php (20/10/2026).

   Une galerie en colonnes : chaque photo garde ses proportions, les colonnes
   s'empilent comme un mur de cartes postales. Deux colonnes au telephone,
   trois puis quatre sur un ecran large. Les jetons --tp-* suffisent : la page
   se tient sous l'ancien dessin comme sous « Le Midi ».
   ═══════════════════════════════════════════════════════════════════════════ */

@layer pages {
  .fp-galerie {
    columns: 2 150px;
    column-gap: 12px;
  }
  @media (min-width: 760px)  { .fp-galerie { columns: 3 200px; column-gap: 16px; } }
  @media (min-width: 1180px) { .fp-galerie { columns: 4 220px; } }

  .fp-photo {
    break-inside: avoid;
    margin: 0 0 12px;
    overflow: hidden;
    border-radius: var(--tp-r-carte, 18px);
    background: var(--tp-carte);
    box-shadow: var(--tp-ombre);
  }
  @media (min-width: 760px) { .fp-photo { margin-bottom: 16px; } }

  .fp-photo a { display: block; }
  .fp-photo img {
    display: block;
    width: 100%;
    height: auto;
    transition: scale .6s cubic-bezier(.2, .8, .2, 1);
  }
  .fp-photo a:hover img { scale: 1.03; }

  .fp-photo figcaption {
    display: grid;
    gap: 4px;
    padding: 10px 12px 12px;
  }
  .fp-texte {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--tp-encre);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
  }
  .fp-qui {
    color: var(--tp-encre-3);
    font-size: 12px;
    font-weight: 600;
  }

  .fp-vide { display: grid; justify-items: center; gap: 12px; padding: 28px 20px; text-align: center; }
  .fp-vide p { margin: 0; color: var(--tp-encre-2); }
  .fp-suite { margin: 20px 0 0; text-align: center; }
}
