/*
 * pixelperfect 5 dropped the "ar" argument of <pp:img> and no longer sizes the
 * <picture> wrapper by script. Both are restored here as in pixelperfect 3.7:
 * --pp-ar   fixed aspect ratio: wrapper and image (cover crop), image fills the column
 * --pp-box  natural aspect ratio of the file (former ar="auto"): wrapper only,
 *           the image keeps its intrinsic width
 */
.pp-w[style*="--pp-ar"] {
    aspect-ratio: var(--pp-ar);
}

.pp-w[style*="--pp-ar"] > img {
    width: 100%;
    height: auto;
    aspect-ratio: var(--pp-ar);
    object-fit: cover;
}

.pp-w[style*="--pp-box"] {
    aspect-ratio: var(--pp-box);
}
