/* site v1.3 : aperçu des photos au clic */
html.lbx-lock, html.lbx-lock body { overflow: hidden; }
.lbx { position: fixed; inset: 0; z-index: 200; display: none; font-family: var(--font-body, 'Sora', system-ui, sans-serif); }
.lbx.is-open { display: block; }
.lbx-back { position: absolute; inset: 0; background: rgba(14,6,20,.93); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: lbxIn .3s ease both; }
@keyframes lbxIn { from { opacity: 0; } to { opacity: 1; } }
.lbx-stage { position: absolute; inset: 64px 72px 118px; display: flex; align-items: center; justify-content: center; }
.lbx-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r, 2px); box-shadow: 0 40px 90px -30px rgba(0,0,0,.9); cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lbx.is-zoomed .lbx-img { cursor: grab; box-shadow: none; }
.lbx.is-zoomed .lbx-img:active { cursor: grabbing; }
.lbx.is-loading .lbx-img { opacity: .35; transition: opacity .2s; }
.lbx-btn { position: absolute; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: rgba(40,22,54,.85); border-radius: 48% 52% 60% 40% / 50% 42% 58% 50%; box-shadow: 0 14px 30px -12px rgba(0,0,0,.8); transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .25s; }
.lbx-btn svg { width: 22px; height: 22px; }
.lbx-btn:hover, .lbx-btn:focus-visible { background: var(--magenta, #b8307a); transform: rotate(-6deg) scale(1.06); outline: none; }
.lbx-close { top: 16px; right: 18px; }
.lbx-prev { left: 16px; top: 50%; margin-top: -40px; }
.lbx-next { right: 16px; top: 50%; margin-top: -40px; }
.lbx-btn[hidden] { display: none; }
.lbx-foot { position: absolute; left: 0; right: 0; bottom: 78px; display: flex; justify-content: center; align-items: center; gap: 16px; padding: 0 20px; font-size: 13.5px; color: var(--ink, #f5eef8); pointer-events: none; }
.lbx-count { font-family: var(--font-head); font-weight: 800; letter-spacing: .06em; color: var(--magenta-soft, #ec7bb8); }
.lbx-cap { max-width: 50vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbx-tip { color: var(--muted, #b3a4c2); font-size: 12.5px; }
.lbx.is-zoomed .lbx-tip { opacity: 0; }
.lbx-strip { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 10px; padding: 0 16px; overflow-x: auto; }
.lbx-thumb { flex: none; width: 50px; height: 50px; padding: 0; border-radius: 14px 18px 12px 20px; overflow: hidden; opacity: .55; transition: opacity .25s, transform .35s cubic-bezier(.34,1.56,.64,1); background: #1d1129; }
.lbx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lbx-thumb:hover, .lbx-thumb:focus-visible { opacity: .9; transform: rotate(-4deg); outline: none; }
.lbx-thumb.is-on { opacity: 1; box-shadow: 0 0 0 3px var(--magenta, #b8307a); }
/* bouton « Agrandir » sur la photo de la fiche */
.lbx-hint { position: absolute; right: 12px; bottom: 12px; z-index: 6; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 11px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(20,10,28,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 18px 24px 16px 26px / 22px 18px 24px 16px; opacity: .88; transition: opacity .25s, transform .35s cubic-bezier(.34,1.56,.64,1), background .25s; }
.lbx-hint svg { width: 17px; height: 17px; }
.media-panel:hover .lbx-hint, .lbx-hint:focus-visible { opacity: 1; }
.lbx-hint:hover, .lbx-hint:focus-visible { background: var(--magenta, #b8307a); transform: rotate(-4deg); outline: none; }
.media-panel { cursor: zoom-in; }
.lbx-able { cursor: zoom-in; }
@media (max-width: 760px) {
  .lbx-stage { inset: 62px 8px 112px; }
  .lbx-prev, .lbx-next { top: auto; bottom: 70px; margin: 0; width: 42px; height: 42px; }
  .lbx-foot { bottom: 124px; }
  .lbx-cap, .lbx-tip { display: none; }
  .lbx-hint span { display: none; }
  .lbx-hint { padding: 9px; }
}
@media (prefers-reduced-motion: reduce) { .lbx-back { animation: none; } }
