.bd-image-lightbox {
  width: min(1200px, calc(100vw - 32px));
  height: min(900px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  overscroll-behavior: contain;
}
.bd-image-lightbox::backdrop {
  background: rgba(13, 20, 32, 0.82);
}
.bd-image-lightbox__frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: pan-x pan-y;
}
.bd-image-lightbox__frame--svg {
  background: #fff;
}
.bd-image-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}
.bd-image-lightbox--zoomed .bd-image-lightbox__image {
  cursor: grab;
}
.bd-image-lightbox--zoomed.bd-image-lightbox--dragging .bd-image-lightbox__image {
  cursor: grabbing;
}
.bd-image-lightbox__close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #202938;
  cursor: pointer;
  font: 24px/1 sans-serif;
}
.content img[data-bd-lightbox] {
  cursor: zoom-in;
}
.content img[data-bd-lightbox]:focus-visible {
  outline: 3px solid var(--accent, #315efb);
  outline-offset: 4px;
}

@media (max-width: 600px) {
  .bd-image-lightbox {
    width: calc(100vw - 24px);
    height: calc(100dvh - 24px);
  }
}
