/* Lightbox d'image accessible sur ordinateur et mobile. */
a[data-lightbox]{cursor:zoom-in}
.image-lightbox{width:calc(100vw - 32px);max-width:960px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;overflow:visible;border:1px solid #ffffff4d;border-radius:14px;background:#1d1814;color:#fff;box-shadow:0 24px 80px #0000008c}
.image-lightbox::backdrop{background:#17120ed9;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.image-lightbox[open]{display:block}
.image-lightbox__figure{display:flex;flex-direction:column;align-items:center;margin:0;padding:18px}
.image-lightbox__image{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 112px);max-height:calc(100dvh - 112px);object-fit:contain;border-radius:7px;background:#fff;box-shadow:none!important}
.image-lightbox__caption{width:100%;padding:12px 52px 0 4px;color:#f7efe4;font-size:.875rem;line-height:1.5}
.image-lightbox__caption:empty{display:none}
.image-lightbox__close{position:absolute;z-index:2;top:10px;right:10px;display:grid;place-items:center;width:46px;height:46px;padding:0;border:1px solid #ffffff7a;border-radius:50%;background:#1d1814e8;color:#fff;box-shadow:0 5px 18px #0006;cursor:pointer;font:400 31px/1 Arial,sans-serif}
.image-lightbox__close:is(:hover,:focus-visible){background:var(--red,#8b1e22);color:#fff}
body.lightbox-open{overflow:hidden}
@media(max-width:720px){.image-lightbox{width:calc(100vw - 20px);max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);border-radius:10px}.image-lightbox__figure{padding:10px}.image-lightbox__image{max-height:calc(100vh - 92px);max-height:calc(100dvh - 92px);border-radius:5px}.image-lightbox__caption{padding:10px 50px 2px 2px;font-size:.875rem}.image-lightbox__close{top:8px;right:8px;width:44px;height:44px}}
@media(prefers-reduced-motion:no-preference){.image-lightbox[open]{animation:lightbox-in .18s ease-out}.image-lightbox[open]::backdrop{animation:lightbox-backdrop-in .18s ease-out}@keyframes lightbox-in{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}@keyframes lightbox-backdrop-in{from{opacity:0}to{opacity:1}}}
