.hkd-atomic-image-ai {
  display: inline-grid;
  max-width: 100%;
  position: relative;
  vertical-align: top;
}

a.hkd-atomic-image-ai,
button.hkd-atomic-image-ai {
  display: inherit;
}

.hkd-atomic-image-ai__disclosure {
  background: rgba(0, 0, 0, 0.42);
  box-sizing: border-box;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  left: 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 8px 5px;
  pointer-events: none;
  position: absolute;
  text-orientation: mixed;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  white-space: nowrap;
  writing-mode: vertical-rl;
  z-index: 1;
}

.hkd-container-ai-disclosure::after {
  background: rgba(0, 0, 0, 0.42);
  box-sizing: border-box;
  color: #fff;
  content: attr(data-hkd-ai-disclosure);
  font-size: 10px;
  font-weight: 400;
  left: 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 8px 5px;
  pointer-events: none;
  position: absolute;
  text-orientation: mixed;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  white-space: nowrap;
  writing-mode: vertical-rl;
  z-index: 3;
}

@supports (position-anchor: --hkd-atomic-ai-image) {
  span.hkd-atomic-image-ai--anchored {
    display: contents;
  }

  .hkd-atomic-image-ai__disclosure {
    left: anchor(left);
    top: anchor(center);
  }
}
