/* components/lightbox.css — skin for the PhotoSwipe 5 viewer (lightbox.js).
   vendor/photoswipe.css owns layout; this maps its --pswp-* properties to
   tokens. Uses the invert pair, so it's dark in both schemes. */

.pswp {
  --pswp-bg: var(--color-bg-invert);

  /* Slightly lifted, so a loading slide reads as a picture-shaped hole. */
  --pswp-placeholder-bg: color-mix(in srgb, var(--color-bg-invert) 90%, var(--color-fg-invert) 10%);

  --pswp-icon-color: var(--color-fg-invert);
  --pswp-icon-color-secondary: var(--color-bg-invert);
  --pswp-icon-stroke-color: transparent;
  --pswp-icon-stroke-width: 0;

  --pswp-preloader-color: var(--color-fg-muted-invert);
  --pswp-preloader-color-secondary: var(--color-fg-invert);

  --pswp-error-text-color: var(--color-fg-invert);

  /* On the theme's layering scale (PhotoSwipe defaults to 100000). */
  --pswp-root-z-index: var(--z-modal);
}

/* Only images lightbox.js opens; linked images keep the link cursor. */
.kg-image-card img,
.kg-gallery-card img {
  cursor: zoom-in;
}

.kg-image-card a img,
.kg-gallery-card a img {
  cursor: pointer;
}
