/* EQLabs docs image lightbox styles. */

.sl-markdown-content img.eqlabs-zoomable {
  cursor: zoom-in;
  transition: filter 0.15s ease, transform 0.15s ease;
  border-radius: 6px;
}
.sl-markdown-content img.eqlabs-zoomable:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.sl-markdown-content img.eqlabs-zoomable:focus-visible {
  outline: 2px solid var(--sl-color-accent, #7B8CFF);
  outline-offset: 3px;
}

.eqlabs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 18, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 32px;
  cursor: zoom-out;
}
.eqlabs-lightbox.is-open {
  display: flex;
  animation: eqlabs-lightbox-fade 0.18s ease-out;
}

@keyframes eqlabs-lightbox-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.eqlabs-lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.eqlabs-lightbox-caption {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 80%;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.5);
  color: #e7e9f0;
  font-size: 13px;
  line-height: 1.4;
  border-radius: 6px;
  text-align: center;
  pointer-events: none;
}
.eqlabs-lightbox-caption:empty {
  display: none;
}

.eqlabs-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.eqlabs-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}
.eqlabs-lightbox-close:focus-visible {
  outline: 2px solid var(--sl-color-accent, #7B8CFF);
  outline-offset: 2px;
}
