/* Overrides for Lightbox2 (loaded after lightbox.min.css).
   By default .lb-close lives inside .lb-dataContainer, which renders BELOW the
   image and floats right, so the X ends up detached from the image. utils.js
   (anchorLightboxCloseToImage) moves it into .lb-outerContainer — the centered,
   image-sized container — so it can sit ON the image's top-right corner.

   Because the button leaves .lb-data, the library's `.lb-data .lb-close` rule no
   longer applies, so we restyle it here. We wrap the (orange, transparent) X in a
   dark translucent circle so it stays legible over ANY background — light image,
   dark UI, or busy content — instead of washing out. */
.lb-outerContainer > .lb-close {
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10001;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background:
    url(/img/libraries/close.svg) center / 18px 18px no-repeat,
    rgba(17, 17, 17, 0.55);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  outline: 0;
  opacity: 1;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.lb-outerContainer > .lb-close:hover {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.75);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
  transform: scale(1.08);
}
