/* Outils de visionneuse : sélecteurs réservés ast-lbx, sans dépendance au kit. */
.ast-lightbox.ast-lbx-ready { padding-top: 66px; }
.ast-lightbox .ast-lbx-toolbar { position: absolute; z-index: 6; top: 10px; right: 62px; left: 16px; display: flex; align-items: center; justify-content: flex-end; gap: 3px; min-height: 42px; color: #fff; }
.ast-lightbox .ast-lbx-counter { margin-right: auto; padding: 8px 10px 8px 0; font-family: Arial,sans-serif; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ast-lightbox button.ast-lbx-tool { position: relative; inset: auto; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border: 0; border-radius: 4px; background: transparent; color: inherit; font: 14px/1 Arial,sans-serif; transform: none; }
.ast-lightbox button.ast-lbx-tool:hover, .ast-lightbox button.ast-lbx-tool[aria-expanded="true"] { background: rgba(255,255,255,.16); }
.ast-lightbox button.ast-lbx-tool:disabled { opacity: .42; cursor: default; }
.ast-lightbox .ast-lbx-tool svg { display: block; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ast-lightbox button.ast-lbx-tool:has(.ast-lbx-scale) { flex-basis: 58px; width: 58px; }
.ast-lightbox .ast-lbx-scale { font-size: 12px; white-space: nowrap; }
.ast-lightbox.ast-lbx-ready figure { pointer-events: auto; }
.ast-lightbox.ast-lbx-ready figure img { position: relative; z-index: 1; pointer-events: auto; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.ast-lightbox.ast-lbx-ready figcaption { position: relative; z-index: 2; max-width: min(900px,90vw); padding: 3px 8px; border-radius: 3px; background: rgba(10,10,10,.58); }
.ast-lightbox.ast-lbx-zoomed figure img { cursor: grab; touch-action: none; }
.ast-lightbox.ast-lbx-dragging figure img { cursor: grabbing; }
.ast-lightbox.ast-lbx-ready .ast-lightbox__close, .ast-lightbox.ast-lbx-ready .ast-lightbox__previous, .ast-lightbox.ast-lbx-ready .ast-lightbox__next { z-index: 5; }
.ast-lightbox .ast-lbx-share { position: absolute; z-index: 7; top: 58px; right: 66px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; width: min(310px,calc(100vw - 40px)); padding: 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; background: #202020; box-shadow: 0 10px 35px #0008; color: #fff; font: 14px/1.4 Arial,sans-serif; }
.ast-lightbox .ast-lbx-share[hidden], .ast-lightbox .ast-lbx-share-url[hidden] { display: none !important; }
.ast-lightbox .ast-lbx-share-title { grid-column: 1 / -1; margin: 0 0 4px; color: inherit; font-size: 15px; font-weight: 600; }
.ast-lightbox .ast-lbx-share a, .ast-lightbox button.ast-lbx-copy { position: relative; inset: auto; display: block; width: auto; height: auto; min-width: 0; padding: 9px 10px; border: 1px solid #777; border-radius: 3px; background: transparent; color: #fff; font: inherit; text-align: center; text-decoration: none; transform: none; cursor: pointer; }
.ast-lightbox .ast-lbx-share a:hover, .ast-lightbox button.ast-lbx-copy:hover { background: #414141; }
.ast-lightbox button.ast-lbx-copy, .ast-lightbox .ast-lbx-share-url { grid-column: 1 / -1; }
.ast-lightbox .ast-lbx-share-url { display: block; width: 100%; min-width: 0; padding: 8px; border: 1px solid #aaa; border-radius: 2px; background: #fff; color: #111; font: 13px/1.4 Arial,sans-serif; }
.ast-lightbox .ast-lbx-share a:focus-visible, .ast-lightbox .ast-lbx-share-url:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ast-lightbox .ast-lbx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  .ast-lightbox.ast-lbx-ready { padding-top: 65px; }
  .ast-lightbox .ast-lbx-toolbar { left: 7px; right: 49px; gap: 0; }
  .ast-lightbox .ast-lbx-counter { padding-right: 4px; font-size: 12px; }
  .ast-lightbox button.ast-lbx-tool { flex-basis: 34px; width: 34px; height: 40px; }
  .ast-lightbox button.ast-lbx-tool:has(.ast-lbx-scale) { flex-basis: 48px; width: 48px; }
  .ast-lightbox .ast-lbx-share { right: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ast-lightbox.ast-lbx-ready figure img { transition: none !important; } }
