// Don't factor in the figcaption in determining the intrinsic inline-size of the parent – or, in other words: size a parent element based on the size of a child element, but choose which child element
figure {
inline-size: fit-content; // [1]
// margin-inline: auto;
}
figcaption {
contain: inline-size; // [2]
font-size: $font-size-200;
@ifmeta.variable-exists(font-family-italic) {
font-family: $font-family-italic;
font-style: normal;
} @else {
font-family: $font-family-body;
font-style: italic;
}
}
// horizontal line: represents a thematic break between paragraph-level elements: for example, a change of scene in a story, or a shift of topic within a section.
// https://css-tricks.com/examples/hrs/ simple styles for hr