/* The same contour follows the rendered size, from a thumbnail to a full illustration. */
:root {
  --be-image-corner: min(4%, 16px);
}

/* Brand masks retain their clear space. A single-pixel service image has no display contour. */
:where(img:not(.brand-beacon img, .be-local-mark img, [width="1"][height="1"]),
       video, input[type="image"], svg image, .pose[class*="sheet-"]) {
  border-radius: var(--be-image-corner);
  /* Keep an existing circle or a larger radius, including on pages which reset border-radius. */
  clip-path: inset(0 round var(--be-image-corner));
}

:where(input[type="image"], video, img[tabindex]):focus-visible {
  outline-offset: -3px;
}
