/*
 * Avatar block.
 *
 * The Rounded style draws a thin ring in Color 6, offset from the image.
 * Tune the ring in theme.json → settings.custom.imageRing.
 */

.wp-block-avatar.is-style-rounded {
	position: relative;
	width: fit-content;
}

.wp-block-avatar.is-style-rounded img {
	border-radius: 9999px;
}

.wp-block-avatar.is-style-rounded::after {
	border: var(--wp--custom--image-ring--width) solid var(--wp--custom--image-ring--color);
	border-radius: 9999px;
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	transform: translate(var(--wp--custom--image-ring--offset-x), var(--wp--custom--image-ring--offset-y));
}

/* Hover: the ring slides into alignment with the image. */
.wp-block-avatar.is-style-rounded::after {
	transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1);
}

@media (hover: hover) {
	.wp-block-avatar.is-style-rounded:hover::after {
		transform: translate(0, 0);
	}
}
