/* Galeries projet : la derniere rangee est toujours complete (18/11/2026).
   Grille de 6 colonnes. Les photos gardent leur format 4:3, aucun recadrage panoramique. */
@media (min-width:1001px){
  .bdc-audited-gallery .project8-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  .bdc-audited-gallery .project8-grid .project8-shot{grid-column:span 2!important}
  /* reste de 2 : les 2 dernieres photos par 2 */
  .bdc-audited-gallery .project8-grid .project8-shot:nth-child(3n+1):nth-last-child(2),
  .bdc-audited-gallery .project8-grid .project8-shot:nth-child(3n+1):nth-last-child(2) ~ .project8-shot,
  /* reste de 1 : les 4 dernieres photos en 2 rangees de 2 */
  .bdc-audited-gallery .project8-grid .project8-shot:nth-child(3n+1):nth-last-child(4),
  .bdc-audited-gallery .project8-grid .project8-shot:nth-child(3n+1):nth-last-child(4) ~ .project8-shot{grid-column:span 3!important}
  /* une seule photo */
  .bdc-audited-gallery .project8-grid .project8-shot:only-child{grid-column:2 / span 4!important}
}
@media (min-width:651px) and (max-width:1000px){
  .bdc-audited-gallery .project8-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  .bdc-audited-gallery .project8-grid .project8-shot{grid-column:span 3!important}
  /* nombre impair : les 3 dernieres photos par 3 */
  .bdc-audited-gallery .project8-grid .project8-shot:nth-child(2n+1):nth-last-child(3),
  .bdc-audited-gallery .project8-grid .project8-shot:nth-child(2n+1):nth-last-child(3) ~ .project8-shot{grid-column:span 2!important}
  .bdc-audited-gallery .project8-grid .project8-shot:only-child{grid-column:2 / span 4!important}
}
