/* Visionneuse de photos — style sobre (fond sombre, boutons discrets). Aucune règle en ligne : CSP stricte. */
.lb-thumb { cursor: zoom-in; }
.lb-thumb:focus-visible, .event-photos a:focus-visible { outline: 3px solid #d4bc7a; outline-offset: 3px; }
html.lb-open, html.lb-open body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 1000; background: rgba(14, 22, 36, .96); display: flex; flex-direction: column; }
.lb[hidden], .lb [hidden] { display: none !important; }
.lb-stage { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 3.2rem 3.6rem .6rem; box-sizing: border-box; }
.lb-zoom { all: unset; display: block; cursor: zoom-in; line-height: 0; border-radius: 2px; }
.lb-zoom:focus-visible { outline: 3px solid #d4bc7a; outline-offset: 4px; }
.lb-img { display: block; max-width: calc(100vw - 7.2rem); max-height: calc(100vh - 7.4rem); max-height: calc(100dvh - 7.4rem); width: auto; height: auto; box-shadow: 0 6px 30px rgba(0, 0, 0, .45); background: #222; user-select: none; -webkit-user-drag: none; }
.lb-small .lb-zoom { cursor: default; }
/* taille réelle : défilement / glisser dans les deux sens, y compris au doigt */
.lb-actual .lb-stage { overflow: auto; display: block; padding: 0; touch-action: pan-x pan-y; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; text-align: center; }
.lb-actual .lb-zoom { display: inline-block; cursor: zoom-out; margin: auto; }
.lb-actual .lb-img { max-width: none; max-height: none; box-shadow: none; }
.lb-dragging, .lb-dragging .lb-zoom { cursor: grabbing; }
.lb-loading .lb-img { opacity: .35; }
.lb-bar { flex: 0 0 auto; min-height: 3rem; display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .5rem 4rem .8rem; color: #eef1f5; font-size: .95rem; text-align: center; box-sizing: border-box; }
.lb-cap { margin: 0; max-width: 52rem; line-height: 1.4; }
.lb-count { color: #b9c2cf; font-size: .85rem; white-space: nowrap; }
.lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 2.8rem; height: 2.8rem; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(14, 22, 36, .6); color: #fff; font: 400 1.9rem/1 Georgia, serif; cursor: pointer; }
.lb-btn:hover { background: rgba(212, 188, 122, .85); color: #14213a; border-color: transparent; }
.lb-btn:focus-visible { outline: 3px solid #d4bc7a; outline-offset: 2px; }
.lb-close { top: .6rem; right: .6rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: .5rem; } .lb-next { right: .5rem; }
@media (max-width: 640px) {
  .lb-stage { padding: 3.4rem .4rem .4rem; }
  .lb-img { max-width: calc(100vw - .8rem); max-height: calc(100vh - 8.4rem); max-height: calc(100dvh - 8.4rem); }
  .lb-prev, .lb-next { top: auto; bottom: .55rem; transform: none; width: 2.5rem; height: 2.5rem; }
  .lb-bar { padding: .4rem 3.4rem .7rem; font-size: .88rem; }
}
@media (prefers-reduced-motion: no-preference) { .lb:not([hidden]) { animation: lb-in .15s ease-out; } @keyframes lb-in { from { opacity: 0; } to { opacity: 1; } } }
/* Administration : cible explicite d'agrandissement (bouton autour de la vignette) */
.lb-trigger { position: relative; display: block; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; border-radius: 4px; }
.lb-trigger img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.lb-trigger-card img { width: 160px; height: 110px; object-fit: cover; }
.lb-trigger-ico { position: absolute; right: 5px; bottom: 5px; width: 1.6rem; height: 1.6rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(14, 22, 36, .72); color: #fff; font: 400 1rem/1 system-ui, sans-serif; pointer-events: none; transition: background .15s; }
.lb-trigger:hover .lb-trigger-ico, .lb-trigger:focus-visible .lb-trigger-ico { background: #b08d3c; }
.lb-trigger:focus-visible { outline: 3px solid #d4bc7a; outline-offset: 2px; }
.lb-trigger.lb-thumb:focus-visible { outline: 3px solid #d4bc7a; }
