.bl-watermarked-gallery a[class$="-preview"],
.bl-watermarked-image {
  position: relative;
  container-type: inline-size;
}

.bl-watermarked-image {
  width: 100%;
}

.bl-watermarked-image > img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

.bl-watermarked-gallery dialog > [class$="-dialog-bar"] {
  z-index: 1;
}

.bl-watermarked-gallery a[class$="-preview"]::after,
.bl-watermarked-image::after {
  content: "BL Soft" / "";
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  font: normal 700 28px/1 Arial, sans-serif;
  font-size: clamp(20px, 12cqi, 96px);
  color: rgb(25 34 45 / 29%);
  text-shadow: 0 0 2px rgb(255 255 255 / 85%);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.bl-watermarked-image:not(:has(> img[src]))::after {
  content: none;
}

.bl-watermarked-image::after {
  top: min(50%, calc(50dvh - 56px));
}
