.wp-block-image img,
.wp-block-post-featured-image img,
.wp-block-jetpack-slideshow_image {
  cursor: zoom-in;
  touch-action: manipulation;
}

.bbb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.bbb-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bbb-lightbox-bg {
  position: absolute;
  inset: 0;
  background: #000;
}

.bbb-lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.bbb-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

.bbb-lightbox-close {
  position: absolute;
  top: max(10px, env(safe-area-inset-top, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bbb-lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

html.bbb-lightbox-lock,
html.bbb-lightbox-lock body {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
}
