/* Shiny Darkness in-page image zoom (lightbox). */
[data-sd-zoom] { cursor: zoom-in; }

.sd-lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  padding: 4vmin;
}
.sd-lb-overlay.open { display: flex; }

.sd-lb-img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
}

.sd-lb-close {
  position: absolute;
  top: 18px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.sd-lb-close:hover { background: rgba(255, 255, 255, 0.2); }

@media (prefers-reduced-motion: no-preference) {
  .sd-lb-overlay.open { animation: sdLbFade .18s ease-out; }
  @keyframes sdLbFade { from { opacity: 0; } to { opacity: 1; } }
}

/* Make the featured image itself the click target for the lightbox. */
.single-postpage figure.wp-block-post-featured-image { position: relative; z-index: 1; }
.single-postpage figure.wp-block-post-featured-image img[data-sd-zoom] {
  position: relative; z-index: 2; pointer-events: auto !important; cursor: zoom-in;
}
