/* Content images carry intrinsic width/height attributes (reserves space for
   lazy-loading); height:auto keeps them as aspect-ratio hints, not fixed sizes. */
#wsite-content img[width][height],
.wsite-header-elements img[width][height] { height: auto; }

/* Minimal lightbox for a[rel="lightbox"] — visual match for the old fancybox:
   light overlay, framed image, close button. */
.slb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  background: rgba(10, 11, 16, 0.95);
  cursor: pointer;
}
.slb-overlay.slb-open {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Lock scrolling by pinning the body in place (top is set inline from the
   saved scroll offset) so the page behind the overlay doesn't jump to the top.
   overflow-y:scroll keeps the scrollbar gutter, avoiding a width shift. */
.slb-noscroll { overflow-y: scroll; }
.slb-noscroll body {
  position: fixed;
  left: 0;
  right: 0;
  overflow: hidden;
}
.slb-figure {
  margin: 0;
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 80px);
  text-align: center;
  cursor: default;
}
.slb-img {
  max-width: calc(100vw - 80px);
  max-height: calc(100vh - 110px);
  box-shadow: 0 6px 40px rgba(0, 0, 0, 0.8);
  cursor: default;
}
.slb-caption {
  margin-top: 12px;
  font-size: 15px;
  color: #c9cbd6;
}
.slb-close, .slb-prev, .slb-next {
  position: fixed;
  border: 0;
  background: transparent;
  color: #e6e7ee;
  cursor: pointer;
  line-height: 1;
  padding: 10px;
  z-index: 9001;
}
.slb-close:focus-visible, .slb-prev:focus-visible, .slb-next:focus-visible {
  outline: 2px solid #9aa0c0;
  outline-offset: 2px;
}
.slb-close { top: 14px; right: 20px; font-size: 44px; }
.slb-prev, .slb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  opacity: 0.6;
}
.slb-prev:hover, .slb-next:hover { opacity: 1; }
.slb-prev { left: 12px; }
.slb-next { right: 12px; }
@media (max-width: 767px) {
  .slb-figure, .slb-img { max-width: calc(100vw - 16px); }
  .slb-img { max-height: calc(100vh - 90px); }
  .slb-prev, .slb-next { font-size: 44px; }
}
