figure{display:flex;justify-content:center;align-items:center;width:150px;height:150px;overflow:hidden}figure img{max-width:100%;max-height:100%;-o-object-fit:contain;object-fit:contain}