:is(figure, picture) img {
	object-fit: scale-down;
}

:is(figure, picture)[data-scheme="soften"] img {
	border-radius: 0.25rem;
	border: var(--color-border-subtle) solid 1px;
}

figure[data-scheme="profile"] {
	text-align: center;
}

figure[data-scheme="profile"] img {
	border-radius: 50%;
	border: var(--color-black-800) solid 1px;
	aspect-ratio: 1;
}

figure[data-scheme="profile"] figcaption {
	margin-block-start: 0.5rem;
}

figure[data-scheme="profile"] figcaption p {
	margin: 0;
}

figure[data-scheme="profile"] figcaption p + p {
	margin-block-start: 0.5rem;
}

.image-lightbox {
  position: relative;
	max-width: 100%;
	display: inline-block;
	text-decoration: none;
}

.image-lightbox > picture {
  display: block;
  max-width: 100%;
  height: auto;
}

.image-lightbox > .text-overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Black see-through */
  color: var(--color-white);
  width: 100%;
  opacity:1;
	font-size: 0.75rem;
	padding: 0.25em 0;
  text-align: center;
}