feat: lightbox desktop pour images et galeries

- Lightbox custom avec Swiper (pas de nouvelle dépendance)
- Déclenché sur les figures éligibles uniquement (exclut figures dans
  <a> et dans les cards avec .link-block)
- Galeries : ouvre toutes les slides au bon index
- Fermeture : bouton ✕, clic overlay, Echap
- Captions : figcaption, p.caption (dans figure ou sibling)
- Cursor zoom-in desktop uniquement via figure[data-lightbox]

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
isUnknown 2026-02-27 15:57:35 +01:00
parent 9f2b85087d
commit 3d9a0421b3
4 changed files with 246 additions and 0 deletions

View file

@ -9,6 +9,7 @@ import { initSliderBeforeAfter} from './sliderBeforeAfter.js';
import { navInvestigation } from './investigation.js';
import { progressBar, scrollBack} from './bottom-bar.js';
import { initSort } from './sort.js';
import { initLightbox } from './lightbox.js';
const responsiveMedium = 1080;
const responsiveSmall = 768;
@ -27,6 +28,7 @@ window.onload = async function () {
playVideo();
initDropdowns(responsiveSmall, responsiveSmallX);
initSwipers();
initLightbox();
progressBar();