/* FrontPress image lightbox drop-in v2, pairs with lightbox.js. Unlayered or @layer components.
 * Swap the --fp-* fallbacks for theme tokens. Hover lives in @media (hover: hover). */
img.is-zoomable { cursor: zoom-in; }
html.fp-lb-lock { overflow: hidden; }

.fp-lb {
  position: fixed; inset: 0; z-index: 300; overflow: hidden; color: #fff;
  background: rgb(18 18 16 / 0); opacity: 0; transition: opacity .28s ease, background .28s ease;
  -webkit-tap-highlight-color: transparent;
}
.fp-lb.is-open { opacity: 1; background: rgb(18 18 16 / .94); }
.fp-lb[hidden] { display: none; }

.fp-lb__track { display: flex; height: 100%; will-change: transform; touch-action: pan-y; cursor: grab; user-select: none; }
.fp-lb__track.is-dragging { cursor: grabbing; }
.fp-lb__slide { flex: 0 0 100%; min-width: 0; display: flex; align-items: center; justify-content: center; padding: clamp(3.5rem, 2rem + 5vw, 5rem) var(--fp-gutter, 1.25rem); box-sizing: border-box; }
.fp-lb__figure { display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 100%; max-height: 100%; margin: 0; }
.fp-lb__figure img { max-width: min(100%, 90vw); max-height: calc(100svh - 12rem); width: auto; height: auto; object-fit: contain; border-radius: var(--fp-radius, 0); -webkit-user-drag: none; }
.fp-lb__caption { font-size: .875rem; color: rgb(255 255 255 / .78); text-align: center; text-wrap: pretty; }

.fp-lb__close, .fp-lb__nav {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  color: #fff; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .22); border-radius: 999px;
  cursor: pointer; transition: background .18s ease, opacity .18s ease;
}
.fp-lb__close svg, .fp-lb__nav svg { display: block; }
@media (hover: hover) { .fp-lb__close:hover, .fp-lb__nav:not(:disabled):hover { background: rgb(255 255 255 / .2); } }
.fp-lb__close:active, .fp-lb__nav:not(:disabled):active { background: rgb(255 255 255 / .24); }
.fp-lb__close:focus-visible, .fp-lb__nav:focus-visible { outline: none; border-color: #fff; box-shadow: 0 0 0 1px #fff; }
.fp-lb__close { top: .75rem; right: var(--fp-gutter, 1.25rem); }
.fp-lb__nav { top: 50%; transform: translateY(-50%); }
.fp-lb__nav--prev { left: var(--fp-gutter, 1.25rem); }
.fp-lb__nav--next { right: var(--fp-gutter, 1.25rem); }
.fp-lb__nav:disabled { opacity: .3; cursor: default; }
.fp-lb__counter { position: absolute; z-index: 2; top: 1.1rem; left: var(--fp-gutter, 1.25rem); font-size: .875rem; color: rgb(255 255 255 / .78); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) { .fp-lb__nav { top: auto; bottom: .75rem; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fp-lb { transition: opacity .01s; } }
