正方形のボックスaspect-ratio: 1 / 1;

width: fit-content; + aspect-ratio: 3 / 2;

aspect-ratio: 3 / 2;