/*
 * The product pictures' frame on the pictures Rooster One draws itself (Brief C, 22 Nov 2026; the owner, from Jan's
 * shop beside its home: «a thin black border, even of 1 px, so it can be coherent with its cover/homepage identity … a
 * preset of thicknesses»). The theme's token `custom.rooster.media.frame` (its 425bd7bd and b620e8d2): the width
 * `--wp--custom--rooster--media--frame--width` (0, 1, 2, 4 or 8 px: None, Hairline, Thin, Medium, Bold) and the colour
 * `--wp--custom--rooster--media--frame--color` (the text role, the text colour by day and its muted shade by night, or
 * the accent), a look's own, the site's Design choice over it, a visitor's Style window choice over both; without any,
 * no frame (0px) in the text role.
 *
 * ONE rule and the theme's technique (its woocommerce.css at b620e8d2: inside the picture, never outside it, where a
 * gallery, a strip or a row clips an outline), so a change of how the frame is drawn is made here alone:
 * - a picture in a box of its own: a layer of the box's size over the picture, inside its edge and in its corners
 *   (`::before`, `inset: 0`, `border-radius: inherit`, an inset ring, z-index 2), so nothing changes size or place
 *   (C7), a zoom stays under it and the badges over it (Rooster One's at 2, after it; the role chip at 3);
 * - a bare picture (an image with no box of its own): its own outline, inset, following its corners.
 * The pictures: the recommendations' own card and the side cart's drawer cards (`.aieo-card-img-wrap`, not a post's),
 * product views, the quick view, the side cart's lines and gifts (the theme look) and its classic lines, the mini lists'
 * product rows (Favourites, Recently viewed), the product list, shop the room's cards, the complementary items, the
 * sticky add to cart, the card's variations panel (its head's picture, on a phone). The product cards (AIEO_Card's
 * designer and plain cards, the product page's rails) are WooCommerce's product image block, which the theme's rule
 * frames (and leaves unframed inside a card framed in core's border). A swatch, a category's or a room's picture, a logo
 * and the mega menu's pictures are not product pictures, or draw their own ring, and stay as they are.
 *
 * A picture with a frame of its own keeps it: `--rooster-media-frame: 0px` where it is drawn (the theme's way).
 * Printed inline before each of those surfaces' sheets (AIEO_Media_Frame): core's and the Runtime's copies are twins.
 */
:where(.aieo-card:not(.aieo-card--content) .aieo-card-img-wrap:not(.aieo-card-img-wrap--empty), .aieo-views__figure, .aieo-sc-qv-image, .aieo-line__media, .aieo-gift__thumb, .aieo-mini__row[data-aieo-item-type="product"] .aieo-mini__media, .aieo-product-list__picture) {
	position: relative;
}
:is(.aieo-card:not(.aieo-card--content) .aieo-card-img-wrap:not(.aieo-card-img-wrap--empty), .aieo-views__figure, .aieo-sc-qv-image, .aieo-line__media, .aieo-gift__thumb, .aieo-mini__row[data-aieo-item-type="product"] .aieo-mini__media, .aieo-product-list__picture)::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: inherit;
	box-shadow: inset 0 0 0 var(--rooster-media-frame, var(--wp--custom--rooster--media--frame--width, 0px)) var(--wp--custom--rooster--media--frame--color, light-dark(var(--wp--preset--color--fg), var(--wp--preset--color--muted)));
	pointer-events: none;
}
:is(img.aieo-room__card-picture, img.rc-panel__thumb, .aieo-mini-cart-img > img, .om-satc-image img, .aieo-compl-thumb > img) {
	outline: var(--rooster-media-frame, var(--wp--custom--rooster--media--frame--width, 0px)) solid var(--wp--custom--rooster--media--frame--color, light-dark(var(--wp--preset--color--fg), var(--wp--preset--color--muted)));
	outline-offset: calc(-1 * var(--rooster-media-frame, var(--wp--custom--rooster--media--frame--width, 0px)));
}
/* The complementary items keep their photo on light in both schemes (R9: `color-scheme: light` on the thumb), where the
 * text role would resolve to the light side: its colour is resolved on the item, in the page's scheme, as a colour. */
@property --aieo-media-frame-color {
	syntax: "<color>";
	inherits: true;
	initial-value: transparent;
}
.aieo-compl-item {
	--aieo-media-frame-color: var(--wp--custom--rooster--media--frame--color, light-dark(var(--wp--preset--color--fg), var(--wp--preset--color--muted)));
}
.aieo-compl-item .aieo-compl-thumb > img {
	outline-color: var(--aieo-media-frame-color);
}
