After more searching, I found out that the code is correct, the problem is that as of today (July 11, 2025) GridBox + Layout are currently unreliable in some environments (JupyterLab, Colab, etc.) due to frontend rendering issues.
Please:
Use GridspecLayout
for reliability,
Use GridBox + Layout
for precision (when the frontend actually honors the layout).